I am looping on and processing IDOCS, i.e.:
LOOP AT lt_edidc INTO ls_edidc.
WITH docnum = ls_edidc-docnum
* wait up to 100 seconds.
* CALL FUNCTION 'ENQUE_SLEEP'
* seconds = 100.
When the SUBMIT is executed I would like it to finish processing the IDOC before it commences with the next one.
Is it better/safer (in my case above) to use 'WAIT UP TO 100 SECONDS' or to use the 'ENQUE_SLEEP' function?