随笔 - 348  文章 - 1 评论 - 19 阅读 - 27万
< 2025年1月 >
29 30 31 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 28 29 30 31 1
2 3 4 5 6 7 8

https://help.sap.com/saphelp_nwpi71/helpdata/en/c7/4efe402762ef6fe10000000a1550b0/content.htm?no_cache=true

 

 

 

1.QRFC DEMO:

RSTRFCT0

RSTRFCT1

RSTRFCQ4

 

2. qRFC with Outbound Queue

复制代码
 1 REPORT rstrfct0.
 2 ...
 3 
 4 CALL FUNCTION ‘TRFC_SET_QUEUE_NAME’.
 5 
 6   EXPORTING
 7 
 8     QNAME                           = ‘queue1’
 9 
10 *   NOSEND                        = ' '
11 
12 *   TRFC_IF_SYSFAIL           = ' '
13 
14 *   CALL_EVENT                  = ' '
15 
16 *   EXCEPTIONS
17 
18 *   INVALID_QUEUE_NAME   = 1
19 
20 *   OTHERS                         = 2
21 
22 .
23 
24 CALL FUNCTION ’rfc_function’
25 
26  DESTINATION rfcdest
27 
28  IN BACKGROUND TASK
29 
30  ( AS SEPARATE UNIT )
31 
32  EXPORTING ...
33 
34  TABLES ...
35 ...
36 
37 COMMIT WORK.    
复制代码

SMQS:Register destination

 

3. qRFC with Inbound QueueREPORT rstrfct5....

复制代码
CALL FUNCTION 'TRFC_SET_QIN_PROPERTIES'

  EXPORTING

*   QOUT_NAME                 = ' '

    QIN_NAME                    =

*   CALL_EVENT                 = ' '

*   NO_EXECUTE                = ' '

* EXCEPTIONS

*   INVALID_QUEUE_NAME  = 1

*   OTHERS                         = 2

.

CALL FUNCTION ’rfc_function’
IN BACKGROUND TASK
( AS SEPARATE UNIT ) EXPORTING ... TABLES ... ... COMMIT WORK.
复制代码

Table : TRFCQIN , TRFCQSTATE  ,TRFCQDATA.

SMQR:  Register queue name

 

IN BACKGROUND TASK
posted on   ricoo  阅读(347)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示