ITeye博客

ABAP里面的Sleep函数

JavaFans · 2011-05-06 10:55 · 默认类别 · 编程语言 · UP · Markdown

wait up to 42 seconds.
  • Does a roll-out and releases the work process to the listener
  • Does an implicit Database commit

Use when CPU processes are at a premium and when the implicit commit will not corrupt your data or cause a short dump because of an open database cursor.

    CALL FUNCTION 'ENQUE_SLEEP'
      EXPORTING
        seconds              = 42.
  • Does not release the work process
  • Does not cause an implicit Database commit

Use when you cannot afford an implicit commit, and the system can handle the work process(es) being tied up for the duration of the SLEEP command.

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。