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

Get transaction event from ABAP and Screen stack

former_member919162
Discoverer
2,579

Hello SAP Gurus,

Do you know of any way to get the value of EVENT field for EVEN TYPE "TRANSACTION" in ABAP and Screen Stack shown in debugging mode? Please refer to the photo below.

Is it possible to get that value?

By the way, the scenario is, I have a transaction code "ZALDO_TEST2" which is a tcode set to call transaction code "ZALDO_TEST1" using a specific variant. It looks like this in SE93.

If this is possible, the logic will be applied inside ZALDO_TEST1's program.

1 ACCEPTED SOLUTION
Read only

Sandra_Rossi
Active Contributor
1,593

To test ZALDO_TEST1:

IF SY-TCODE = 'ZALDO_TEST1'.

To get ZALDO_TEST2:

IF CL_ABAP_SYST=>get_transaction_code( ) = 'ZALDO_TEST2'.
2 REPLIES 2
Read only

Sandra_Rossi
Active Contributor
1,594

To test ZALDO_TEST1:

IF SY-TCODE = 'ZALDO_TEST1'.

To get ZALDO_TEST2:

IF CL_ABAP_SYST=>get_transaction_code( ) = 'ZALDO_TEST2'.
Read only

1,593

Thanks Sandra! I didn't know that it is this simple. This worked!