Menu

SAP Function Module J_1BNFE_INVOICE_CREATE

Create invoice by XML-data

The Function Module J_1BNFE_INVOICE_CREATE (Create invoice by XML-data) is a standard Function Module in SAP ERP and is part of the function group J_1B_NFE_IN within the package J1BA.

Technical Information

Function Module J_1BNFE_INVOICE_CREATE
Short Text Create invoice by XML-data
Function Group J_1B_NFE_IN
Package J1BA
Module Type Remote-Enabled

Importing Parameters

These are the IMPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
I_ACCESS_KEY TYPE J_1B_NFE_ACCESS_KEY NFe Access Key
I_AMNT TYPE J_1BNFTOT Amount in Local Currency
I_AUTHCODE TYPE J_1BNFEAUTHCODE NF-e: Protocol Number
I_AUTHDATE TYPE J_1BAUTHDATE NF-e Processing Timestamp - Date
I_AUTHTIME TYPE J_1BAUTHTIME NF-e Processing Timestamp - Time
I_BLDAT TYPE BLDAT Document Date in Document
I_BUDAT TYPE BUDAT SY-DATUM Posting Date in the Document
I_FUTURE_DELIVERY TYPE XFELD ' ' Future Delivery
I_SIMULATE TYPE J_1BNFE_SIMULATE Character Field Length 1
I_SIMULATION_LEVEL TYPE J_1BNFE_SIMULATION_LEVEL Character Field Length 1
I_XBLNR TYPE XBLNR1 Reference Document Number
I_XMLGOVVERS TYPE J_1BNFEGOVVERSION NFe: Authority XML Version

Exporting Parameters

These are the EXPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
ET_XML_ITEM TYPE J1B_NF_XML_ITEM_TAB Table type for RFC call J1B_NF_XML_ITEM
E_BELNR LIKE RBKP-BELNR Document Number of an Invoice Document
E_GJAHR LIKE RBKP-GJAHR Fiscal Year
E_RBSTAT LIKE RBKP-RBSTAT Invoice document status
E_XML_HEADER TYPE J1B_NF_XML_HEADER Nota Fiscal Eletronica / NF-e Data - HEADER (1:1)

Changing Parameters

This function module does not define any CHANGING parameters.

Table Parameters

These are the TABLE parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
ET_BAPIRET2 TYPE BAPIRETTAB Table with BAPI Return Information
ET_NFE_IN_ITEM TYPE J_1BNFE_IN_ITEM_TAB NF-e incoming: XML items with purchase order details
ET_NFE_IN_TAX TYPE J_1BNFE_IN_TAX_TAB NF-e incoming: Tax Data
IT_NFE_IN_ITEM TYPE J_1BNFE_INVOICE_TAB Nfe incoming XML line items
IT_NFE_IN_TAX TYPE J_1BNFE_IN_TAX_TAB NF-e incoming: Tax Data

Exceptions

This function module does not define any Exceptions.