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

Name of the function module in variable

Former Member
0 Likes
733

Hi experts,

i have on easy question for you.

I am looking for a possibility to know the name of the function module via variable.

Normaly i have for example SY-REPID with the name of the Report. Is there something for function modules also?

Thank you for your help

Thorsten

2 REPLIES 2
Read only

Former Member
0 Likes
458

Actually...There's not...But you could create a global variable and assign the name of the FM into it...

Greetings,

Blag.

Read only

Clemenss
Active Contributor
0 Likes
458

Hi Thorsten,

this function may help you (although I ´was told it's time-consuming):


*Get system callstack
  CALL FUNCTION 'SYSTEM_CALLSTACK'
       IMPORTING
            ET_CALLSTACK = GT_SYS_CALLST.

Regards,

Clemens