Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to find screen exit

Hi,

How to findout the screen exit for IL02 Tcode

Thanks

-Kumar

Tags:
Former Member
Former Member replied

Hi,

you can use the below code to find out the screen exit for any transaction code..

Just copy and paste in your new program. and execute to find screen exits for a give transaction code.

tables: modsap, modact, tstc.

parameters: input1 like tstc-tcode default ' ',

input2 like modsap-typ default ' '.

data: search1(6),

search2(3),

search3 like modsap-member.

data : first_row value 'Y'.

concatenate: '%' input1 '%' into search1,

'%' input2 into search2.

select * from tstc where tcode like search1.

first_row = 'Y'.

check tstc-pgmna ne space.

concatenate '%' tstc-pgmna '%' into search3.

select * from modsap where typ like search2

and member like search3.

select single * from modact where member = modsap-name.

if first_row eq 'Y'.

write: / tstc-tcode, 6 tstc-pgmna, 16 modsap-name, 32 modsap-typ,

45 modsap-member, 70 modact-name.

first_row = 'N'.

else.

write: /16 modsap-name, 32 modsap-typ, 45 modsap-member, 70

modact-name.

endif.

clear : modsap, modact.

endselect.

if sy-subrc ne 0.

write : / tstc-tcode, 6 tstc-pgmna, 30 'No exits found'.

endif.

clear tstc.

endselect.

end-of-selection.

clear: search1, search2, search3.

Regards,

KK

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question