10-23-2007 11:44 AM
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
10-23-2007 11:48 AM
10-23-2007 11:49 AM
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.
10-23-2007 11:54 AM
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
10-23-2007 12:00 PM
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*'.
10-23-2007 12:25 PM
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