on 10-21-2015 3:19 PM
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 .
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.