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

Multiple selection on selection screen.

Former Member
0 Likes
2,225

Hi guys..i am using the below code

PARAMETERS: P_BUKRS LIKE BSEG-BUKRS OBLIGATORY,

P_BKTXT LIKE BKPF-BKTXT,

P_BELNR LIKE BSEG-BELNR,

P_GJAHR LIKE BSEG-GJAHR DEFAULT '2008',

P_BLART LIKE BKPF-BLART DEFAULT 'ZE',

P_TCODE LIKE BKPF-TCODE DEFAULT 'ZCA_SCEDI',

P_CPUDT LIKE BKPF-CPUDT OBLIGATORY.

But when i execute this there is no choice for ranges or multiple selections...how can i code so I can allow for ranges to be selected?

thanks

Brian

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,880

hi,

Use Select-option for multiple selection.

SELECT-OPTIONS:  P_BUKRS FOR BSEG-BUKRS OBLIGATORY,
P_BKTXT FOR BKPF-BKTXT,
P_BELNR FOR BSEG-BELNR,
P_GJAHR FOR BSEG-GJAHR DEFAULT '2008',
P_BLART FOR BKPF-BLART DEFAULT 'ZE',
P_TCODE FOR  BKPF-TCODE DEFAULT 'ZCA_SCEDI',
P_CPUDT FOR  BKPF-CPUDT OBLIGATORY.

SELECT-OPTIONS: WERKS FOR T001W-WERKS DEFAULT '1000' NO-EXTENSION NO INTERVALS

Rgds

Vijay

Edited by: vijay sathy on Mar 26, 2008 5:44 PM

4 REPLIES 4
Read only

Former Member
0 Likes
1,880

Use SELECT-OPTIONS: S_MATNR FOR MARA-MATNR.

Parameters won't accept ranges.

Thanks,

Srinivas

Read only

Former Member
0 Likes
1,881

hi,

Use Select-option for multiple selection.

SELECT-OPTIONS:  P_BUKRS FOR BSEG-BUKRS OBLIGATORY,
P_BKTXT FOR BKPF-BKTXT,
P_BELNR FOR BSEG-BELNR,
P_GJAHR FOR BSEG-GJAHR DEFAULT '2008',
P_BLART FOR BKPF-BLART DEFAULT 'ZE',
P_TCODE FOR  BKPF-TCODE DEFAULT 'ZCA_SCEDI',
P_CPUDT FOR  BKPF-CPUDT OBLIGATORY.

SELECT-OPTIONS: WERKS FOR T001W-WERKS DEFAULT '1000' NO-EXTENSION NO INTERVALS

Rgds

Vijay

Edited by: vijay sathy on Mar 26, 2008 5:44 PM

Read only

Former Member
0 Likes
1,880

hi ,

Parameters provide us to select only one value at a time. If you want to select more than one value at a time , parameters provide option like list box where you can select more than one.

But if you want to select the values between the ranges then you have to go to select-options.

This select options maintain an internal table known as 'SELECTION" table which contains all the values from the table.

A selection table is an internal standard table with header line and standard key. In selection tables, you can save multiple logical conditions. The content of selection screens can be analyzed in a logical expression and in the expression of a WHERE-condition in Open SQL. Selection tables have the following four columns:

1) sign of type c and length 1. The content of sign determines for every row whether the result of the condition formulated in the column is included or excluded in the entire resulting set for all rows. Evaluable values are "I" for include and "E" for exclude.

2) option of type c and length 2. option contains the selection option for the condition of the row in form of logical operators. Analyzable operators are "EQ", "NE", "GE", "GT", "LE", "LT", "CP" and "NP" if column high is initial, and "BT", "NB" if column high is not initial. With the options "CP" and "NP", the data type of the columns low and high must be of the data type c, and special rules apply for entries on the selection screen

3)low of the data type defined after FOR. This column is designated for the comparison value or the lower interval limitation.

4) high of the data type defined after FOR. This column is designated for the upper interval limitation.

Sample code :

SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.

SELECT-OPTIONS:

S_BUKRS FOR BSEG-BUKRS OBLIGATORY,

S_BKTXT FOR BKPF-BKTXT,

S_BELNR FOR BSEG-BELNR,

S_GJAHR FOR BSEG-GJAHR DEFAULT '2008',

S_BLART FOR BKPF-BLART DEFAULT 'ZE',

S_TCODE FOR BKPF-TCODE DEFAULT 'ZCA_SCEDI',

S_CPUDT FOR BKPF-CPUDT OBLIGATORY.

SELECTION-SCREEN : END OF BLOCK B1.

reward points if helpful.

thanks and regards.

Read only

Former Member
0 Likes
1,880

hi,

parameters wont provide ranges but we can do it using eith extension.

by using select option we can provide teh ramge of values.

it contain a selection table.

A selection table is an internal standard table with header line and standard key. The content of selection screens can be analyzed in a logical expression and in the expression of a WHERE-condition in Open SQL.

.

Sample code :

SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.

SELECT-OPTIONS:

S_BUKRS FOR BSEG-BUKRS OBLIGATORY,

S_BKTXT FOR BKPF-BKTXT,

S_BELNR FOR BSEG-BELNR,

S_GJAHR FOR BSEG-GJAHR DEFAULT '2008',

S_BLART FOR BKPF-BLART DEFAULT 'ZE',

S_TCODE FOR BKPF-TCODE DEFAULT 'ZCA_SCEDI',

S_CPUDT FOR BKPF-CPUDT OBLIGATORY.

SELECTION-SCREEN : END OF BLOCK B1.

u can try this.

reward if usefull.