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

what transaction called

rodrigo_paisante3
Active Contributor
0 Likes
319

Hello experts,

i need to know what transaction called the program. How can i do this??

if transaction = me21.

...

else if transaction = me21n.

...

endif.

Thanks to all.

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
297
if sy-tcode = 'ME21'.
...
elseif sy-tcode = 'ME21N'.
...
endif.

Regards,.

Rich Heilman

if sy-tcode = 'ME21'.
...
elseif sy-tcode = 'ME21N'.
...
endif.

Regards,.

Rich Heilman

1 REPLY 1
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
298
if sy-tcode = 'ME21'.
...
elseif sy-tcode = 'ME21N'.
...
endif.

Regards,.

Rich Heilman