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