Skip to Content
-1

Does ABAP have "sleep" and "awake"?

Jan 02 at 12:46 PM

116

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?

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

2 Answers

Jelena Perfiljeva
Jan 02 at 09:03 PM
0

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.

0

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.

0
Iftah Peretz
Jan 02 at 09:19 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded