Application Development 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: 

Getting the call stack up to a certain location.

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

uwe_schieferstein
Active Contributor
0 Kudos

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

1 REPLY 1

uwe_schieferstein
Active Contributor
0 Kudos

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