Symptom
The mandatory field forma pago is missing in the eInvoice XML file and XML must contain field FormaPago with appropriate external values.
Environment
SAP S/4HANA Cloud Public Edition.
Cause
This is not a mandatory tag for eInvoice scenarios according to documentation provided by SAT.
Resolution
This is not an issue/error in the standard eDocument Solution. To populate the <FormaPago> tag for eInvoice scenario, adjust your current scenario by fulfilling the field "Payment Method" and the value mapping "CFDI_PAYMNT_MEANS", or by implementing your own logic in the app "CUSTOM LOGIC" and add the BAdI "Mexico: Filling of Payment Method for Payments".
Note: the BAdI Mexico: Filling of Payment Method for Payments is only available for Accounting Documents(FI), in case the <FormaPago> tag must be populated in Billing Documents, then the BADI Mexico: Custom Data Filling V4.0 will require to be used for the custom logic implementation.
Please, revise and follow directions in SAP Help Portal APP Extensibility: eDocument Cockpit:
Mexico: Filling of Payment Method for Payments and Mexico: Custom Data Filling V4.0 permits to create own logic for filling the Payment Method field when eDocuments are generated for electronic payment receipt complements.
See Also
Keywords
FormaPago, eInvoice, Payment Method, value mapping, CUSTOM LOGIC, eDocument Cockpit , KBA , CA-GTF-CSC-EDO-MX , Document Compliance Mexico , How To
SAP Knowledge Base Article - Public