RFC and session issue - why we should use DESTINATION NONE?
生活随笔
收集整理的這篇文章主要介紹了
RFC and session issue - why we should use DESTINATION NONE?
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Created by Jerry Wang on Oct 11, 2014
創建一個最簡單的remote function module:
在function module source code里有一個COMMIT WORK。
在主程序里,直接call 該function module,其source code里line 8的COMMIT WORK AND WAIT會trigger主程序里注冊在COMMIT上的form logic_main:
REPORT ZRFC. form logic_main.WRITE: / 'I am in main session and triggered by COMMIT WORK.'. endform. START-OF-SELECTION.PERFORM logic_main ON COMMIT.call function 'ZRFC'.輸入:
如果要避免這種問題,使用DESTINATION ‘NONE’. 在這種情況下,該function module在一個新的external session下執行,其COMMIT WORK不會觸發原report注冊在COMMIT上的subroutine。
總結
以上是生活随笔為你收集整理的RFC and session issue - why we should use DESTINATION NONE?的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: letsgo卡蒂狗性格
- 下一篇: 开源欧拉 openEuler 成功适配