Skip to Content
avatar image
Former Member

How to find the Program that triggered the outbound idoc ?

Hi,

I have a scenario where I need to find Program which triggers the particular IDOC .

I have the IDoc number/segment/message type.

Is there a way we can find which program triggered it?

Thanks in advance

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Nov 23, 2016 at 03:14 PM

    Hello,

    It may be possible as a standard field exist in idoc status logging for REPID information. You can display this field like this:

    1. run BD87 with the idoc id
    2. Double-clik on a status in the tree
    3. Open tab "Logging"
    4. Have a look at "Program" field

    This field is not mandatory so you will have to fill it in your Idoc creator code. You can see that "User name" field (UNAME) is always filled with SY-UNAME running the idoc creator process (by default). Check in your program if a BDIDOCSTAT structure is used and trace fields UNAME, REPID and ROUTID.

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 24, 2016 at 10:55 AM

    Rohit,

    May be by using Partner Profile and Message Type you can zero on the Process Code (WE20),and using that Process Code,get the Function Module name (WE41/WE42) and then a where-used list of the FM will narrow down the programs using that function module.From that level you can drill down further and list out the possible programs.Mostly Program name will not be populated while creating the IDOC.If it is then well and good else we have to narrow down from the possible options we have in hand.

    K.Kiran.

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 24, 2016 at 03:44 PM

    In general all IDoc are processed by function module MASTER_IDOC_DISTRIBUTE. You can try to put a breakpoint somewhere at the beginning of MASTER_IDOC_DISTRIBUTE and find what you're looking for in ABAP stack.

    However in this case the assumption is you know how to trigger the IDoc.

    Add comment
    10|10000 characters needed characters exceeded