cancel
Showing results for 
Search instead for 
Did you mean: 

Migrate sap ui5 appsfrom sap.ui.commons to sap.m

Former Member
0 Kudos
479

Hello experts,

How to migrate sap ui5 apps that are built on libraries like sap.ui.commons,sap.me to sap.m and other libraries that are not deprecated?

Should the apps be rebuild again from scartch?

or

We can edit the existing controls that are used in the app like, matrix layout

and forms that are used from sap.ui.commons library to

layouts and forms in sap.ui.layout library and other controls as well and replace them with sap.m controls.

Thank you 🙂

Accepted Solutions (0)

Answers (3)

Answers (3)

SergioG_TX
Active Contributor

Aditya,

very good question.. I do not think there is a 1 to 1 match on your controls. there may be controls, properties and events which are not the same on both libraries (sap.ui.commons and sap.m) it really depends on what your app does/ what is the content of your application.

if you are going to migrate, consider using the XML views (sap.m controls) as recommended by SAP. there may be a lot of similarities if you correctly used MVC, etc.

maybe you need to do a comparison of the controlls (sap.ui.commons) and see if you see the equivalent controls on the sap.m library.

here is some documentation where you can find the responsive controlls. https://sapui5.hana.ondemand.com/explored.html

good luck!

Former Member
0 Kudos

Thank you for your response 🙂
so do you recommend building it again using XML views or compare the controls, find the alternative to controls which are not equivalent and replace them.

Sharathmg
Active Contributor

You have to do it manually. Change the libraries mapped in the XML header tag and then change the controls which are in "m" library but not in "commons".

You also need to check if the methods used for existing controls(like Label, Input etc. ) in "commons" are also available in "m" library.

Former Member
0 Kudos

Thank you Sharath.
Will implement this approach.

SergioG_TX
Active Contributor
0 Kudos

i wrote a few lines on things to look for, https://blogs.sap.com/2017/08/25/pointers-while-updating-sapui5-version/

hope this is helpful for you

Sharathmg
Active Contributor
0 Kudos

You will have to manually, map the controls in commons library to the target library(m or me) and then run the application.