Symptom
Missing 'DatiPagamento' section in XML file from Italy Supplier eInvoice in eDocument Cockpit app.
Environment
SAP S/4HANA Cloud Public Edition.
Reproducing the Issue
- Access eDocument Cockpit app
- Select related document
- Click on 'Go To' button > Display XML
- Section is not available.
Cause
The section 'DatiPagamento' is optional and not supported by standard solution.
Resolution
To populate these fields, use Custom Logic app to implement an enhancement with BadI Italy: XML File Filling and selecting the field “Payment Methods” of the customer master data. Publish the implementation and open the Code Editor. On the Editor Screen, the parameter section is on the right side. Change it to “Parameters”- dropbox from ‘Importing’ to ‘Changing’. The Target structure which contains the values for the XML file.
- Select on table: KNB1; field: ZWELS
- CDS view : ICUSTCMPY field: PAYMENTMETHODSLIST
- View : VF_DEBI field: ZWELS
Here is an example on how to address the fields in Custom Logic app.
Data Format in the Coding:
- CondizioniPagamento
ms_target_121-fattura_elettronica_body[ 1 ]-dati_pagamento[ 1 ]-condizioni_pagamento = 'XXXX'. - ModalitaPagamento
ms_target_121-fattura_elettronica_body[ 1 ]-dati_pagamento[ 1 ]-dettaglio_pagamento[ 1 ]-modalita_pagamento = 'xxxx'. - ImportoPagamento.
ms_target_121-fattura_elettronica_body[ 1 ]-dati_pagamento[ 1 ]-dettaglio_pagamento[ 1 ]-importo_pagamento = 'xyz1'
The values will be found later in XML-Format as mentioned below:
Section DatiPagamento -> Field CondizioniPagamento
Section DettaglioPagamento -> Fields ModalitaPagamento and ImportoPagamento.
See Also
Keywords
DatiPagamento, missing, XML, Italy, edocuments, BadI Italy: XML File Filling, payment methods, edocument cockpit, customizing , KBA , CA-GTF-CSC-EDO-IT , Italy , Problem