Get Example source ABAP code based on a different SAP table
ID WAIT-UPTO • WAIT UP TO ABAP Statement • SECONDS WAIT UP TO
WAIT UP TO> Short Reference >
ABAP_SYNTAX WAIT UP TO sec SECONDS.>
What does it do? This statement interrupts the execution of the program by the number of seconds specified in sec>. sec> is a numeric expression position> of the operand type f> to which positive numbers can be passed, including 0. The unit of the number specified in sec> is seconds and the time resolution is one millisecond. After the specified time has passed, the program execution continues with the statement following WAIT>. When used, this statement always changes the work process>. Return Codes> This statement always sets sy-subrc> to 0.
Latest notes:
Each time this variant of the statement WAIT> is used, a database commit> is triggered (except during updates>). For this reason, WAIT> must not be used between AB-SQL > statements that open or close a database cursor>.
The variants WAIT FOR ASYNCHRONOUS TASKS> >, WAIT FOR MESSAGING CHANNELS>>, and WAIT FOR PUSH CHANNELS>> of this statement are useful only in combination with callback routines in aRFC>, AMC>, or APC>. The variant shown here does not wait for callback routines. ABAP_HINT_END
Example ABAP Coding
The output of the following example should correspond to approximately one million microseconds. ABEXA 00763 ABAP_EXAMPLE_END