Skip to Content
0
May 12, 2008 at 09:41 AM

problem when using Call FM IN UPDATE TASK.

1777 Views

we plan to update ztable using Call FM in update task, and write the success/error message into log.

Does below is right?? I found the commit work can not be used here. Thanks..

_____________________________

CALL FUNCTION 'ENQUEUE_ETABLE'.

IF sy-subrc = 0.

CALL FUNCTION 'update_ztable'' IN UPDATE TASK.

Endif.

COMMIT WORK and wait.

IF sy-subrc <> 0.

ROLLBACK WORK.

write error log.

Else.

Write successful log.

Endif.

CALL FUNCTION 'DNQUEUE_ALL'.