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

Queries

Former Member
0 Likes
821

Hi experts,

1.When we define select-options in program..

We see From and To options...in the selection screen.In the same row if i want to put some more selections...How can we do it?...

2. Are the variants are Client Dependent or independent?..

Regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
796

1.When we define select-options in program..

We see From and To options...in the selection screen.In the same row if i want to put some more selections...How can we do it?...

Sorry did not understand your question..a select-option always the user to define the from and to values with different operations. eg. U can even just enter multiple single value and/or from and to values with BT as the option and/or define patterns.

Regards

Anurag

8 REPLIES 8
Read only

Former Member
0 Likes
797

1.When we define select-options in program..

We see From and To options...in the selection screen.In the same row if i want to put some more selections...How can we do it?...

Sorry did not understand your question..a select-option always the user to define the from and to values with different operations. eg. U can even just enter multiple single value and/or from and to values with BT as the option and/or define patterns.

Regards

Anurag

Read only

Former Member
0 Likes
796

1) You cannot do that. See what the sap documentation says in this regard:

<b>"You cannot include SELECT-OPTIONS between SELECTION-SCREEN BEGIN OF LINE and SELECTION-SCREEN END OF LINE , since the system generates more than one object on the selection screen in a SELECT-OPTION (like fields for lower and upper limits).

You cannot use any variants of SELECTION-SCREEN that generate a new line (like SELECTION-SCREEN SKIP) between SELECTION-SCREEN BEGIN OF LINE and SELECTION-SCREEN END OF LINE. "</b>

2) Variants are Client Dependent.

Regards,

Ravi

Read only

Former Member
0 Likes
796

Kiran,

you can use following code for define parameters in same line giving positions..

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 01(30) text-003 FOR FIELD p_monat MODIF ID fi.

SELECTION-SCREEN POSITION 33.

PARAMETERS p_gjahr LIKE bkpf-gjahr MODIF ID fi.

PARAMETERS p_monat LIKE bkpf-monat MODIF ID fi.

SELECTION-SCREEN COMMENT 52(04) text-005 FOR FIELD p_monat MODIF ID fi.

SELECTION-SCREEN POSITION 58.

PARAMETERS p_bgjahr LIKE bkpf-gjahr MODIF ID fi.

PARAMETERS p_bmonat LIKE bkpf-monat MODIF ID fi.

SELECTION-SCREEN END OF LINE.

variants are client dependent.

-Anu

Message was edited by:

Anupama Reddy

Read only

0 Likes
796

Hi all,

Thanks.

Read only

Former Member
0 Likes
796

u need to put the select-options in a single line using positions.

Firts write begin of line....then position ur select options one by one with positions...then write end of line...

Variants are client dependent...

Read only

Former Member
0 Likes
796

Hi,

1. you can clicl on the interval button provided next to the from and to select option which is represented by arrow. u can give your values there.

2. The variants are client Dependent.

Madhavi

Read only

Former Member
0 Likes
796

Hello Ravi,

U can use the COMMENT statement BEGIN OF LINE AND END OF LINE for the Ist question.

Varaiants are <b>CLient dependent.</b>

If useful reward.

Vasanth

Message was edited by:

Vasanth M

Read only

Former Member
0 Likes
796

hi

Select-options are being used to take input for a range frm user.For exp

u want to display all matnr numbers bet 100 to 500

so declare like this

select-options: zmatnr for mara-matnr

then start-of-selection.

select * from mara into corresponding fields of table itab where matnr in zmatnr.

for multple selctions u have to click on the arrow mark which is in right hand side of the select-options in the execute screen ang provide the value.

Mark points if helpful

Regs

Manas Ranjan Panda