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查不到成功记录,可以在这里查一下
标签:function,qin,uuid,Qrfc,iv,队列,name 来源: https://www.cnblogs.com/humc622/p/15305408.html