cancel
Showing results for 
Search instead for 
Did you mean: 

get name of current method

joachim_gross
Product and Topic Expert
Product and Topic Expert
0 Kudos
2,556

I need to know a way to find out the name of the currently running method.

eg:

method abc.

data: m_name type abap_methname.

m_name = xxx->current_method( ).

endmethod.

m_name should be 'ABC'.

If course i know the name on design time but it is not my aim to use literals.

So does anyone know how to get the method name?

TIA Joachim

View Entire Topic
joachim_gross
Product and Topic Expert
Product and Topic Expert
0 Kudos

In the sap.devel.lang.abap i got the right hint.

Use the call stack via function module system_callstack.