Not sure of your requirement. But try using CL_ABAP_SYST=>GET_TRANSACTION_CODE( ) instead of sy-tcode in your program.
↧
Not sure of your requirement. But try using CL_ABAP_SYST=>GET_TRANSACTION_CODE( ) instead of sy-tcode in your program.