How to Wait for an SAP Background Operation

Sometimes it is necessary to wait for an SAP background operation. This post briefly explains how this can be realized. This is very easy to implement with the sapReadyState attribute in a loop.



As we can see here we have a simple do-while loop that is executed as long as the sapReadyState is false. Additionally a delay activity is included to save resources. That’s all.

If a timeout is still needed, this can also be inserted quite simply by an if-condition with a break.

With this approach we have the possibility to wait for SAP background operations according to our requirements.


HI @StefanSchnell

Thanks once more for the engagement in the forum and great tutorials!

One hint to the topic above :slight_smile:

This can be also solved with 1 single out-of-the-box activity, covering all the steps you describe:

  • getting ready state
  • waiting (delay)
  • do-while looping (timeout)

It is Wait Attribute Activity.

Best regards, Lev



Thank you very much again Lev, great to know that.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.