Ansicht
Dokumentation

EDOC_IT_INVOICE_REFE - BAdI: Invoice Reference Information Filling in XML File

EDOC_IT_INVOICE_REFE - BAdI: Invoice Reference Information Filling in XML File

Vendor Master (General Section)   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Note: The functionality of this BAdI has been included in the Italy: XML File Filling (EDOC_IT_XML_FILE) BAdI. Future functionality will only be maintained in the Italy: XML File Filling BAdI.

This Business Add-In (BAdI) is used in the eDocument Italy (CA-GTF-CSC-EDO-IT) component. The system calls this BAdI when it generates the XML document using the Italy eInvoice process in the eDocument Cockpit.

You use this BAdI to include references in the XML file to other documents like Sales Order, Purchase Order, etc.

The BAdI uses the following parameters:

Importing Parameters (read-only)

  • Billing documents:

The BILLING_DOCUMENT_NUMBER parameter contains the billing document number of the source document. If the source document of the eDocument is not a billing document, the BAdI does not fill this parameter.

  • Accounting documents

The accounting document could be a source document (for source type FI_INVOICE) or a document related to the billing document (for source type SD_INVOICE). The system uses the following parameters to identify an accounting document:

  • COMPANY_CODE: Contains the company code of the accounting document.

  • ACCOUNTING_DOCUMENT_NUMBER: Contains the accounting document number.

  • FISCAL_YEAR: Contains the fiscal year of the accounting document

Parameters valid for both billing and accounting documents:

The ITEM_NUMBER table parameter relates the number of the source document item to the NumeroLinea XML tag.

The HEADER_ITEM_TEXTS table parameter contains all header and item texts of possible text IDs in the source document.

The entries can be identified by the following pattern:

  • SD header texts: tdobject = VBBK (Billing Document or related Sales Order)

  • SD item texts: tdobject = VBBP (Billing Document or related Sales Order)

  • FI header texts: tdobject = BELEG

  • FI item texts: tdobject = DOC_ITEM

If the parameter includes texts in different languages, use the tdspras field of the HEADER_ITEM_TEXTS table to select the language you want to use.

The CEDENTE_RIFER_AMMINIST parameter contains the Supplier's Administrative ID (FatturaElettronicaHeader > CedentePrestatore > RiferimentoAmministrazione XML tag).

The DATI_GENERALI_CHILD table parameter contains information from four different XML tags:

  • DatiOrdineAcquisto

  • DatiContratt

  • DatiRicezione

  • DatiFattureCollegate

  • Each of these tags is a child of the DatiGenerali XML tag. In the table parameter, each individual tag can be identified by the tag_name field.

The ORD_ACQ_RIFER_NLINEA table parameter is related to the previous DATI_GENERALI_CHILD table parameter. Since nested tables are currently not supported in the Cloud BAdI context and RiferimentoNumeroLinea XML tag can have multiple occurrences, this tag must be handled in a separate table parameter.

Changing parameters

The CEDENTE_RIFER_AMMINIST_CHANGED parameter is used to modify the existing Supplier's Administrative ID (FatturaElettronicaHeader > CedentePrestatore > RiferimentoAmministrazione XML tag).

The entries of the DATI_GENERALI_CHILD_NEW and ORD_ACQ_RIFER_NLINEA_NEW table parameters reflect the content to be included in four different XML tags:

  • DatiOrdineAcquisto

  • DatiContratto

  • DatiRicezione

  • DatiFattureCollegate

  • If there are already entries in this XML tags filled by the standard XML mapping, please also add them to this table or else they will not be included.






Fill RESBD Structure from EBP Component Structure   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 5451 Date: 20240523 Time: 154013     sap01-206 ( 65 ms )