Symptom
When creating a supplier invoice in Create Supplier Invoices app(App ID- MIRO) following error message is displayed:
Incorrect value of CUP, CIG codes, and MGO ID for supplier &1 (&2).
Message no.: IDFI_CUPCIG001.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Open the application Create Supplier Invoice.
- Enter the relevant Company Code.
- Select the Purchase Order.
- Enter the Amount.
- Click Check to verify that no errors are displayed.
- Click Simulate.
- Observe that the following error message appears:
Incorrect value of CUP, CIG codes, and MGO ID for supplier &1 (&2).
Message no.: IDFI_CUPCIG001.
Cause
- The validation checks between CUP, CIG, and MGO ID fail because the CUP text field is filled in the document, triggering the validation process.
- The CUP/CIG combination of the invoice and purchase order does not match the CUP/CIG combinations in supplier master data.
- The posting is handled by MIRO transaction, which takes these codes from the purchase order, where the check is executed and fails.
- New system design due to the Italian Law n. 136/2010.
Resolution
- For invoices with purchase orders, insert CUP, CIG, and MGO information at the purchase order item level. Refer to the "Italy" folder at the item level in the "Create Purchase Order – Advanced" app (App ID ME21N).
- When posting an invoice against a purchase order, ensure the system reads the CUP/CIG combination present in the order and transfers them to the vendor invoice fields, enabling tracking of this information in subsequent payments.
- For invoices without a purchase order, directly attribute CUP, CIG, and MGO during the invoice posting phase. Refer to "Basic Data" in the "Create Incoming Invoice" app (App ID FB60).
Note: There is no provision to view CUP/CIG data directly within the Invoice Capture apps. However, users can access order details, including CUP/CIG values, through the Create Supplier Invoice – Advanced app by selecting the order number available in the PO Reference Items section.
Keywords
CUP, CIG, MGO ID, supplier invoice, purchase order, validation checks, MIRO transaction, IDFI_CUPCIG001, Italian Law n. 136/2010, App ID ME21N, App ID FB60, error message, invoice posting. , KBA , FI-AP-AP-B1 , Payment transfer (w/o DE, US) , FI-LOC-LRQ-IT , Italy , Problem
SAP Knowledge Base Article - Public