Ansicht
Dokumentation

EDOC_MX_FILL_FSCLTXT - BAdI: Filling of Fiscal Texts for eInvoices

EDOC_MX_FILL_FSCLTXT - BAdI: Filling of Fiscal Texts for eInvoices

ROGBILLS - Synchronize billing plans   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the eDocument Mexico (CA-GTF-CSC-EDO-MX) component. You use this BAdI to fill the Fiscal Text (Spanish: Leyendas Fiscales) complement in invoice XML files. You can define your own rules for filling the complement for different customers. The system calls the BAdI when you display or submit an eDocument in the Mexico eInvoice process in the eDocument Cockpit.

You can use the FISCAL_TEXTS value mapping to facilitate your custom logic. In this value mapping, you create fiscal text IDs and assign them to customers. Then in your BAdI implementation, you assign fiscal texts to fiscal text IDs. Thus, the system can determine fiscal texts for customers appropriately.

Note: This BAdI applies to eDocuments for billing documents only.

  • iv_salesdocumentnum: Contains the billing document number.
  • it_fiscal_text_id (table parameter): Contains the fiscal text IDs that you configure in the FISCAL_TEXTS value mapping.
  • cv_fiscal_texts_version: Contains the version number of the complement. You must set it to 1.0 as defined by the tax authorities.
  • ct_fiscal_texts (table parameter): Contains the fiscal text lines filled using this BAdI. You can include more than one fiscal text line in an invoice XML file.
A fiscal text line contains the following fields:
  • textoLeyenda: Contains the fiscal text.

  • norma: Contains the article number or rule that stipulates the fiscal text.

  • disposicionFiscal: Contains the tax provision that stipulates the fiscal text.






ABAP Short Reference   General Material Data  
This documentation is copyright by SAP AG.

Length: 2116 Date: 20240523 Time: 163221     sap01-206 ( 41 ms )