Qrfc队列

首先调用封装的远程函数
call function 'function_name'
exporting
iv_uuid = iv_uuid
iv_qrfc = abap_true.

创建队列,输入队列名。后续在SMQR里可以查看创建的队列
lv_qin_name = 'GEMS-PO-CRT'.
call function 'TRFC_SET_QIN_PROPERTIES'
exporting
qin_name = lv_qin_name
exceptions
invalid_queue_name = 1
others = 2
.
调用执行程序的函数
call function 'fuction_QRFC'
in background task
as separate unit
exporting
iv_uuid = iv_uuid
exceptions
failed = 1
others = 2.
if sy-subrc <> 0.
endif.

commit work.   

函数里的执行程序
submit program_id
with s_zguid in lr_zguid
with p_bkjob eq abap_true
and return.

SMQR里可以展示未执行的以及报错的队列
如果接口JOB查不到成功记录,可以在这里查一下

上一篇:Java多线程volatile、ThreadLocal、线程池、atomic


下一篇:Linux Or Ubuntu动态磁盘 挂载(带区卷)Win10 Ubuntu 双系统 ldmtool