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
- Open the "Run Statutory Reports" app.
- Enter selection parameters like:
- Report name: PT_SAFT_ACCOUNTING (Portugal SAF-T - Accounting)
- Reporting Entity Name
- Reporting Year
- 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
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
SAP Knowledge Base Article - Public