01-02-2018 12:46 PM
Just like Java.
I think WAIT UNTIL is similar, but looks like it cannot "awake" the process proactively.
01-02-2018 12:50 PM
01-02-2018 9:03 PM
01-13-2018 1:33 PM
It's not a real business requirement. I am just consider the ABAP implementation of "Consumer" and "Producer" model.
When you use WAIT, let's say WAIT 2 SECONDS.
Then the process will roll out, and after 2 seconds it rolls in again, this is "sleep" and "awake" I mentioned.
01-15-2018 11:14 PM
The initial question stated "just like Java". ABAP command WAIT has nothing to do with multi-threading, like sleep-wake in Java, I believe. So it's not "just like" that, strictly speaking.
Sorry, I'm at loss here... This question is either very complex or RTFM. If it's the latter then refer to ABAP Keyword documentation, which can be found online. If it's the former then please explain what this is about exactly.
01-02-2018 9:19 PM
Hi,
Take a look here . That's a good ABAP example. Now when you say "awake" what do you mean? Because in java Thread class the sleep method is getting a time for sleeping that after which it is "awakens".