2588229 - SNUM/SNRO: TIME_OUT in SAPMSNUM program | SAP Knowledge Base Article

SAP Knowledge Base Article - Preview

2588229 - SNUM/SNRO: TIME_OUT in SAPMSNUM program

Symptom

Trying to execute SNUM or SNRO transactions TIME_OUT dump happen:

Category ABAP programming error
Runtime Errors TIME_OUT
Except. SAPMSNUM
Application Component BC-SRV-NUM
Short Text    
Time limit exceeded
What happened?

Program "SAPMSNUM" has exceeded the maximum uninterrrupted runtime

and has therefore been terminated.

Error analysis

After a certain time, the program is terminated in order to free the
workspace for other users. This prevents workspaces from being blocked
unnecessarily, for example by an endless loop (DO, WHILE, ...), by
database accesses where the result set is too large or by database
accessess without a suitable index Index (full table scan).

The maximum runtime of a program is set by system profile parameter
"rdisp/scheduler/prio_[high|normal|low]/max_runtime". The current setting is
600 seconds. Once this limit has been
exceeded, the system attempts to interrupt the SQL statement or to
instruct the ABAP processor to terminate the program. It waits for a
maximum of 60 seconds. If the program is then still active, the work
process is restarted.

Trigger Location of Runtime Error

Program                  SAPMSNUM
Include                  MSNUMO10
Row                      22
Module Type              (MODULE PBO)
Module Name              D100_GET_INFO

SourceCde

* Include MSNUMO10 *
* Nummernkreispflege *
* Einstiegsbild *
************************************************************


MODULE d100_get_info OUTPUT.

DATA: lt_nrivshadow TYPE TABLE OF nrivshadow,
ls_nrivshadow TYPE nrivshadow.

IF g_first_time = yes.
* delete used buffers from table nrivshadow -------------
SELECT * FROM nrivshadow INTO TABLE lt_nrivshadow
WHERE nrlevel <> 0.
LOOP AT lt_nrivshadow INTO ls_nrivshadow.
IF ls_nrivshadow-nrlevel <> ls_nrivshadow-tonumber.
DELETE lt_nrivshadow.
ENDIF.
ENDLOOP.
IF lines( lt_nrivshadow ) > 0.
DELETE nrivshadow FROM TABLE lt_nrivshadow. "Error happen in this line."
ENDIF.
* screen ------------------------------------------------
tnro-object = space.
CALL 'GET_PARAM_TCOD' ID 'PTCOD' FIELD gv_ptcod. "#EC CI_CCALL
SELECT SINGLE * FROM tstcp
INTO gs_tstcp
WHERE tcode = gv_ptcod.
IF sy-subrc = 0.
CONDENSE gs_tstcp-param NO-GAPS.
IF gs_tstcp-param CS '=' AND gs_tstcp-param CS 'SNUM'.
tnro-object = gs_tstcp-param+18(10).
TRANSLATE tnro-object USING '; '.
ENDIF.
ENDIF.

IF tnro-object = space.
GET PARAMETER ID 'NRO' FIELD tnro-object.
SET PARAMETER ID 'NRO' FIELD ' '.
IF tnro-object = space.


Read more...

Environment

SAP NetWeaver 700 and higher

Product

SAP NetWeaver 7.0 ; SAP NetWeaver 7.1 ; SAP NetWeaver 7.2 ; SAP NetWeaver 7.3 ; SAP NetWeaver 7.4 ; SAP NetWeaver 7.5 ; SAP enhancement package 1 for SAP NetWeaver 7.0 ; SAP enhancement package 1 for SAP NetWeaver 7.3 ; SAP enhancement package 2 for SAP NetWeaver 7.0 ; SAP enhancement package 3 for SAP NetWeaver 7.0

Keywords

NRIV, NRIVSHADOW, number of entries, se16, buffer , KBA , BC-SRV-NUM , Number Range Management , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.