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

How to find the T-code for the implemented user-exit include programs

Former Member
0 Likes
1,380

Hi all,

Am working with the upgrade as well as re-implementation Project in sap.

I was given the list of user-exit include programs and asked to find the T-Codes.

I have searched through where used lists and done lot of practices but could not found solution.

Please help me getting out of this.. <Text removed by Moderator. Neutralizing the priority>

Please see sample Include Programs..

DBZADSEL

MM07MFM0_M_SEGMENTE_ERGAENZEN

Thanks in Advance..

Message was edited by: Jyoti Prakash

6 REPLIES 6
Read only

Former Member
0 Likes
1,222

Hi Vinay,

Usually you can find the Tcodes for a given program using table TSTC. But if you have Includes within a Program, it will not help as Transactions are linked to the main program and not the Includes within.

Hope this helps you to get a lead.

Regards,

Karthik Krishnan

Read only

0 Likes
1,222

Thanks Karthik,

is there any way to find out the t-code for include programs ? ?

Read only

0 Likes
1,222

I would recommend you to write a recursive method which calls function 'RS_EU_CROSSREF' (returns where-used list of an 'object'). This method should call itself with found entries from where-used list and save all found transaction codes in a table to display at the end.

With your given example MM07MFM0_M_SEGMENTE_ERGAENZEN this returns something like this:

MB01          T

MB02          T

MB03          T

MB04          T

MB05          T

MB0A          T

MB11          T

MB1A          T

MB1B          T

MB1C          T

MB31          T

MBNL          T

MBRL          T

MBSF          T

MBSL          T

MBST          T

MBSU          T

.....

Read only

aakash_neelaperumal2
Active Participant
0 Likes
1,222

You can find lot of programs in SCN to fetch the list of exits and badi in a given transaction or program. Use it to run for all the pgms and trans in your systems and do a vlookup using Excel (or) use the logic in those program to get ur functionality

Read only

Former Member
0 Likes
1,222

Do a where-used on the user exit include, it will show you the EXIT FM name, like for e.g. EXIT_SAPLCOMK_001.

The middle one 'SAPLCOMK' in the exit name is the main program to which the TCode will be attached.

So if you go to TSTC table and provide the program name as SAPLCOMK, you will get its TCode.

NOTE: Almost all Standard TCodes are basically attached to main program of a function group, like in case of SAPLCOMK, COMK is the function group name and SAPLCOMK is its main program. Whenever you see SAPL prefixed to a program, it will be the main program of a function group.

Read only

Former Member
0 Likes
1,222

Thanks for all in giving me the ur valuable inputs..