Symptom
Poland SAF-T - Accounting Ledgers PD (PL_SAFT_KR_PD) report is generated with errors.
Error message: "Element tns:KontoZapis occurs 0 times. Number of occurrences must be >= 1."
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Open the Statutory Reports app.
- Open the Report Name: Poland SAF-T - Accounting Ledgers PD (PL_SAFT_KR_PD).
- Open the relevant reporting period and the report run.
- Observe that the run finishes with the error: "Element tns:KontoZapis occurs 0 times. Number of occurrences must be >= 1."
Cause
Affected documents do not exist in the BSEG table.
In Define Generic Settings for SAF-T activity, the GL View parameter is set to Entry View (BSEG).
Resolution
- Access the Define Generic Settings for SAF-T activity ID:102434 (maintenance view SNV_PL_BC).
- Change the GL View parameter from "Entry View" to "G/L View".
- Save the changes.
- Run the Poland SAF-T - Accounting Ledgers PD (PL_SAFT_KR_PD) report again and validate the XML.
See Also
Keywords
jpk_kr_pd, pl_saft_kr_pd, saf-t, accounting ledgers pd, poland, kontozapis, tns:kontozapis occurs 0 times, number of occurrences must be >= 1, bseg, gl view, entry view, snv_pl_bc , KBA , FI-LOC-SAF-PL , Poland , Problem
Product
SAP S/4HANA Cloud Public Edition all versions
SAP Knowledge Base Article - Public