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: 

How to find BDC/BAPI/Direct tcode execution?

Arun_Prabhu_K
Active Contributor
0 Kudos
343

Hi guys.

Inside the user exit of MM02, I want to know how to find out if it is being directly executed via MM02 / via BDC / via BAPI from some Z program.

Thanks in advance.

1 ACCEPTED SOLUTION

Arun_Prabhu_K
Active Contributor
0 Kudos
168

I have got the answer for my requirement.

System variable SY-CALLD will have ‘X’ if called via BDC or via BAPI, else it will be blank when tcode is directly called.

2 REPLIES 2

Former Member
0 Kudos
168

Goto program in se38 and find with call transaction if it is single statement or double click you may get the transaction used.

Arun_Prabhu_K
Active Contributor
0 Kudos
169

I have got the answer for my requirement.

System variable SY-CALLD will have ‘X’ if called via BDC or via BAPI, else it will be blank when tcode is directly called.