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


Please Help Members By Posting Answers For Below Questions

How to use messages in lists?

609


What are the different attributes that can be assigned to a variant?

587


In a loop of an internal table, what is the use of at first & at last statements?

1477


A field containing quantity amounts (data type quan) must be assigned to a referencetable and a reference field. Explain?

543


Name the abap/4 modularization techniques? : abap modularization

650






How do you use structures in the abap programs?

598


What is locking ?

604


What is an rfc?

596


How can an internal table with header line and one without header line be distinguished when passed to a subroutine? : abap modularization

607


What are the different types of the variable in the sap abap?

587


What are the 3 methods that we use in sequence in a batch input session method? : abap bdc

577


What is the t-code to display batch input sessions? : abap bdc

637


How do you set up background jobs in sap? What are the steps? What are the event driven batch jobs?

569


How do you save data in bdc tables? : abap bdc

590


How do you validate the selection criteria of a report? And how do you display initialvalues in a selection screen?

619