cancel
Showing results for 
Search instead for 
Did you mean: 

EDOC_COCKPIT error when calling J_1BNFE_INVOICE_CREATE FM in update task

lucilacon
Explorer
111

Dear all, 
We are currently analysing a scenario of Brazil localization, for the incoming invoice creation.
The EDOC_COCKPIT transactions is being used, and it calls the function module J_1BNFE_IN_CREATE_400 in starting a new task to create the invoice.

lucilacon_0-1742597586987.png

At the new task the function called calls the FM J_1BNFE_INVOICE_CREATE, and in its logic flow it retrieves the transaction for this process.

lucilacon_1-1742597692989.png

it keeps the constant value in rbkpv structure.

When calculating taxes, the logic flow doesn`t use the whole structure data, just some fields, and the information of the transaction is lost.

lucilacon_2-1742597830300.png

In the FM calculate_tax_document, there is a logic that verifies from which transaction the call is coming to calculate pricing values. 

lucilacon_3-1742597949862.png

lucilacon_4-1742597969795.png

For invoices that should read the split batch scenario and calculate some brazilian taxes the FBxx transactions dont`t work properly and display an error message, MIRO t-code should be executed. Manually I can take this decision, but since EDOC_COCKPIT is being used I don't  know what to apply as solution in this cases.
I have searched for some posts here in community and it seems that this problem happens since 2015, at least. 

Does someone knows some config, customizing or sap note for this issue?

 SAP Electronic Invoicing for Brazil (SAP Nota Fiscal Eletronica) MM Invoice Verification 

@Renan_Correa

Accepted Solutions (0)

Answers (0)