Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Does ABAP have "sleep" and "awake"?

raffinkira
Participant
0 Kudos

Just like Java.

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

5 REPLIES 5

matt
Active Contributor

What are you wanting to achieve?

Jelena
Active Contributor
0 Kudos

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.

0 Kudos

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.

Jelena
Active Contributor
0 Kudos

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
Active Contributor
0 Kudos

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