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
317

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
295
if sy-tcode = 'ME21'.
...
elseif sy-tcode = 'ME21N'.
...
endif.

Regards,.

Rich Heilman

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 REPLY 1
Read only

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

Regards,.

Rich Heilman