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: 

Abap Screen Stack: Who calls who ?

Former Member
0 Kudos
554

Hi Guys,

I have a FORM and I would like to know who called this FORM without parameter ?

For example:


FORM test1.

PERFORM test3

ENDFORM.

FORM test2.

PERFORM test3

ENDFORM.

FORM test3.

" // Who called me ?

WRITE: 'The perform who called me is :' ... .

ENDFORM.

Result:


The perform who called me is : TEST1

The perform who called me is : TEST2

I guess that is possible because in the debug mode, we have the screen stack who provide the list of the performed executed until the target form ... as below:

Thx, for any idea!

1 ACCEPTED SOLUTION

nabheetscn
Active Contributor
0 Kudos
76

Hi Rachid

You want to read this stack..?if yes search abap_callstack function call.. search you will find many rederences

Nabheet

2 REPLIES 2

nabheetscn
Active Contributor
0 Kudos
77

Hi Rachid

You want to read this stack..?if yes search abap_callstack function call.. search you will find many rederences

Nabheet

0 Kudos
76

Beautiful!

Many Thx Nabheet !

  call function 'SYSTEM_CALLSTACK'

    importing

      et_callstack = i_callstack.