‎2007 Mar 05 7:37 PM
Hello!
Is somebody be able to show me through a sample
code how to use the structure ABDBG
and also getting useful information.
Regards
Ilhan
‎2007 Mar 05 7:59 PM
Any se38 program put a break-point in your code and in the debugger give the structure name ABDBG and double click on it. You will the values for that structure. Hope it helps. see the sample here. award points if it helps.
1 FLINE I 4 4
2 CLINE I 4 6
3 BCOUNT s 2 0
4 XCODE C 70
5 REPID C 40 ZTEST
6 REPIDTITL C 20 Main Program
7 SREPIDTITL C 20 Source code of
8 EVENT C 82 EVENT START-OF-SELECTION
9 BREAKP C 4
10 ACTUAL C 4
11 CURRLINE C 72 SELECTION-SCREEN END OF SCREEN 500.
12 FIRSTV C 5
13 VINDEX C 5
14 VNAME C 132
15 VTYPE C 1 u
16 VLENGTH C 5
‎2007 Mar 05 8:03 PM
soory vinni but this is not what I want to have.
I need really a code sample on how to apply this structure
to get information for example about some values of some variables
during runtime.
Reagrds
Ilhan
‎2007 Mar 05 8:08 PM
what are those variables that you need out of this structure and where r u using it. write in brief.
‎2007 Mar 05 9:00 PM
Hi!
Imagine I want also get information (its values) about variables e.g
like latte bolo and not only form or event name.
Reagrds
Ilhan
perform first.
perform second.
perform fourth.
form first.
data latte type i.
latte = 78.
perform akt.
endform.
form second.
data bolo type i.
bolo = 345.
perform akt.
endform.
form fourth.
data sync type i.
sync = 989.
perform akt.
endform.
FORM aktuelle_routine.
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 2
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 8:07 AM