‎2006 May 29 3:59 PM
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
‎2006 May 29 4:02 PM
Hi,
Did you check SY-TCODE ? It should contain the transaction that called the Badi or User-Exit
Regards
‎2006 May 29 4:02 PM
Hi,
Did you check SY-TCODE ? It should contain the transaction that called the Badi or User-Exit
Regards
‎2006 May 29 4:03 PM
sy-tcode will have the t-code which calls the user-exit or badi.
Regards,
Ravi
‎2006 May 29 4:04 PM
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
‎2006 May 29 4:08 PM
Sometimes there wil be a field for activity type (AKTYP) which tells you if you are in create//change or display mode.
Regards,
Ravi