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: 

screen exit

Former Member
0 Kudos

Hi Experts,

How to find screen exit for a T code.

Different methods to find.

Thank you.

1 ACCEPTED SOLUTION

bpawanchand
Active Contributor
0 Kudos

HI

Copy the below code in a report and execute the report and enter the T-code for which you want to find the screen exits .

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

Pavan

8 REPLIES 8

bpawanchand
Active Contributor
0 Kudos

HI

Copy the below code in a report and execute the report and enter the T-code for which you want to find the screen exits .

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

Pavan

0 Kudos

Hi,

This code is not working.

Former Member

Former Member
0 Kudos

Former Member
0 Kudos

Hi praveen

Go through this link.

http://saptechnical.com/Tutorials/ExitsBADIs/FindUserExitswithTCode.htm

Regards.

Eshwar.

Former Member

0 Kudos

Hi experts,

Any other method to find screen exit for a T code

Thank you

Former Member