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

screen exit

Former Member
0 Likes
1,294

Hi Experts,

How to find screen exit for a T code.

Different methods to find.

Thank you.

1 ACCEPTED SOLUTION
Read only

bpawanchand
Active Contributor
0 Likes
1,003

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
Read only

bpawanchand
Active Contributor
0 Likes
1,004

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

Read only

0 Likes
1,003

Hi,

This code is not working.

Read only

Former Member
Read only

Former Member
0 Likes
1,003
Read only

Former Member
0 Likes
1,003

Hi praveen

Go through this link.

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

Regards.

Eshwar.

Read only

Former Member
Read only

0 Likes
1,003

Hi experts,

Any other method to find screen exit for a T code

Thank you

Read only

Former Member
0 Likes
1,003