Avalados por :
Hello All,
After talking to some customers and getting feedback about documentation, one of the points mentioned was the need for more information about debugging hints in the SAP transactions.
Thinking about this, I realized I'm always debugging 😎, but, until now, I never created documentation describing how to debug transactions in the Procurement area.
Therefore, this post is special with debugging hints for those who work with invoice creation using MIRO.
One of the main scenarios I usually debug is the integration between MM and FI, where common questions are:
A. What IV sends to FI?
B. What FI sends back to IV?
C. Is IV or FI responsible to generate a specific line in the subsequent FI document?
In order to know the answers to all of these questions, two important breakpoints should be set inside the function module MRM_INVOICE_POST :
1. The first breakpoint needs to be set in the call of function module CKMV_AC_DOCUMENT_CREATE .
2. The second breakpoint needs to be set right after the call of this same function.
See the screenshot with the breakpoints:
During MIRO execution, these breakpoints will be called when you choose Simulate button.
Basically, as the comment in the code says, when function module MRM_INVOICE_POST calls function module CKMV_AC_DOCUMENT_CREATE , this is the calling to the accounting interface.
ℹ TIP: Always read the comments in the code, it can clarify potential questions!
Some hints when you start your debug session:
Sometimes, I have to analyze why a FI document is posted with the wrong G/L account, or why a G/L account line is presenting wrong values.
For this, I set the mentioned breakpoints and I simulate a new invoice in MIRO.
Once the system stops in the first breakpoint:
From this table I collect the data from the following fields:
- POSNR = Accounting Document Line Item Number
- KTOSL = Transaction Key
- SAKNR = G/L Account Number
contacto@primeinstitute.com
(+51) 1641 9379
(+57) 1489 6964
© 2024 Copyright. Todos los derechos reservados.
Desarrollado por Prime Institute