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

find transction

Former Member
0 Likes
538

hi

how can i know in badi or user-exit in real-time what is the transction that call to the user-exit or badi

thanks

1 ACCEPTED SOLUTION
Read only

former_member416164
Participant
0 Likes
512

Hi,

Did you check SY-TCODE ? It should contain the transaction that called the Badi or User-Exit

Regards

4 REPLIES 4
Read only

former_member416164
Participant
0 Likes
513

Hi,

Did you check SY-TCODE ? It should contain the transaction that called the Badi or User-Exit

Regards

Read only

Former Member
0 Likes
512

sy-tcode will have the t-code which calls the user-exit or badi.

Regards,

Ravi

Read only

Former Member
0 Likes
512

Hi,

SY-TCODE should tell you that.

In fact you can change the processing depending on the T Code, for example

IF SY-TCODE = 'ME21N' - Create mode

...

elseif sy-tcode = 'ME22n.

..

endif.

Regards,

Ravi

Note : Please mark the helpful answers

Read only

Former Member
0 Likes
512

Sometimes there wil be a field for activity type (AKTYP) which tells you if you are in create//change or display mode.

Regards,

Ravi