Skip to Content

Does ABAP have "sleep" and "awake"?

Jan 02 at 12:46 PM


avatar image
Former Member

Just like Java.

I think WAIT UNTIL is similar, but looks like it cannot "awake" the process proactively.

10 |10000 characters needed characters left characters exceeded

What are you wanting to achieve?

* Please Login or Register to Answer, Follow or Comment.

2 Answers

Jelena Perfiljeva
Jan 02 at 09:03 PM

Regarding "does ABAP have multi-threading" Google answers with this blog and this blog, among others.

There are no similar commands in ABAP though, so the short answer is "no". I'm also curious though what would business case triggered this question.

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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.


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.

Iftah Peretz
Jan 02 at 09:19 PM


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".

10 |10000 characters needed characters left characters exceeded