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

How to find BDC/BAPI/Direct tcode execution?

Arun_Prabhu_K
Active Contributor
0 Likes
767

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

Arun_Prabhu_K
Active Contributor
0 Likes
592

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

Former Member
0 Likes
592

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

Read only

Arun_Prabhu_K
Active Contributor
0 Likes
593

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.