Application Development 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: 

Excluding a value in Select options

Former Member
0 Kudos

Hi,

I have one select-option TCODE(Transaction Code) in the selection-screen.

I want to exclude all tranctions except the transactions starts with FB* .

Could please tell me how to exclude all other transactions except FB*.

Do I need to check in At selection-screen or need to initialize in Initialization event.

Thanks in advance.

Regards,

Shankar

5 REPLIES 5

Former Member
0 Kudos

in select give where condition as

<b>tcode CP 'FB*'</b>

Former Member
0 Kudos

1. Go to selection screen.

2. click the multiple selection press button at the end of the second i/o field of the select option.

3. enter '*' in select single value tab (1st tab).

4. Go to third tab( Execlude single values) and enter FB*.

5. execute the multiple selection .

6. Now execute the program.

former_member387317
Active Contributor
0 Kudos

Hi welcome to SDN,

You have to check it on AT SELECTION-SCREEN.

so something like this..

data : temp2(2) type c, temp(5) type C

AT SELECTION-SCREEN on tcode.

temp = TCODE-low.

temp2 = temp+0(2).

IF temp2 = 'FB'.

        • ur logic ******

else.

        • another logic *******

endif.

u can check like same for TCODE-high as well..

<b>

Reward points for all usefull answers.</b>

<b>Hope it will solve your problem..</b>

Thanks & Regards

ilesh 24x7

Former Member
0 Kudos

Hi Shankar,

I don't know it'll help you or not..but you can try in this way...

select-options: s_tcode for tab-tcode NO-DISPALY.

initialization.

s_tcode-low = 'FB*'.

Former Member
0 Kudos

Hi Shankar,

<b>Try it in this way. <b>You will get it.</b></b>*********

tables tstc.

select-options s_tcode for tstc-tcode.

data: begin of itab occurs 2,

tcode like tstc-tcode,

end of itab.

At selection-screen.

select tcode from tstc into table itab where tcode in s_tcode.

if sy-subrc is initial.

Loop at itab where tcode np 'FB*'.

  • raise message

Endloop.

endif.

regards,

kishore