Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

parameter?

Former Member
0 Likes
1,639

Hi all,

How can i give multiple input value at selection-screen for a filed which has been declared as a perameter?

Kishore.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,597

Change the parameter option to the select-options.

12 REPLIES 12
Read only

Former Member
0 Likes
1,597

select-options is for getting multiple values(ranges)

parameter is for getting single value

dclare as

select-options variable for mara-field1.

Read only

0 Likes
1,597

Hi,

I am not getting can u please explain it clearly.

Kishi.

Read only

0 Likes
1,597

Hi,

Thsts ok..But how can i do that for the PARAMETR filed.

Kishi.

Read only

0 Likes
1,597

you cannot give multiple values to parameter

Instead declare like this

select-options : s_matnr for mara-matnr no intervals .

Read only

0 Likes
1,597

Hai,

Using Parameter we can get single value only, But for Select-options we can get multiple Values.

Regards,

Padmam.

Read only

0 Likes
1,597

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

Read only

0 Likes
1,597

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

Read only

0 Likes
1,597

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.

Read only

Former Member
0 Likes
1,598

Change the parameter option to the select-options.

Read only

Former Member
0 Likes
1,597

Hi Kishor,

If it is declared as parameter in code then you can't do that.

Regards,

Atish

Read only

Former Member
0 Likes
1,597

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

Read only

Former Member
0 Likes
1,597

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