Application Development 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: 

BTE: Urgent

Former Member
0 Kudos
123

Hello All,

I'm using BTE to give some restrictions while running Tcode F-47. But the same restrictions are checked by the system while running F-58 as well. Please tell me how to check transaction code in the function module so that i can give the conditions and check the restrictions for F-47 only. I'm using Z copy of SAMPLE_INTERFACE_00001030 function module.

Please reply at the earliest.

Thanks in Advance!!

Rohini.

2 REPLIES 2

Former Member
0 Kudos
59

sy-tcode contains current tcode by using that u can check transaction code

Former Member
0 Kudos
59

Hi Rohini,

You can use the system field sy-tcode. inside the if endif statement write your restriction code. E.g.:

IF sy-tcode = 'F-47'.

Write the restriction code.

Endif.

Reward if helpful.

Ashvender