Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_J_1B_NF_CREATEFROMDATA

Former Member
0 Likes
3,407

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.

1 REPLY 1
Read only

former_member182503
Active Contributor
0 Likes
2,322

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