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

Trigger user exit from custom t-code which is copy of std t-code

Former Member
0 Likes
549

Hi,

I have a custom t-code ZDP91 which is a copy of SAP Std t-code DP91.

There is a user exit AD010007 which is called in DP91.

Now ZDP91 internally calls DP91 so the variable SY-TCODE always contains value DP91.

But the problem is I have to trigger this user exit only in t-code ZDP91.

Can somebody please help me in finding a way to differentiate between the above two t-codes?

Regards,

Swapnil.

Hi,

I have a custom t-code ZDP91 which is a copy of SAP Std t-code DP91.

There is a user exit AD010007 which is called in DP91.

Now ZDP91 internally calls DP91 so the variable SY-TCODE always contains value DP91.

But the problem is I have to trigger this user exit only in t-code ZDP91.

Can somebody please help me in finding a way to differentiate between the above two t-codes?

Regards,

Swapnil.

1 REPLY 1
Read only

Former Member
0 Likes
436

You can set a flag if the transaction is ZPD91 and export it to memory id. Import the same flag inside the userexit and depending upon the flag setting execute the code inside user exit.

Hope this will solve the problem.