SAP:ABAP 今天遇到系統錯誤 A RAISE statement in program "SAPLLRFC" has raised exception condition "RESOURCE_FAILURE".


經過查閱資料原來是資源不足的問題:

原來是sap在並行運行時資源不足,執行了一半資源不足時直接中斷了

 

 然后還是查詢資料,看到國外的已經有解決方案了(不多說,我就是搬運了代碼)

11:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
loop at lt_itab.
 
* try to initialize parallel process
do.
 
* check if there is enough process in the system ( sm50)
* refer to https://www.sapalles.com/2014/06/10/abap-parallel-processing-2-strategy/
call function Z_CHECK_RESOURCES
* if there is enough DIA process
if lv_free_wp GT 0.
 
call funtion 'Z_PARALLEL_PROCESS'
starting new task
exceptions
resource _failure    = 1
others              = 2.
 
* no resource problem ,then exit do and iterate in itab
if sy-subrc eq 0. <code></code>
exit.
endif.
endif.
 
waint until lv_value eq 'X'.
enddo.
 
endloop.

22:這是檢查資源的功能。 Z_CHECK_RESOURCES

 

https://www.sapalles.com/2014/02/03/abap-parallel-processing-1/

https://www.sapalles.com/2014/06/10/abap-parallel-processing-2-strategy/

記錄一下,國內網站沒有找到的解決方案

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM