01-27-2008 9:48 AM
Dear friends,
I am searching for a function or method that can give me
the call stack(like in debug mode).
If you know of a function that provides this information
please let me know, its very urgent.
Thanks in advance,
Eitan Illuz.
01-27-2008 8:35 PM
Hello Eli
You may have a look at thread:
[Get the name of a function module within a function module|;
Sample coding to retrieve the calling function module:
data:
lt_callstack TYPE abap_callstack.
CALL FUNCTION 'SYSTEM_CALLSTACK'
IMPORTING
callstack = lt_callstack.
READ TABLE lt_callstack
WITH KEY blocktype = 'FUNCTION'
blockname = 'CRM_ORDER_COPY_SINGLE_OW'
TRANSPORTING NO FIELDS.
CHECK sy-subrc NE 0.
Reference: [http://martins.de/call_stack_lesen.html]
Regards
Uwe
01-27-2008 8:35 PM
Hello Eli
You may have a look at thread:
[Get the name of a function module within a function module|;
Sample coding to retrieve the calling function module:
data:
lt_callstack TYPE abap_callstack.
CALL FUNCTION 'SYSTEM_CALLSTACK'
IMPORTING
callstack = lt_callstack.
READ TABLE lt_callstack
WITH KEY blocktype = 'FUNCTION'
blockname = 'CRM_ORDER_COPY_SINGLE_OW'
TRANSPORTING NO FIELDS.
CHECK sy-subrc NE 0.
Reference: [http://martins.de/call_stack_lesen.html]
Regards
Uwe