Introduction of Delivery Unit In SAP HANA
Packages are often used in SAP HANA application development for modeler views and XS projects. Many packages are used and different objects are created in each package in development. These packages should be migrated to production server for deployment finally so the migration of packages remains a problem. In the previous blog, we have provide a solution for migration on modeler views, while it is not suitable for the SAP HANA native application
SAP HANA uses “Delivery Unit” to realize migration on different packages from different instance. A delivery unit could be regarded as a collection of several packages for centralization of management. This blog will mainly discuss how to create and use Delivery Unit.
SAP HANA provides a centralized management platform called HANA Application Lifecycle Management for Delivery Unit. Before visiting it, the user should have the “sap.hana.xs.lm.roles: :Administrator” privilege. You could visit it in these two ways.
SAP HANA Studio
That is very similar with visiting LifeCycle Management: right click on Transport Management.
2. Access it with URL
The following picture shows main interface of HANA Application Lifecycle Management. The platform lists many features for Delivery Unit, such as export/import/create delivery unit and search package.
A Vendor ID should be created for the initially used of HANA Application Lifecycle Management. Choose change vendor under Administration if you want to change to a new vendorID.
Create a DU
For SAP HANA SP07, system creates several delivery units after installation of SAP HANA, which display under PRODUCTS->Delivery Units. You can add, delete or modify delivery units from it. It is very simple to create a delivery unit.
- Fill in the name, version and simple description of DU.
2. Assign packages to this DU.
Export a DU
The created delivery units and owned packages are listed and you could export the DU into a .tgz file through Export Delivery Unit File.
Import a DU
Import the delivery unit and all the related packages are created in SAP HANA.
SAP HANA Studio also provides administration for DU. Switch to modeler perspective and chooses Delivery Unit under Setup.
- Create DU and assign packages to it.
2. Export and import DU with selecting Delivery Unit in SAP HANA Content.
Useful info. Please add a note on the roles required to do these activities
In my case however something seems to not be working as expected.
When I select:
'Change Vendor': after entering the new vendor and pressing the 'OK' button nothing happens
'Enable Change Recording': after checking the box the check mark does not remain
Am I doing something worng?
I've just tried in my server and it's ok. But it really takes a long response
Maybe I should add that when I open the console I get the following:
as well as the following messages:
after which I cannot set the vendor code. Waiting does not help (the session expires after a while anyway)
Thank you very much for sharing above details.
What is the best practice for transport HANA content from development to production?
Is it by creating one package which belongs to a particular scenario (eg:- profit analyze report) and include all developments in to this package , once done assign this package to one delivery unit and transport this to production.
You can change the vendor in configuration tab(hana studio).. the configuration file is content_vendor. under system tab assign a new name....
How can we recover the deleted objects and packages if we delete the delivery unit after checking the checkbox Includes objects and packages. Please suggest.