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

Find a Function Module in Update Task dynamically called

Hello experts, I have a question regarding how you can find a function module in Update Task in which place it is called. If it is a constant and you put in the Constant the name of the Function Module, than you will not receive any result on the Where Used List Search. If you put a Break-point in your Function and then in the System Debugging you flag the property to be able to make debugging on a Function Module in Update Task than you will don't have the Stack where it is called the Function Module, because it is in Update Task, and it is executed when it meet the COMMIT WORK. Is there a nice posibillity to find? or the last posibillity is to make debugg or to search it manually till you find it. Thank you.

Add comment
10|10000 characters needed characters exceeded

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 04, 2013 at 01:56 PM

    An entry is inserted to table VBMOD when a function module is called in update task.

    You can do ST05 SQL trace, and look for function module name.

    VBMOD, INSERT and FM name would appear in single line.

    F5 (display ABAP call positions) on that entry would take you to place where FM was called.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 04, 2013 at 12:07 PM

    Hi Alexandru,

    Please try with two options, it will help you I hope so:

    First in the below screen shot you go and save your function module which needs to be trigger after the update flag on and activate it.

    even if it is not working then try with the below option as :

    if you know the function module name.


    Capture.JPG (80.7 kB)
    Capture1.JPG (70.8 kB)
    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 04, 2013 at 11:49 AM

    Hi,

    I don't think you can easily found out where the call is coming from due to the reasons you have mentioned.

    What is the reason why you posted this question? Maybe there are other ways of finding out what you want.

    Kind regards, Rob Dieleman

    Add comment
    10|10000 characters needed characters exceeded

    • Hi,

      during debugging in the call stack you can find stuff where it is called from, but in update task I don't think you can find them. So.... You're usually left with using the abap source scan report to find in code where it is used, etc.

      Kind regards, Rob Dielemans