Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ABAP_CALLSTACK

Former Member
0 Likes
830

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.

1 REPLY 1
Read only

Former Member
0 Likes
560

no idea is it really so diffucult ?