延迟调用:
<style></style>CALL FUNCTION 'ZFM_UPDATE_QALS' IN UPDATE TASK "STARTING NEW TASK l_taskname
TABLES
it_prueflos = lt_prueflos.
<style></style>
DATA: lw_prueflos TYPE zsqm_prueflos .
* WAIT UP TO 3 SECONDS.
LOOP AT it_prueflos INTO lw_prueflos.
UPDATE qals SET zfbbs = 'Y' WHERE prueflos = lw_prueflos-prueflos .
" COMMIT WORK AND WAIT.
WAIT UP TO 1 SECONDS.
ENDLOOP.
异步调用:
<style></style>DATA l_task TYPE char10.
<style></style> CLEAR l_task.
CALL FUNCTION 'ZFM_NEW_TASK' STARTING NEW TASK l_task
EXPORTING
code = 'ZMME103'
bs = 'ZGTM_INIT'.
<style></style>
DATA:valutab LIKE TABLE OF rsparams .
CALL FUNCTION 'RS_VARIANT_CONTENTS'
EXPORTING
report = code
variant = bs
TABLES
valutab = valutab
EXCEPTIONS
variant_non_existent = 1
variant_obsolete = 2
OTHERS = 3.
IF sy-subrc <> 0.
* Implement suitable error handling here
EXIT.
ENDIF.
SUBMIT (code) USING SELECTION-SET bs
AND RETURN .