Liquid UI - Documentation - 7.16 sleep()

7.16 sleep()


Purpose

The sleep() command allows you to slow down the front-end software execution process to sync with the SAP system. A slowdown in your SAP system can be caused by miscellaneous issues. You can set a waiting time in milliseconds in the sleep command to stop execution or wait for the next steps in the process to execute.

Note: You can use sleep() only in Liquid UI Server

 


Syntax

sleep("time");


Properties

  • time – time in milliseconds


Example 1:

To demonstrate the usage of sleep(), we will consider a scenario to wait for 3 seconds i.e 3000ms to create a material:


Script

sleep("3000");

Script Details


Tips and Tricks

  • This command is useful during the SAP process wherein a few cases you need to stop the WS script execution to sync with the SAP system process.

Can't find the answers you're looking for?