Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
Showing results for 
Search instead for 
Did you mean: 

How to find the Program that triggered the outbound idoc ?

Former Member
0 Kudos


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


Active Participant
0 Kudos


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.

Active Contributor
0 Kudos


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.


Active Contributor
0 Kudos

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.