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

Getting the call stack up to a certain location.

Former Member
0 Likes
587

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
Read only

uwe_schieferstein
Active Contributor
0 Likes
462

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

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 REPLY 1
Read only

uwe_schieferstein
Active Contributor
0 Likes
463

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