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

Selection screen fields

Former Member
0 Likes
424

Hi experts,

I have a selection screen with 4 select options. But the problem is 3 of the 4 fields in the select option are the same i.e

my selection screen is :

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

SELECT-OPTIONS : s_loc for t527x-orgeh ,

s_area for t001p-btrtl ,

s_mark for t527x-orgeh ,

s_reg for t527x-orgeh .

SELECTION-SCREEN END OF BLOCK b1.

How do i write a select statement for this selection screen to select the values entered in the above fields??

what will be my where condition??

Kindly guide me on this.

Points will be rewarded for answers.

Thanks and regards,

Frank.

3 REPLIES 3
Read only

saranwin
Contributor
0 Likes
401

HI,

U can give more than one values in select-options. Avoid to use the same field three times. U try to give the Values in one select-option.

Revert Back for any clarification.

Regards,

Saran.

Read only

Former Member
0 Likes
401

Hi saravanan,

But in my requirement i need to keep it separate. all three are for a different purpose.

Thanks and regards,

Frank

Read only

0 Likes
401

Hi frank,

Do like this



DATA: var1 type t527x-orgeh ,
          var2 type t527x-orgeh ,
          var3 type t527x-orgeh .

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECT-OPTIONS : s_loc for var1 ,
                               s_area for t001p-btrtl ,
                               s_mark for var2,
                               s_reg for var3. 
SELECTION-SCREEN END OF BLOCK b1.

Now u can easily write selection logic nased on var1, var2 , var3.

Regards

Sandipan