Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8985

Re: How to identify a BAPI call?

$
0
0

You could also look for the BAPI FM in the stack (not valid when in update task of course, but there it is always too late), the code could look like :

CALL FUNCTION 'SYSTEM_CALLSTACK'   IMPORTING     et_callstack = lt_callstack.
 LOOP AT lt_callstack TRANSPORTING NO FIELDS WHERE eventname CS 'BAPI'.   EXIT.
 ENDLOOP.
 IF sy-subrc NE 0 " Not a BAPI
 AND sy-batch IS INITIAL " Not a background job
 AND sy-binpt IS INITIAL. " Not a batch input

 

Regards,
Raymond


Viewing all articles
Browse latest Browse all 8985

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>