‎2007 May 22 7:59 AM
Hi all,
How can i give multiple input value at selection-screen for a filed which has been declared as a perameter?
Kishore.
‎2007 May 22 8:01 AM
‎2007 May 22 8:01 AM
select-options is for getting multiple values(ranges)
parameter is for getting single value
dclare as
select-options variable for mara-field1.
‎2007 May 22 8:02 AM
‎2007 May 22 8:03 AM
Hi,
Thsts ok..But how can i do that for the PARAMETR filed.
Kishi.
‎2007 May 22 8:03 AM
you cannot give multiple values to parameter
Instead declare like this
select-options : s_matnr for mara-matnr no intervals .
‎2007 May 22 8:03 AM
Hai,
Using Parameter we can get single value only, But for Select-options we can get multiple Values.
Regards,
Padmam.
‎2007 May 22 8:03 AM
Example
parameters : p_matnr type matnr
change it to
select-options : s_matnr for mara-matnr.
Now you can take many entries for the material number
‎2007 May 22 8:04 AM
You cannot use parameter for multiple value...
1) either use select option for multiple value
2) Use two separate parameter fields for From & To for a same field
2 option is tedious and not advicable.
Regards
Suresh
‎2007 May 22 8:08 AM
hi kishor,
we can give multiple values in that paramete,
click on extenstion button on that parameter (i.e. -> which is avbl after your parameter in the slelction screen) , u can get the multiple selection ppo up there u can provide multiple inputs..
regards,
seshu.
‎2007 May 22 8:01 AM
‎2007 May 22 8:02 AM
Hi Kishor,
If it is declared as parameter in code then you can't do that.
Regards,
Atish
‎2007 May 22 8:03 AM
Hi
If u want enter multiple inputs in selction screen u better to use select-option,
parameters is for single values only.
Note:
Parameters ( P_ )
Parameters variable are used to allow data entry at the selection screen before program execution. These variables have a limited length of eight (8) characters. Variable types of this category must be prefixed with P_. The following are examples of variable names to be used.
PARAMETER: P_VKORG TYPE MVKE-VKORG,
P_VTWEG TYPE MVKE-VTWEG.
Select-options ( S_ )
The SELECT-OPTIONS <Field name> for <Table field> statement generates a program variable used for selection criteria. This allows a user at the selection screen to enter in a range of values. The variable generated is actually a system-generated table containing <variable>-high value, <variable>-low value, <variable>-sign, and <variable>-option for the table field selected. Variable types of this category must be prefixed with S_ and have a limited length of eight (8) characters. The following are examples of variable names to be used:
DATA: V_MATNR TYPE MARA-MATNR.
SELECT-OPTIONS: S_MATNR FOR V_MATNR.
Ranges ( R_ )
The RANGES <Field name> for <Table field> statement generates a program variable used for selection criteria much like the SELECT-OPTIONS. The variable generated is actually a system-generated table containing <variable>-high value, <variable>-low value, <variable>-sign, and <variable>-option for the table field selected. Variable types of this category must be prefixed with R_ and have a limited length of thirty (30) characters. The following are examples of variable names to be used:
DATA: V_MATNR TYPE MARA-MATNR.
RANGES: R_MATNR FOR V_MATNR.
Regards
Suresh.D
‎2007 May 22 8:03 AM
Hi Kishore,
The main difference between select-options and parameters is that the select-option creates a selection table consisting of 4 fields.
SIGN
The data type of SIGN is C with length 1. The contents of SIGN determine for each row whether the result of the row condition is to be included in or excluded from the resulting set of all rows.
Possible values are I and E.
I stands for "inclusive" (inclusion criterion - operators are not inverted)
E stands for "exclusive" (exclusion criterion - operators are inverted)
OPTION
The data type of OPTION is C with length 2. OPTION contains the selection operator. The following operators are available:
If HIGH is empty, you can use EQ, NE, GT, LE, LT,CP, and NP. These operators are the same as those that are used for logical expressions. Yet operators CP and NP do not have the full functional scope they have in normal logical expressions. They are only allowed if wildcards ( '*' or '+' ) are used in the input fields.
If wildcards are entered on the selection screen, the system automatically uses the operator CP. The escape character is defined as #.
If HIGH is filled, you can use BT (BeTween) and NB (Not Between). These operators correspond to BETWEEN
and NOT BETWEEN that you use when you check if a field belongs to a range. You cannot use wildcard characters.
- LOW
The data type of LOW is the same as the column type of the database table, to which the selection criterion is linked.
If HIGH is empty, the contents of LOW define a single field comparison. In combination with the operator in OPTION, it specifies a condition for the database selection.
If HIGH is filled, the contents of LOW and HIGH specify the upper and lower limits for a range. In combination with the operator in OPTION, the range specifies a condition for the database selection.
- HIGH
The data type of HIGH is the same as the column type of the database table, to which the selection criterion is linked. The contents of HIGH specify the upper limit for a range selection.
The parameter statement does not create a selection table .
The second thing is select-option gives us a range for selection, whereas parameter doesn't .
Using the parameter you can define radio buttons and checkboxes where as select-options can't .
Reward pls