Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
yilmazozkn
Participant

Introduction


This blog is meant to help you to use Busy Indicator on Fiori pages while creating Intelligent RPA process.

As a Fiori developer I couldn't imagine a Fiori project without Busy Indicators, Busy Indicator helps to stop screen and wait during long time back-end processes, calculations or connections on Fiori.

In addition to do this, it is very important to build a iRPA bot which is faultless.
Bot should wait while Busy Indicators in Fiori, otherwise if we do a process while page is not ready, bot would take error and stop to work.

Step 1: Recognition of Busy Indicator in Intelligent RPA Desktop Studio


In order to do that we can capture the page while Busy Indicator seen, but that is hard to capture due to seen just a short time.

Instead of that with a basic idea, busy can be recognized one time from another page or from SAPUI5 Demo Kit and then copy to other pages we need,

Here the link of SAPUI5 Demo Kit for Busy Indicator.

Then we can capture that page during Busy seen in Desktop studio and add Busy Indicator as item;

Select the 3. DIV and add item with below criteria, criteria is very important to recognize item correctly.



Step 2: Copying the defined Busy item to needed pages


Now we can copy the defined item to pages which we will need it.

Just right click and copy the oBusy item and then paste to other pages.


Item will be appear in red font due to captured page doesn't have this item. This is normal.

Step 3: Utilization of Busy Indicator


We can use ...oBusy.exist() code while page is loading, after saving or for any processes which may have possibility to show Busy Indicator in page.

Here you can find the example code for my logic , it waits after click Send button until page is ready;
// Clink Send button
PricingTool21.pOverview.oSendQuotation.click(true);

// Wait for Busy before continue
while(PricingTool21.pOverview.oBusy.exist())
ctx.sleep(500) ; //waits 500 ms

Of course we could also define a default/constant wait like 3 or 5 seconds or even more, but unnecessary waits will have occurred and also if process takes more time than we define, it occurs errors and bot would stop.

Conclusion


This blog post should help you to understand usage of Fiori pages correctly through SAP Intelligent RPA.

Please feel free for your suggestions and questions.

Regards & Thanks,

Özkan YILMAZ
2 Comments
Labels in this area