Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
raghav_uppal2
Explorer
In this blog post, I will highlight best practices to work with SAP Business One and SAP Business ByDesign UI5 screen elements. This is applicable for both Cloud Studio and Desktop Studio.

Below are the suggestions:

 

1- Do not use ID element in recognition criterion of elements: This is important as ID element might change dynamically on every refresh of UI5 screens. You can simulate this behavior by doing a right click and then choosing "Inspect" as shown below.

 


 

 

Keep refreshing the screen to check if the ID element keeps on changing. If the ID element changes on every refresh , we cannot use it in recognition criterion:

 


 

 

2- Use generic criterion in element recognition as shown below:

 


 

 

 

3- Use debugger feature to check if the element is properly recognized


 

 

 

4-  If the element is not recognized in debugger, improve the criterion by using pattern technique (add parent elements in the hierarchy), continue improving hierarchy till the element get properly recognized in debugger. Below example of "New Sales Order" tile from SAP Business ByDesign screen:

 


 

 

Conclusion

 

SAP UI5 screens of SAP Business One and SAP Business ByDesign applications are very dynamic. Hence, we must try to use generic conditions for declaring screen elements. Criterion must be enhanced and Application Tester/ Debugger must be used to refine the criterion.

 

 
1 Comment