SAP Knowledge Base Article - Public

3661846 - DUMP "TIME_OUT" error running SAF-T file generation for PT_SAFT_ACCOUNTING report

Symptom

DUMP error during SAF-T file generation for PT_SAFT_ACCOUNTING report:

Category               ABAP programming error
Runtime Errors         TIME_OUT
ABAP: Program          CL_SRF_QUERY_STMNT_SQL========CP
Application Component  FI-LOC-SRF-RUN

Program "CL_SRF_QUERY_STMNT_SQL========CP" has exceeded the maximum uninterrupted runtime and has therefore been terminated.

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Open the "Run Statutory Reports" app.
  2. Enter selection parameters like:
    • Report name: PT_SAFT_ACCOUNTING (Portugal SAF-T - Accounting)
    • Reporting Entity Name
    • Reporting Year
  3. Observe that the report generation fails with the error "Generation Failed".

Cause

The default run option "Start a Short Run Now (Less Than 3 Minutes)" exceeded the maximum runtime due to the large volume of data selected.

Resolution

Execute a new run using the "Start a Long Run Now" option to allow for longer execution time.

See Also

SAP Help Portal: SAP S/4HANA Cloud Public Edition>Statutory Reporting>Run Statutory Reports

Keywords

SAF-T Accounting, generation failed, Portugal SAF-T, PT_SAFT_ACCOUNTING, runtime error,  TIME_OUT, CL_SRF_QUERY_STMNT_SQL, FI-LOC-SRF-RUN, statutory reports, long run option, report generation failure. , KBA , FI-LOC-SAF-PT , Portugal , Problem

Product

SAP S/4HANA Cloud Public Edition all versions