Symptom
When creating an incoming supplier invoice for Denmark, the FIK payment reference is entered in the Payment Reference field. However, the required FIK components may need to be separately mapped in the payment file, for example, when generating structured remittance information using the Map Format Data app.
"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."
Environment
SAP S/4HANA Cloud Public Edition
Cause
The Payment Reference field stores the full FIK string as a single concatenated value. The payment format requires individual FIK components (form code, OCR number, GIRO number) as separate XML elements.
By default, only the OCR number is mapped in the standard Format mapping DK_CGI_XML_CT. Additional components must be mapped manually via a custom Format Mapping.
FIK Form Code Reference
| FIK Code | Type | OCR/Reference Format | Notes |
|---|---|---|---|
| 71 | Variable reference | 15-digit + Modulo 10 check digit | Most common structured reference |
| 73 | Free text | No check digit required | System may raise a validation error |
| 04 | Fixed reference | 15-digit, no OCR | GIRO number only |
| 01 | Free text GIRO | No check digit required | Same behavior as 73 |
Resolution
- Enter the FIK payment reference on the Invoice:
Create the incoming supplier invoice and enter the FIK number in the Payment Reference field.
Enter the payment reference in the following format:
+nn<zzzzzzzzzzzzzzz+yyyyyyyy<
Where:- nn = FIK form code
- zzzzzzzzzzzzzzz = 15- or 16-digit OCR/payment reference, with the last digit satisfying the Modulo 10 check
- yyyyyyyy = Creditor (GIRO) number
- Understand FIK Component storage
The system stores the FIK reference components in the payment reference fields as follows:
Component Field Offset Length FIK form code (nn) fpayhx_fref-ref15 +0 2 OCR/payment reference fpayhx_fref-ref15 +5 30 GIRO (creditor) number fpayhx_fref-ref15 +40 30
- fpayhx_fref-ref15+0(2) = FIK number
- fpayhx_fref-ref15+5(30) = OCR number
- fpayhx_fref-ref15+40(30) = GIRO account number
- Map the FIK components in the Map Format Data
In the standard format mapping DK_CGI_XML_CT, the OCR number is mapped to:
RmtInf → Strd → CdtrRefInf → Ref
For example: <Ref>71/123450000012345</Ref>
If additional FIK components are required in the payment file, the corresponding reference fields can be mapped in a similar way.
The same condition used for the OCR reference can be applied to the additional mapping, where appropriate. - Example: Create a Custom Format Mapping(Example: Include FIK Number)
If the required output is <Ref>71/123450000012345</Ref>- Create a custom Format Mapping based on DK_CGI_XML_CT using the Map Format Data app.
- In RmtInf → Strd → CdtrRefInf → Reft the OCR number node can be duplicated in the Format Mapping. For the duplicated node:
- If required, change the node name to FIK Number.
Set Length = 2 for the FIK number. - For the separator /:
Length = 1
Mapping Procedure = Constant
Constant = / - The existing OCR number node can then be used for the OCR reference.
- Save the Custom Format Mapping after completing the required mapping.
- Create and execute the payment using the Manage Automatic Payments app.
- Generate the payment file and verify that the FIK number, separator, and OCR number are populated in the expected format.
Note: Validation Error for FIK Types 73 and 01
- For FIK form codes 73 and 01 (free-text references), the system may raise a validation error during payment processing. These codes do not carry a structured OCR reference and are not subject to Modulo 10 validation.
- If you encounter an error while creating the invoice for Form Code 73 or 01, you can adjust the message control using the configuration activity:
- Change Message Control – Payments (SSCUI 106990)
- This allows you to either switch the message off or downgrade it from an error to a warning.
- For further details, refer to KBA 3747973 – Error Payment Reference is Incorrect for Denmark.
See Also
- Solved: How to set up FIK Payment for Denmark - SAP Community
- Denmark - Process Payment Files
- KBA 3747973 – Error Payment Reference is Incorrect for Denmark.
Keywords
FIK, multiple FIK types, supplier, payment reference, FPAYHX-REF15(2), map format data, OCR reference, modulo 10, GIRO number, payment run, accounts payable, reference mapping, form code, payment file, AP payments , KBA , FI-AP-AP-B1 , Payment transfer (w/o DE, US) , Problem
Product
Attachments
| Pasted image.png |
SAP Knowledge Base Article - Public