‎2005 Sep 21 9:34 AM
Hi,
How to determine the subroutine that is currenlty being executed in the abap program?? Is there a system field which indicates or is it stored somewhere globally?
‎2005 Sep 21 10:06 AM
In The subroutine
DATA ET_CALLSTACK TYPE SYS_CALLST.
DATA WA_CALLSTACK LIKE LINE OF ET_CALLSTACK.
CALL FUNCTION 'SYSTEM_CALLSTACK'
IMPORTING
ET_CALLSTACK = ET_CALLSTACK.
.
READ TABLE ET_CALLSTACK INTO WA_CALLSTACK INDEX 1.
ET_CALLSTACK-EVENTNAME would have the current subroutine being executed.
Cheers.
‎2005 Sep 21 10:06 AM
In The subroutine
DATA ET_CALLSTACK TYPE SYS_CALLST.
DATA WA_CALLSTACK LIKE LINE OF ET_CALLSTACK.
CALL FUNCTION 'SYSTEM_CALLSTACK'
IMPORTING
ET_CALLSTACK = ET_CALLSTACK.
.
READ TABLE ET_CALLSTACK INTO WA_CALLSTACK INDEX 1.
ET_CALLSTACK-EVENTNAME would have the current subroutine being executed.
Cheers.