SAP Knowledge Base Article - Public

3747030 - Romania SAF-T (ro_saft_tax_resident) report generation failed for a specific period in run statutory report. SAP S/4HANA Cloud Public Edition.

Symptom

When generating the Romania SAF‑T (RO_SAFT_TAX_RESIDENT) report for a specific reporting period, the status shows “Generation failed”.

Environment

 SAP S/4HANA Cloud Public Edition.

Reproducing the Issue

  1. Open the Run Statutory Reports app.
  2. Select Country/Region: RO, Reporting year: YYYY, Report name: Romania SAF‑T (RO_SAFT_TAX_RESIDENT).
  3. Open the affected reporting period.
  4. Open the run for that period.
  5. Observe that the report status is “Generation failed”.

Cause

Exchange rate calculation for documents posted in foreign currency leads to a numeric overflow during data retrieval. By default, the exchange rate is computed as (amount in company code currency) divided by (amount in transaction currency). When one amount is very small (for example 0.01) and the other is large (for example > 1000), the computed rate can exceed allowed precision (maximum exchange rate value 99999), causing the overflow.

Resolution

  1. Review the "Define Document Types for Reporting" configuration activity ID 500361 for Romania SAF‑T.
  2. For the document type(s) linked to the failed run, set the flag to pick the exchange rate from the document header (PickExchHd / Pick Rate from the Header Table) so the system reads the header rate instead of calculating it.
  3. Save the configuration and run the Romania SAF‑T (RO_SAFT_TAX_RESIDENT) report again for the affected period.

See Also

Refer to: KBA 3619623 - SAF-T Romania report RO_SAFT_TAX_RESIDENT status "in process" in SAP S/4HANA

Keywords

RO_SAFT_TAX_RESIDENT, generation failed, numeric overflow, SQL code 314, DBSQL_SQL_ERROR, CX_SY_OPEN_SQL_DB, C_RO_SAFTJOURNALENTRYITEMC, Romania SAF-T, exchange rate calculation, foreign currency, document types for reporting, pick rate from header, PickExchHd, ABAP short dump. , KBA , FI-LOC-SAF-RO , Romania , Problem

Product

SAP S/4HANA Cloud Public Edition all versions