quinta-feira, 25 de outubro de 2018

https://wiki.scn.sap.com/wiki/display/ERPFI/How+to+debug+an+IDOC

Purpose

This wiki provides a demonstration of how to debug an IDOC.

Overview

The IDOC given in this example is based on invoice in materials management on a test system.

Step 1 - Display IDOC with error in transaction WE02

Double click on the Control Record.
View information on tab Typinfo:


Select tab Partner. For inbound processing check the Sender information.
.

Step 2 - View Partner profiles in transaction WE20

Using the information from step 1:
Partner type LI, Partner Number CP-CP01, Message type INVOIC, Message Variant MM
In transaction WE20 Open folder for Partner Type LI

Double click on partner number CP-CP01


In the inbound parameters, double click on Message type INVOIC (Message variant MM)


Double click on Process code



Here you find the function code identification, in this instance IDOC_INPUT_INVOIC_MRM

Step 3 - Set breakpoint on IDOC_INPUT_INVOIC_MRM and other relevant function modules for issue concerned via SE37




Step 4 - Use transaction BD87 to debug IDOC concerned.

In transaction BD87 enter concerned IDOC and execute.




Select Button Process (F8). You then come to the first breakpoint set i.e. in this example on function module IDOC_INPUT_INVOIC_MRM


 

Use F8 to go to the other relevant Breakpoints you have set.


Fonte: https://wiki.scn.sap.com/wiki/display/ERPFI/How+to+debug+an+IDOC

Nenhum comentário:

Postar um comentário