Introduction:
In SAP HANA we create all the artifacts inside some Packages. An application may include one or more packages. When we need to transport the application for one HANA system to another, all the packages should be moved together.
A delivery unit (DU) is a collection of packages that are to be transported together. We assign all the packages belonging to an application to the same DU to ensure that they are transported consistently together within different system landscape.
In SAP HANA we create all the artifacts inside some Packages. An application may include one or more packages. When we need to transport the application for one HANA system to another, all the packages should be moved together.
A delivery unit (DU) is a collection of packages that are to be transported together. We assign all the packages belonging to an application to the same DU to ensure that they are transported consistently together within different system landscape.
Create and Maintain Delivery Unit:
Now we will see how to create and maintain delivery units in HANA.
Prerequisites:
To maintain delivery units with the SAP HANA Application Lifecycle Management, you must ensure the following prerequisites are met:
- You have access to an SAP HANA system.
- You have been granted the SAP HANA sap.hana.xs.lm.roles::Administrator user role.
The steps to create and maintain Delivery Unit are:
Step #1: Maintain the Delivery-Unit Vendor ID
In SAP HANA, the vendor ID is used primarily to define the identity of the company developing a software component that it plans to ship for use with SAP HANA, for example, “sap.com”.
To create a delivery unit, it is a prerequisite to maintain a vendor ID in your system.
Steps to maintain Vendor ID:
1. Start the SAP HANA Application Lifecycle Management.
The SAP HANA Application Lifecycle Management is available on the SAP HANA XS Web server at the following URL:
http://<WebServerHost>:80<SAPHANAinstance>/sap/hana/xs/lm
2. Select “Administration” tab and click on “Change Vendor”.
3. Enter the name of the new vendor, for example, myCompany.com. and click on “Ok”
Note: It is highly recommended to use reserved DNS names as vendor. For example, SAP content development systems should use the vendor sap.com
You can also change the Vendor ID from HANA Studio. The steps are:
- Double click on HANA system in HANA studio.
- Go to “Configuration” tab. Type “vendor” in the filter. You will see a record “content_vendor” as below.
3. Right click and click on Change. Enter new vendor id and click on OK.
4. In case you do not see “content_vendor”, right click on repository and use “add parameter” to and add “content_vendor” manually.
Step #2: Create a Delivery Unit
Delivery Unit can be created either by using SAP HANA Application Lifecycle Management or by using HANA Studio.
Create Delivery Unit by using SAP HANA Application Lifecycle Management:
1. Open the SAP HANA Application Lifecycle Management.
The SAP HANA Application Lifecycle Management is available on the SAP HANA XS Web server at the following URL:
http://<WebServerHost>:80<SAPHANAinstance>/sap/hana/xs/lm
2. Choose the PRODUCTS tab.
3. Choose the Delivery Units tab.
4. Choose Create.
5. The New Delivery Unit dialog box appears. Enter details for the new DU.
Name:
The field is mandatory and you must follow strict naming conventions, for example, use capital letters.
Vendor:
This field is mandatory. However, you cannot enter a vendor here; the box is populated by the value you enter when defining the vendor in the SETTINGS tab.
Version:
Version numbers must take the form “#.#.#”, for example, 1.0.5, where:
- 1 = the DU version number
- 0 = the support package version (if required)
- 5 = the patch version (if required)
Note: The numbers you enter here refer to the application component that you are developing; the numbers do not refer to the patch or service-pack level deployed on the SAP HANA server.
6. Choose Create.
Create Delivery Unit by using SAP HANA Studio:
1.Open HANA Studio. Go to Help àQuick Launch.
2. Click on “Delivery Unit”
3. Click on “Create”. Provide Delivery Unit information and click on Ok.
Step #3: Assign Packages to a Delivery Unit
By default, a new delivery unit (DU) is empty; you must assign packages to it manually. To assign packages to a DU, perform the following steps:
1. Open the SAP HANA Application Lifecycle Management.
2. Choose the PRODUCTS tab.
3. Choose the Delivery Units tab.
4. Select the DU to which you want to assign some packages. The “Assigned Packages” panel displays the current contents of the selected DU.
5. Assign new packages to the DU. Choose “Assign” and select the name of the package you want to assign to the DU.
6. Choose “Check for Unassigned” to ensure that you have selected all packages and sub-packages that you want to assign to the DU. If you have missed a sub-package, select it from this dialog box and choose Assign.
We can also assign packages to Delivery Unit using HANA Studio. The steps are:
1. Open HANA Studio. Go to Help àQuick Launch.
2. Click on “Delivery Unit”
3. Select your Delivery Unit and click on “Add“. Select package and click on Ok.
Import & Export using Delivery Unit
We can use Delivery Unit to transport content from one HANA system to other. The process is
Export a Delivery Unit
You can export a delivery unit (DU), for example, to a file, for your application content or your software components using the SAP HANA Application Lifecycle Management.
Prerequisites
To export a delivery unit with the SAP HANA Application Lifecycle Management, you must ensure the following prerequisites are met:
- You have access to an SAP HANA system
- You have been granted one of the following SAP HANA user roles:
- sap.hana.xs.lm.roles::Administrator
- sap.hana.xs.lm.roles::ExecuteTransport
To export a DU using the SAP HANA Application Lifecycle Management, perform the following steps.
1. Open the SAP HANA Application Lifecycle Management.
2.Choose the UPLOAD/DOWNLOAD tab.
3. Choose the EXPORT tab.
4. Select the DU you want to export.
In the Delivery Units list, locate and select the DU you want to export to a file. The Delivery Unit Import screen appears containing the list of objects included in that DU.
5. Export the selected DU.
Choose Export Delivery Unit to File to display a dialog that enables you to specify the location, for example, on a local file system, where you want to save the exported DU.
Import a Delivery Unit
You can import a delivery unit (DU), for example, from a file, for your application content or your software components using the SAP HANA Application Lifecycle Management.
Prerequisites
To import a delivery unit with the SAP HANA Application Lifecycle Management, you must ensure the following prerequisites are met:
- You have access to an SAP HANA system
- You have been granted the SAP HANA sap.hana.xs.lm.roles::Administrator user role.
- The package name of the DU does not exist in the system.
Note: Package names are case-insensitive. If you have a package name with only upper- and lower-case differences, the import fails. Delete the package from the system and then import the DU.
To import a delivery unit perform the following steps.
1. Open the SAP HANA Application Lifecycle Management.
2. Choose the UPLOAD/DOWNLOAD tab.
3. Choose the IMPORT tab.
4. Select the DU you want to import.
Choose “Browse” to display a file explorer, which you can use to locate the DU you want to import, and choose “Open”.
Note: Exported DUs have the file extension .tgz, for example, MyDU.tgz.
5. The “Delivery Unit Import” screen appears containing the list of objects included in that DU.
6. Confirm that this is the DU that you want to import.
Choose “Import Delivery Unit” from File to import the selected delivery unit.
Note: The import operation overwrites any identical objects in the target system with the content of the imported DU.
No comments:
Post a Comment