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: 
TiaXu
Product and Topic Expert
Product and Topic Expert
2,218

Series – TMS:

Prerequisites

  • Two separate subaccounts (for TEST Node and PROD Node)
  • A content archive (a .mtar file, for example)
  • Entitlements:
    • Transport Management Service (can be provisioned to any single one subaccount, called TMS Subaccount in this post):ServicePlanCategory
      Cloud Transport ManagementstandardService
      Cloud Transport Managementstandard (Application)Application
    • Cloud Foundry Runtime (both TEST Subaccount and PROD Subaccount)ServicePlanCategory
      Cloud Foundry RuntimememoryService

Configuration Entries

  • Transport Destination for TEST Node and PROD Node
  • Transport Node for TEST Node and PROD Node
  • Transport Route between TEST Node and PROD Node

Step 1: Set Up the Environment (TMS Subaccount)

Please follow this guide to set up your TMS environment : https://help.sap.com/viewer/7f7160ec0d8546c6b3eab72fb5ad6fd8/Cloud/en-US/25a3bb93c6334c7780c8f65b0c3...

Step 2: Configure Destinations for Deployment (TMS Subaccount)

Transport destinations (for deployment) needs to be set for each node which is planned to deploy the application. In this scenario, we should configure transport destinations for both TEST Node and PROD Node.

Create Destination for TEST Node

In SAP BTP Cockpit of the subaccount with TMS provisioned, choose Connectivity -> Destinations -> New Destination.

image-20220225154735209.png

Fill in with the following information:

FieldValueDescription

NameTEST_NodeFor example.
TypeHTTP 
URLhttps://deploy-service.cfapps.<default-domain>/slprot/<myorg>/<myspace>/slp.As a result, the MTA is deployed into the space <myspace> of the organization <myorg>. The default domain can be found in the API Endpoint. For example (BTP@AliCloud): https://deploy-service.cfapps.cn40.platform.sapcloud.cn/slprot/beta-support_testagain-75bwmerz/tms/s...
AuthenticationBasicAuthentication 
User Specify the name of the technical user that is used for the deployment. The technical user used for the destination must be a valid user on Cloud Foundry environment, and it must have the role SpaceDeveloper in the target space.
Password  

For example:

image-20220225155004243.png

Click Save.

Click Check Connection, it will return 200: OK

image-20220225161331544.png

For more details, please read: Create Transport Destinations

Create Destination for PROD Node

The same as above.

For example:

image-20220225161505563.png

Step 3: Configure Transport Nodes (TMS Subaccount)

In Cloud Transport Management, transport nodes represent source and target end points of a deployment process - for example, a Cloud Foundry subaccount. Transports take place between transport nodes.

Create TEST Node

Make sure you have one of the roles Administrator or LandscapeOperator assigned to your user.

You have the following options to create transport nodes:

  • Choose Landscape Visualization from the navigation pane, and then click button + (Create a Node).
  • Choose Landscape Wizard from the navigation pane, then select a template for your landscape, and create your transport nodes as part of the process.
  • Choose Transport Nodes from the navigation pane, and click button + (Create a new node).

image-20220225162320977.png

In this post, we create node with option Transport Nodes.

Open the Transport Management home screen:

image-20220225163428974.png

Navigate to Transport Nodes, click button + (Create a new node):

image-20220225162638905.png

Fill in with the following information:

image-20220225162832332.png

Since we need to manually upload MTA into the TEST_Node, select the Allow Upload to Node checkbox.

We need to set the Destination so as to deploy the application into corresponding space.

Click OK.

For more details, please read: Create Transport Nodes

Create Prod Node

Create a new one and fill in with the following information:

image-20220225162939665.png

We need to set the Destination so as to deploy the application into corresponding space.

Step 4: Configure Transport Routes (TMS Subaccount)

You can use the same transport node as a source node for multiple transport routes. However, you can use the same transport node only once as a target node for a transport route.

You have the following options to create transport nodes:

  • Choose Landscape Visualization from the navigation pane, and then choose Create a Route, or select a transport node and choose Create Route from the side menu.
  • Choose Landscape Wizard from the navigation pane, then select a template for your landscape, and create your transport routes as part of the process.
  • Choose Transport Routes from the navigation pane, and choose Create a route.

image-20220225163920100.png

In this post, we create node with option Transport Routes.

On your SAP Cloud Transport Management home screen, click button + (Create a route):

image-20220225164137970.png

Fill in with the following information:

image-20220225164324121.png

Click OK.

For more details, please read: Create Transport Routes

Step 5: Test

In Cloud Transport Management, you upload a content archive to an import queue using the Add function. The upload process will create a transport request and attach the content archive to it, so that it will be available in the import queue of the TEST node for import (deploy) into the TEST subaccount. After being imported in the TEST subaccount, it is available in the import queue of the PROD_Node for import (deploy).

Upload to TEST Node

Go into the TEST_Node:

image-20220225165057338.png

Click Add to upload the content archive into the import queue:

image-20220225165117892.png

Choose the content archive:

image-20220225165321719.png

Click OK.

Two actions were executed:

Import to TEST Node and Transport to PROD Node

Select it and click Import Selected, the content archive will be imported (deployed) into TEST Subaccount and immediately transported into the PROD_Node:

image-20220225165523782.png

Two actions were executed, which means the application has been successfully deployed into the TEST Subaccount and the content archive has been transported to the import queue of the PROD_Node:

image-20220225170323567.png

Check the deployed application in the space of the TEST Subaccount:

image-20220225170553448.png

Access it in the browser:

image-20220225170716130.png

Now you can see the transport request in the import queue of the PROD_Node:

image-20220225165957248.png

Import to PROD Node

In the PROD_Node, select the transport request and click Import Selected, the content archive will be imported (deployed) into PROD Subaccount.

image-20220225170951882.png

Check the deployed application in the space of the PROD Subaccount:

image-20220225171621849.png

Now the whole transportation process has been finished.