cancel
Showing results for 
Search instead for 
Did you mean: 

How to detect from which BAPI is a certain BTE called ???

ealimeta
Participant
0 Kudos

Hello all !

My scenario is simple .
I have used a certain BTE 1120  and placed some code in it .
When i use  BAPI_ACC_DOCUMENT_CHECK   i don't want this BTE to get called ,
instead when i use BAPI_ACC_DOCUMENT_POST  i want this BTE get called .

Is there any way  i can tell when this BTE is trigered by which BAPI ??

Any system parameter that i could check inside the FM that contains the code of the BTE ,
so can put  a simple IF CONDITION on example

IF sy-param  NOT EQUAL TO  BAPI_ACC_DOCUMENT_CHECK


DO THE STUFFFF .

ENDIF .


THANKS IN ADVANCE
Toni .



Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can use static method GET_CALL_STACK of class CL_ABAP_GET_CALL_STACK or FM SYSTEM_CALLSTACK to read the call stack and put a condition inside your BTE FM.

R

ealimeta
Participant
0 Kudos

Ok  man ,
I am gonna try it now .
thanks .

Answers (0)