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

Identifying a call from BAPI

Former Member
0 Likes
699

Hello,

Is there any method to find out if a particular user exit/ program has been called from a BAPI ?

We have a requirement to block a popup window if the program is running in background, or has been called from a batch input session or BAPI.

We can use SY-BATCH and SY-BINPT, however unable to identify a call from BAPI.

Thanks,

Sushil

1 REPLY 1
Read only

Former Member
0 Likes
380

If I remember, the system will automatically take care of the same. Especially if you call a BAPI, there will not be any popups coming, unless its a custom screen you are calling in the user exit.

In that case, you look at the SY-TCODE value. If its being called from a BAPI, it will have either a blank value or somehting like SE37

Regards,

Ravi

Note - Please mark all the helpful answers