We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!
WAIT FOR PUSH CHANNELS
$[MESSAGING CHANNELS$]
$[ASYNCHRONOUS TASKS$]
UNTIL log_exp $[UP TO sec SECONDS$].
1. ... MESSAGING CHANNELS
2. ... ASYNCHRONOUS TASKS
3. ... UP TO sec SECONDS
This variant of the statement WAIT is only intended for use in client programs of ABAP Push Channels. Any logical expression can be specified for log_exp after UNTIL.
If the statement WAIT interrupts the program, the
work process is changed, and a
database commit is executed, except in
updates. For this reason, WAIT must not be used between statements that open or close a
database cursor.
System Fields
sy-subrc | Meaning |
0 | The logical expression log_exp is true. |
4 | The logical expression log_exp is false. Also, no receiver is registered for APC messages in the current internal session and no registrations for AMC messages or asynchronous function calls exist when the additions MESSAGING CHANNELS or ASYNCHRONOUS TASKS are used. |
8 | The logical expression log_exp is false and when the addition UP TO was specified, the maximum time was exceeded. |
If the logical expression is incorrect, the running program is stopped in its current state. After an
ON_MESSAGE method, all data objects that
were not changed in the ON_MESSAGE method
have the same value as when the logical expression was last evaluated. Any methods called by functions within the logical expression are executed again during the next check.
... MESSAGING CHANNELS
... ASYNCHRONOUS TASKS
If these additions are specified, this variant of the statement WAIT is combined with the variants
WAIT FOR MESSAGING CHANNELS or WAIT
FOR ASYNCHRONOUS TASKS. The program flow described in the variants is added to the program flow
described above. The WAIT statement then also waits for APC messages or for asynchronously called functions to be called and does not just wait for AMC messages.
... UP TO sec SECONDS
If UP TO is specified, a maximum time sec can be specified in seconds during which the statement waits for APC messages.
Non-Catchable Exceptions
Leave us your contact details and we will call you back. Fields marked with * are mandatory.
We offer holistic SAP solutions from a single source to shape digital change and develop new business areas.
Switzerland
Schaffhausen
Germany
Mannheim, Düsseldorf, Munich
USA
Haverhill
Greece
Thessaloniki