Skip to Content

Debug inbound IDOC in real time

Aug 30, 2017 at 06:52 AM


avatar image

Dear All,

I have an error in IDoc and while re-processing I am getting an authorization issue because it calls a PO change bapi Inside code.

Is there any way we can debug in real time? As in if I do a transaction in prod and while posting the entry in sap it should stop.?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

avatar image
Former Member Aug 30, 2017 at 07:03 AM

Hi Nitin,

  • You can set a breakpoint at the beginning of the function module associated with the process code configured for the IDoc in the partner profile and re-trigger the posting with T-Code BD87
  • You could process a copy of the idoc in foreground using t-code WE19.


Show 2 Share
10 |10000 characters needed characters left characters exceeded

I want to stop in debug on realtime basis, i.e. when idoc is triggered it should stop at that movement not in reprocess mode.

Former Member

The only way I know how you would get into a "real-time" debugging session for an IDoc that is not triggered through re-processing is by setting up an external breakpoint for the user that posts the IDoc to SAP. However, external breakpoints are only possible for dialog users and subsystems posting IDocs would typically be configured with a system user that cannot start a dialog process.