Invoic02 IDOC : need to fill custom field with output message name
Nov 27, 2016 at 11:46 PM|145 Views | Last edit Jan 26, 2017 at 11:21 PM 2 rev.
Hello,
I'm working on e-invoicing interface. We need to generate IDOC from biling document and this IDOC will be processed in PI to generate xml file.
Actually we want to create a custom field in the IDOC (ZINVOIC02) and populate it with the name of the output that was responsible for the IDOC creation.
What is please the best way to do that? Is there any function module for that?
I was thinking about reading the output message in NAST table but the problem is that the NAST table gets updated only when the invoice is saved (that means the IDOC is generated just before the NAST table is updated --> Custom field will be empty in this case).
Add comment