What is the difference between select options and parameters
Answer Posted / jagadish
parameter : 1) parameter is a key word which is used to accept the single value at run time.
2).without input value we cannot execute the parameters.
3).name of the parameter should not exceed 8 characters.
syntax: Parameters : p_a type I.
to pass the default values to the parameter
parameters : p_a type I default value 10.
to make the parameter value as mandatory we have to use the obligatory keyword.
parameters : p_a type I obligatory.
NOTE: we cannot write floating type values under parameter.
DATA : A type I,
B type I,
C type I.
parameters :P_ A type I DEFAULT 100, * obligatory
P_B type I DEFAULT 200.*obligatory
A=P_A.
B=P_B.
C=A+B.
write C.
Select-option : select option is a keyword which is used to accept single value,multiple single values,ranges,multiple ranges at run time
syntax: DATA : L_VBELN TYPE VBELN_VA.
select-options: S_VBELN for L_VBELN.
whenever we create a select option sysytem will create a internal table with header line with 4 fields.it will used to select and deselect the ranges.
LOW,SIGN,HIGH,OPTION.
name of the select option doesnt increse 8 characters.
NOTE : with out input value we can select options and it will fetch the entire data of the table..
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How many structures can be created in a Ztable ?
did u done enhancement framework?how u implemented?
How do you document abap/4 programs? Do you use program documentation menu option?
What are the differences between table controls and step loops?
What are the types of parameters in the function modules?
Explain the relationship between a functional area, user group, and query when developing queries using the sap query tool?
What is the difference between collect and append statements?
The data of a view is not physically stored, but derived from one or more tables (t/f) : abap data dictionary
Which bdc you prefer? : abap bdc
What is Group by in Select statement?
Which table stores the programs created?
How to display if the value entered contains records or not?
Hi my dear friends,Please give the answers for the following link http://www.saptechnical.com/InterviewQ/interviewQ.htm
What is the table buffer?
What is personnel sub are