‎2007 Mar 06 10:44 AM
Hello!
This below shown "form routine" can be called within every "form routine" and it provides the whole callstack concerning the current programm.
My Question is:
Is there a way how to provide also current values of data
objects and all variables except the callstack of the current programm. The struchture abdbg has very interesting components. I didn't find it out.
Please help!
Regards
Ilhan
FORM akt.
TYPES:
begin of abap_call_stack_entry,
mainprogram like sy-repid,
include like sy-repid,
line type i,
eventtype like abdbg-leventtype,
event like abdbg-levent,
flag_system type c,
end of abap_call_stack_entry.
DATA:
acse type abap_call_stack_entry,
tab type table of abap_call_stack_entry.
CALL 'ABAP_CALLSTACK' ID 'DEPTH' FIELD -1
ID 'CALLSTACK' FIELD tab.
LOOP AT tab INTO acse FROM 2.
WRITE:
/ 'Mainprog:', acse-mainprogram,
/ 'Include: ', acse-include,
/ 'Event: ', acse-eventtype,
acse-event.
ENDLOOP.
ENDFORM.
‎2007 Mar 06 12:20 PM