‎2006 Dec 18 8:06 AM
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
‎2006 Dec 18 8:10 AM
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