Skip to Content
author's profile photo Former Member
Former Member

Calling method

Hello,

Quick question: When I am in a method that has been called by another method, how can I find the name of the first method that called to second one ?

Best regards,

Hugo

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2010 at 07:55 PM

    Use the fm SYSTEM_CALLSTACK to get the names. I'm not sure if you will get all the method names or just the current one.

    You can also store the first method name to compare the value in the second one.

    For your reference:

    get-the-value-of-a-field-dynamically-using-systemc

    Regards,

    Felipe

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 13, 2010 at 07:10 PM

    Put a break point at last level. and in the debugging screen check ABAP stack to know the call sequence..

    Thanks,

    Naveen.I

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thank you Naveen

      In fact, I would like to know how to find the calling method in a runtime environment, not in debug mode.

      My program needs to execute some actions depending on the method initiated the call.

      Regards,

      Hugo

  • author's profile photo Former Member
    Former Member
    Posted on Oct 14, 2010 at 11:30 AM

    hi,

    try to use SUPER keyword.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 14, 2010 at 12:22 PM

    fm SYSTEM_CALLSTACK might help you.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.