on 11-27-2016 11:46 PM
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).
Thank you in advance.
Hi,
Find an enhancement point in FM IDOC_OUTPUT_INVOIC. Read output type from OBJECT-KSCHL.
OR
Use exit EXIT_SAPLVEDF_002 and read output type from DOBJECT-KSCHL
Thanks,
Ram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.