关于COMMIT WORK and COMMIT WORK AND WAIT在SAT中的讨论
生活随笔
收集整理的這篇文章主要介紹了
关于COMMIT WORK and COMMIT WORK AND WAIT在SAT中的讨论
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
Created by Jerry Wang, last modified on Oct 06, 2014
variant 1: 異步update
START-OF-SELECTION.CALL FUNCTION 'ZTIME_SPENT2' IN UPDATE TASKEXPORTINGiv_time = 2.COMMIT WORK.PERFORM main.WRITE: / 'finish'.FORM main.WAIT UP TO 1 SECONDS. ENDFORM.variant 2: 同步update
START-OF-SELECTION.CALL FUNCTION 'ZTIME_SPENT2' IN UPDATE TASKEXPORTINGiv_time = 2.COMMIT WORK AND WAIT.PERFORM main.WRITE: / 'finish'.FORM main.WAIT UP TO 1 SECONDS. ENDFORM.variant 3
根據(jù)ABAP help 對關(guān)鍵字SET UPDATE TASK LOCAL的說明(The local update function performs a synchronous update after the COMMIT WORK statement, independently of the addition AND WAIT), variant 3還是屬于同步update:( 總的gross time仍然為3秒)
START-OF-SELECTION.CALL FUNCTION 'ZTIME_SPENT2' IN UPDATE TASKEXPORTINGiv_time = 2.SET UPDATE TASK LOCAL.COMMIT WORK.PERFORM main.WRITE: / 'finish'.FORM main.WAIT UP TO 1 SECONDS. ENDFORM.總結(jié)
以上是生活随笔為你收集整理的关于COMMIT WORK and COMMIT WORK AND WAIT在SAT中的讨论的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: flash如何制作漂亮的立体文字
- 下一篇: 另一种Background job的 d