Ansicht
Dokumentation

EDOC_IT_HEADER_ITEM_ - BAdI: Additional Texts for Header and Items

EDOC_IT_HEADER_ITEM_ - BAdI: Additional Texts for Header and Items

PERFORM Short Reference   rdisp/max_wprun_time - Maximum work process run time  
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 adjust some of the contents of the XML file:

  • You can change the Descrizionetag in the DettaglioLineetag.
  • You use this BAdI to add header and item texts entered in the source document to the Causaletag or the AltriDatiGestionaletag.

This 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 can 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:

  1. COMPANY_CODE: Contains the company code of the accounting document.
  2. ACCOUNTING_DOCUMENT_NUMBER: Contains the accounting document number.
  3. 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 item of the source document to the NumeroLinea XML tag.

The HEADER_ITEM_TEXTS table parameter contains all header and item texts of all possible text IDs existing 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 identify the language you want to use.

The DATI_GENERALI_CAUSALE table parameter includes all header texts of the CausaleXML tag.

The ALTRI_DATI_GESTIONALI table parameter contains other management data (AltriDatiGestionali XML tag) for each DettaglioLinee XML tag. Each entry can be identified by the numero_lineafield.

The DET_LINEE_DESCRIZIONE table parameter contains all description items (DESCRIZIONE) of each DettaglioLineeXML tag. Each description entry can be identified by the numero_lineafield.

The RIFER_AMMINISTRAZIONE table parameter contains the identity codes for administrative-accounting purposes (RiferimentoAmministrazione XML tag) of each DettaglioLinee XML tag. Each entry can be identified by the numero_linea field.

Changing parameter

The entries of the DATI_GENERALI_CAUSALE_NEW table parameter reflect the content to be included in the Causale XML tag. If there are already entries in this XML tag filled by the standard XML mapping, please also add them to this table or else they will not be included.

The entries of the ALTRI_DATI_GESTIONALI_NEW table parameter reflect the content to be included in the AltriDatiGestionali XML tag of the related DetaglioLlinee XML tag node. The items are identified by the numero_lineafield. If there are already entries in this XML tag filled by the standard XML mapping, please also add them to this table or else they will not be included.

All entries of the DET_LINEE_DESCRIZIONE_CHANGED table are used to modify the existing item descriptions (DESCRIZIONE) of the DettaglioLinee XML tag. Each description item (DESCRIZIONE) is identified by the numero_lineafield. Those tags can only be modified and not be appended to the existing description.

All entries of the RIFER_AMMINISTRAZIONE_CHANGED table parameter are used to modify the existing identity codes for administrative-accounting purposes (RiferimentoAmministrazione XML tag) of the DettaglioLinee XML tag. Each entry is identified by the numero_linea field. This tag can only be modified and not be appended to the existing identity codes.






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

Length: 6071 Date: 20240523 Time: 155019     sap01-206 ( 90 ms )