cancel
Showing results for 
Search instead for 
Did you mean: 

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

former_member305454
Participant
0 Kudos
IS there any way to delay the execution of messages in sap HCI

Accepted Solutions (1)

Accepted Solutions (1)

Sriprasadsbhat
Active Contributor
0 Kudos

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

former_member305454
Participant

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

markbernabe
Active Participant

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?

Answers (0)