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 get currently running tcode inside the user exist

gevanj
Explorer
0 Likes
868

Hi All,

I want to write user exist for me22n & me23n, inside the user exist i want to check tcode whether tcode is me22n or me23n my user exist is ME_PROCESS_PO_CUST

.please help me

Thnx//

Hi All,

I want to write user exist for me22n & me23n, inside the user exist i want to check tcode whether tcode is me22n or me23n my user exist is ME_PROCESS_PO_CUST

.please help me

Thnx//

2 REPLIES 2
Read only

Mohamed_Mukhtar
Active Contributor
0 Likes
840

Hello Gevan,

Please check the value of sy-tcode for both transaction in debugging mode in the exit and write your code accordingly.


case sy-tcode.

when 'ME22N'

*ur code

When 'ME23N'

*ur logic

endcase.

find the screen shot from debugging

Thanks

Read only

anubhab
Active Participant
0 Likes
840

Hello Gevan,

  As suggested by , you can get current transaction name in system field SY_TCODE. After that just put a check for t-code and put your logic inside that.

Regards,

Anubhab