Ansicht
Dokumentation

EDOC_PT_INV_XML_FILE - BAdI: eInvoice

EDOC_PT_INV_XML_FILE - BAdI: eInvoice

rdisp/max_wprun_time - Maximum work process run time   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

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

You use this BAdI to modify the content of the invoice XML file in any way you need: it allows you to add, change or remove information from the whole file.

This BAdI uses the following parameters:

Importing Paramenters (read-only)

The SOURCE_KEYS parameter is a structure containing useful information about the source document. The source document could be an accounting document (source type FI_INVOICE) or a document related to the billing document (source type SD_INVOICE). The structure has specific fields for each of these cases.

The system uses the following fields to identify an accounting document:

  1. COMPANY_CODE: Contains the company of the accounting document.
  2. ACCOUNTING_DOCUMENT_NUMBER: Contains the accounting document number.
  3. FISCAL_YEAR: Contains the fiscal year of the accounting document.

The following field is used in case the source document is a billing document:

  1. BILLING_DOCUMENT_NUMBER: Contains the billing document number.

The EINVOICE parameter is a structure containing the full invoice XML file as it was built by the standard mapping.

Changing parameter

The EINVOICE_MODIFIED parameter is a structure containing the full invoice XML file as it is after being enhanced by your BAdI implementation. Its content reflects the final version of the XML file for the eDocument.






Addresses (Business Address Services)   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 1920 Date: 20240523 Time: 154758     sap01-206 ( 36 ms )