Skip to Content
0

HOW TO DELAY (USE WAIT STEP) MESSAGE IN SAP HCI

Dec 15, 2016 at 10:28 AM

184

avatar image
IS there any way to delay the execution of messages in sap HCI
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Sriprasad Shivaram Bhat Dec 15, 2016 at 11:46 AM
0

Hello Aditya,

You can add the delay using below script.But its not recommended to use the same since the threads lying in sleep state will cause performance issues.

Regards,

Sriprasad Shivaram Bhat


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

Thanks for reply,

But Sleep is function there will be no semicolon after that.I have used below code

import com.sap.gateway.ip.core.customdev.util.Message;

import java.util.HashMap;

def Message processData(Message message) {

sleep(120000)

return message;

}

Regards,

Aditya

1

Hi Sriprasad,

If this is not recommended, then what would be the best way to introduce a delay? In my iFlow on the other thread I posted yesterday, if I want to have a delay in between retries of the Process Call (instead of iterating over and over until the service returns 200), what should be the ideal approach to that?

0