Runtime Errors TIME_OUT
Date and Time 2011.10.31 10:22:30
Time limit exceeded.
发生了什么?
The program "SAPLV05C" has exceeded the maximum permitted runtime without
interruption and has therefore been terminated.
你能做什么?
Note down which actions and inputs caused the error.
To process the problem further, contact you SAP system
administrator.
Using Transaction ST22 for ABAP Dump Analysis, you can look
at and manage termination messages, and you can also
keep them for a long time.
错误分析
After a specific time, the program is terminated to make the work area
available to other users who may be waiting.
This is to prevent a work area being blocked unnecessarily long by, for
example:
- Endless loops (DO, WHILE, ...),
- Database accesses with a large result set
- Database accesses without a suitable index (full table scan)
The maximum runtime of a program is limited by the system profile
parameter "rdisp/max_wprun_time". The current setting is 600 seconds. If this
time limit is
exceeded, the system attempts to cancel any running SQL statement or
signals the ABAP processor to stop the running program. Then the system
waits another 60 seconds maximum. If the program is then still active,
the work process is restarted.
Line SourceCde
485 vbfa_tab-vbelv = x_vorgaenger-vgbel.
486 vbfa_tab-vbeln = x_vorgaenger-vbeln.
487 vbfa_tab-posnv = x_vorgaenger-vgpos.
488 vbfa_tab-posnn = x_vorgaenger-posnr.
489 vbfa_tab-vbtyp_v = x_vorgaenger-vgtyp.
490 vbfa_tab-vbtyp_n = x_vorgaenger-typ.
491 vbfa_tab-erdat = x_vorgaenger-erdat.
492 vbfa_tab-erzet = x_vorgaenger-erzet.
493 vbfa_tab-rfmng = x_vorgaenger-menge.
494 vbfa_tab-meins = x_vorgaenger-meins.
495 vbfa_tab-rfwrt = x_vorgaenger-netwr.
496 vbfa_tab-vrkme = x_vorgaenger-vrkme.
497 vbfa_tab-waers = x_vorgaenger-waerk.
498 vbfa_tab-matnr+17 = 'X'.
499 vbfa_tab-stufe = xebene.
500 vbfa_tab-logsys = space. "AIP RC
501 vbfa = vbfa_tab.
502 vbfa-mandt = sy-mandt.
503 PERFORM vorgaenger_aufnehmen.
504 tab = x_vorgaenger.
505 ENDFORM. "vorgaenger_to_vbfa
506
507 *---------------------------------------------------------------------*
508 * FORM STUFEN_BERECHNEN *
509 *---------------------------------------------------------------------*
510 * Ermitteln Stufen fuer das Einruecken auf der Ausgabe *
511 *---------------------------------------------------------------------*
512 FORM stufen_berechnen USING i_vbtyp.
513 DATA: stufe(2) TYPE n.
514 LOOP AT vbfa_tab.
>>>>> IF vbfa_tab-matnr+17(1) = 'X'.
516 vbfa_tab-stufe = vbfa_tab-stufe - 1.
517 MODIFY vbfa_tab INDEX sy-tabix.
518 ENDIF.
519 ENDLOOP.
520 ENDFORM. "stufen_berechnen
521
522 *---------------------------------------------------------------------*
523 * FORM VORGAENGER_AUFNEHMEN *
解决方案:1.修改程序逻辑,简化查询条件和减少显示字段,使程序减少取数,减少逻辑判断。
2.在没有优化之前,建议用户减少取数范围,分批次取数。
3.再进行业务需求分析,理顺业务,建议采用系统标准程序。