‎2016 Sep 22 7:31 AM
Hi
I'm not very familiar with Nota Fiscal. I have a requirement to automate the creation of the Nota Fiscal documents. Is it possible through BAPI_J_1B_NF_CREATEFROMDATA without going through the NF Writer (J1B1N)?
Thank you in advance.
‎2016 Sep 29 1:03 PM
Hello Akimoto,
Nota Fiscal document should be created in two different situations:
1 - Outbound NF-e: Your company sold goods to a customer. It can be generated automatically after the Billing Document or created manually with J1B1N;
2 - Inbound NF-e: Your company bought goods from a supplier. It can be generated automatically if you use SAP NF-e Inbound automation, created automatically via MIRO t-code or manually via J1B1N;
Depending on your need, what you can do to automate the NF-e creation is automate the Billing document posting or Invoice Verification.
Of course, If your requirement is to automate J1B1N only, the BAPI BAPI_J_1B_NF_CREATEFROMDATA can be used. Check out the function module documentation on SE37
You can start filling up the parameters OBJ_HEADER, OBJ_HEADER_ADD, OBJ_PARTNER, OBJ_ITEM and OBJ_ITEM_TAX
Let me know if you have additional questions.
Best regards,
JN