‎2009 Aug 25 1:26 PM
Hello All,
I am doing the following.
DO.
CALL FUNCTION 'ENQUEUE_XYZ'
if sy-subrc <> 1.
exit.
endif.
ENDDO.
How can i best ensure that the DO...ENDDO is not endless.
and that after say 3 minutes i stop with some CX_ exception?
Thanks in advance.
Best Regards
Mahadevan
‎2009 Aug 25 1:34 PM
Hi,
If you want to do it 1 times only then you can give
DO 1 times.
enddo.
If suppose enqueue function module is working fine then you have to do some set of statements then,
DO.
if sysubrc eq 0.
statements.
exit.
else.
exit.
endif.
ENDDO.
Regards,
Nithya
‎2009 Aug 25 1:35 PM
Hi Mahadevan,
Please use wait up to statement but remember that that will not set sy-subrc value and it will always be 0.
Raghav