Ansicht
Dokumentation

EDOC_MX_FILL_CUSTOMD - BAdI: Custom Data Filling

EDOC_MX_FILL_CUSTOMD - BAdI: Custom Data Filling

General Data in Customer Master   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the General Application Functions(CA-GTF) component.

You can use this BAdI to create your own logic for filling some fields in the eDocuments generated for electronic invoices and electronic payment receipt complements. You can use this BAdI to fill the following fields:

  • Usage of CFDI
  • Addenda (field for additional data)
  • CFDI-Related Document Data (Document type and UUID)

This BAdI is called during the mapping of the XML file, which is triggered when you submit an eDocument from the Mexico eInvoice or Mexico ePayment processes of the eDocument Cockpit (EDOC_COCKPIT).

This BAdI uses the method Fill Custom Data (FILL_CUSTOM_DATA). You can find some information about the method parameters below:

  • Importing parameters
The parameter IS_MAPPING_SOURCE contains the data of the source document.
  • Changing parameters
  • The parameter CS_CUSTOM_DATA has the EDOC_MX_CUSTOM_DATA structure as the associated type, which contains the fields USE_OF_CFDI (Usage of CFDI) and ADDENDA (Addenda). There is a standard logic to fill the Usage of CFDI field, which you can modify as required. There is no standard logic to fill the Addenda (additional information) field, you can set up your own logic if required.

  • The parameter CT_RELATED_DOC_DATA has the EDOC_MX_T_RELATED_DOC_DATA structure as the associated type, which refers to the fields RELATED_DOC_TYPE (SAT Related Document Type Code) and RELATED_DOC_UUID (SAT Related Document UUID). There is a standard logic to fill these fields, which you can modify as required.






Fill RESBD Structure from EBP Component Structure   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Length: 3109 Date: 20240523 Time: 181754     sap01-206 ( 75 ms )