Transport Mobile Development Kit (MDK) apps using SAP Content Agent UI
- How to subscribe to SAP Content Agent service
- How to set up role collections required for SAP Content Agent service
- How to configure the destination targeted to SAP Cloud Transport Management by creating a service instance and a service key
- How to configure landscape in Cloud Transport Management
- How to create the transport request using export option in SAP Content Agent service
Prerequisites
- You have an SAP BTP account as source where you have subscribed to SAP Mobile service. For more information, follow the tutorial Create Your First MDK Application..
- You’ve set up SAP Cloud Transport Management service in the central administrative subaccount. If you haven’t done that, follow the tutorial Get Started with SAP Cloud Transport Management.
- You have an SAP BTP account as source where you have subscribed to SAP Mobile service and is empty.
Scenario Overview
SAP Content Agent service acts as a local agent in the SAP BTP account that helps to standardize content management operation for various SAP BTP services.
In this tutorial, you will learn to create transport requests to move your apps from the source SAP BTP account where you’ve tested and finalized your development changes to other SAP BTP accounts.
For more information about SAP Content Agent Service, see the SAP Help Portal at SAP Content Agent Service.
- Step 1
-
To access SAP BTP Cockpit of your enterprise account, choose https://cockpit.btp.cloud.sap.
Depending on your own geo location, this URL will redirect you to the closest regional SAP BTP Cockpit URL. -
In your global account, navigate to the Dev Source subaccount from where you want to transport Mobile apps.

-
- Step 2
To enable the usage of the user interface of SAP Content Agent service, subscribe to the free plan.
-
In your subaccount, go to Services > Service Marketplace.
-
Use the Search field to filter for content agent.
-
The SAP Content Agent tile is displayed.

-
Select the three dots (…) on the tile, and choose Create.

-
On the New Instance or Subscription dialog, from the Plan dropdown box, select free and choose Create.

-
The subscription is in progress. Choose View Subscription. You’ve subscribed to the application.

See also on SAP Help Portal: Initial Setup
-
- Step 3
After successful subscription, you need to configure user access to the application. You can create role collections and assign roles to the role collections based on the application templates. Afterwards, you assign the role collections to users or user groups.
-
To use the delivered role collections, choose Security > Role Collections from the navigation on the left. Filter for role collections called content agent. The role collections are displayed.

-
To assign users to the desired role collection, choose Content Agent Admin, from the list. In the details of the role collection, choose Edit.

-
You can add individual users or user groups to the role collection. In the tutorial, add an individual user. To do this, select the identity provider (here: Default identity provider). In the ID field, enter an existing e-mail address and choose Enter. The E-Mail field is automatically filled with the selected e-mail address. Save your changes.

Repeat the steps, if you want to add users other role collections for other tasks, such as the Content Agent Import Operator for import tasks. See also on SAP Help Portal: Setting Up Role Collections
What role collections provide the access to export content using SAP Content Agent service
-
- Step 4
You should now be able to access the user interface of SAP Content Agent service.
-
To check this, in your subaccount, choose Services > Instances and Subscriptions. In the Subscriptions section, choose the Content Agent link or the Go to Application icon to the right of it.

-
In a new tab, you should now see the Overview page of your SAP Content Agent service. Currently, the Activities Performed tile is empty as expected from a new instance.

-
- Step 5
Get the service key details of the SAP Cloud Transport Management instance that you created as part of tutorial Step 5 in Get Started with SAP Cloud Transport Management.
-
Go to the central administrative SAP BTP subaccount. To do this, click on the Central Services tile.

-
Choose Instances and Subscriptions and filter for Cloud Transport Management to get the service instance. Click on the key link to view credentials.

-
The key looks as follows. Leave the service key open so that you copy the required values in the next step, or note down the values of
uri(you have to scroll down), as well asclientid,clientsecret, andurlfrom theuaasection.
In which account the service instance for Cloud Transport Management service should be created?
-
- Step 6
The destination to SAP Cloud Transport Management service defines the endpoint of SAP Cloud Transport Management service that is used by SAP Content Agent for pushing the content to desired source node of transport route. The destination has the fixed name TransportManagementService.
-
Open the source subaccount in a new tab.

-
Under Connectivity > Destinations click on Create Destination.

-
In the Destination Configuration window, enter details for the following fields.
Keep the values of fields not mentioned in the table unchanged.
For destination name, the value must haveTransportManagementServiceas prefix.Field Value Name TransportManagementServiceas defaultDescription For example: Destination to SAP Cloud Transport ManagementURL Enter the value of the urifrom the service key details (scroll down to the bottom of the service key). For example:https://transport-service-app-backend.ts.cfapps.us10.hana.ondemand.comAuthentication Select OAuth2ClientCredentials. Client ID Enter the value of clientidfrom theuaasection of the service key details.Client Secret Enter the value of the clientsecretfrom theuaasection of the service key details.Token Service URL Enter the value of urlfrom theuaasection of the service key details and append/oauth/tokento the URL. For example:https://cpi-dev-12345678.authentication.us10.hana.ondemand.com/oauth/token
See also on SAP Help Portal: Create TransportManagementService Destination
How to check the destination configuration is correct?
-
- Step 7
You need to configure a transport destination so that SAP Cloud Transport Management knows about the target endpoint of the deployment process. This is usually the endpoint of the deploy service on Cloud Foundry.
-
You will use the Central Services subaccount that’s subscribed to SAP Cloud Transport Management service.

-
In the Central Services subaccount, under Connectivity > Destinations click on Create Destination.

-
In the Destination Configuration window, enter details for the following fields and save the entries:
Field Value Name Enter a name, for example: Quality_Target_NodeDescription For example: Destination for Deploy Service targeted on target BTP account for Mobile ServiceURL Specify the URL to the SAP Cloud Deployment service as the deploy end point of the destination https://deploy-service.cf.<domain>/slprot/<myorg>/<myspace>/slp<domain>: Domain of your target subaccount derived from the Cloud Foundry API endpoint that you can find in the SAP BTP Cockpit in the Overview of your subaccount.<myorg>/<myspace>: Names of your org and space. For examplehttps://deploy-service.cf.eu10-004.hana.ondemand.com/slprot/Example%20Company%20Test%20Org/Example%20Company%20Test%20Space/slpAuthentication Select BasicAuthentication. User* Specify the user name (usually, an email address) of the user that is used for the deployment. User must be a valid platform user on Cloud Foundry environment and it must have the role SpaceDeveloper in the target space. Password Specify the password of the user. 
The destination was created.
This destination name will be used later in target node configuration of the SAP Cloud Transport Management application.
To import the transport request, what should be the destination endpoint of target node?
-
- Step 8
Configure the landscape in SAP Cloud Transport Management service using the transport destination.
-
Go to the central administrative SAP BTP subaccount. To do this, click on the Central Services tile.

-
Choose Instances and Subscriptions and filter for Cloud Transport Management and launch the application. The UI opens in a new browser tab or window.

-
To configure the landscape, select Landscape Visualization from the navigation on the left.

-
Start by creating the transport node that acts as the logical representation of your SAP Integration Suite source subaccount, here DEV_NODE. To do this, choose the + icon (1). On the Create Node dialog, enter details for the following fields (2-3), and click OK (4):
You can keep the values of fields not mentioned in the table unchanged.
Field Value Name (2) Enter a name, here: DEV_NODEDescription This field is optional. For example: source (development) node for Mobile ServicesAllow Upload to Node (3) Select the checkbox. 
-
To create the transport node that acts as the logical representation of your SAP Mobile services target subaccount, choose the + icon. On the Create Node dialog, enter details for the following fields. Afterwards, choose OK (4).
You can keep the values of fields not mentioned in the table unchanged.
Field Value Name (1) here TARGET_NODEDescription This field is optional. For example, SAP Mobile services Quality target node.Content Type (2) Select the type of content as Multi-Target Application. Destination (3) Select the destination created in the previous step. Here, this is Quality_Target_Node. 
-
The target node is created and is also visible on the canvas. To create a transport route to connect the two nodes, choose the connector icon. sOn the Create Route dialog, enter a name for the transport route, here
Route_DEV_TARGET(1), select the source nodeDEV_NODE(2) and the target nodeTARGET_NODE(3), and click OK (4).
You’ve configured the transport landscape.
See also on SAP Help Portal: Configuring the Landscape
-
- Step 9
Confirm if the app is ready to be exported.
-
Launch SAP Mobile Services Cockpit by clicking on the app from instances in DEV account.

-
Confirm the app in dev account

-
- Step 10
-
Login to SAP Content Agent UI from the DEV account.

-
Navigate to the Content Types page to check status of SAP Mobile service. You should see a warning message SAP Mobile service is active and ready for export. Ignore the Action Recommended as in this scenario we do not perform direct import from Content Agent UI.

-
Check the status of SAP Cloud Transport Management is showing as “Connected” to verify the destination is configured correctly in the DEV account. Select the destination name. By default
TransportManagementServiceis pre-selected. Select the source node as the entry node of the transport route you want to choose.
-
Start the export process by clicking on Export option listed in the Side Navigation. Use the options to filter type as Mobile Application and search text using name of your app, for example test.

-
Select the mobile app from the list you want to export. Upon clicking the checkbox you can view the subcomponents of selected app where some mandatory components are pre-checked for you. Go to Step 2.

-
Select the transport mode option as “SAP Cloud Transport Management” service. Choose the source node based on the entry node of the desired transport route. Enter a description for creating the transport request. This would be visible in the SAP Cloud Transport Management transport requests view.

-
Review your selection and proceed to the next step.

-
An asynchronous process is started and you can view the progress and messages.

Where is the source node for transport request defined?
-
- Step 11
You can also use the “Activities Performed” page to see the past activities - export/ import done along with logs, content selected and transport information to track if the changes are deployed in the target account.
-
Navigate to Activities Performed and select the activity for which you want to view further details.

-
Select the tab Activity Logs to view the logs. You can also download them.

-
Select the Content Information tab to view the details (subcomponent information) of the mobile app you have exported from the source account.

-
Select the Transport Details tab to see the transport request status. You can also use the View Transport Request ## button to go to SAP Cloud Transport Management UI to see further details.

-
- Step 12
- Navigate to the target subaccount where you want the app to be imported.

- Launch SAP Mobile Services Cockpit by clicking on the support link of SAP Mobile Services.

-
To login, follow the steps of tutorial.
-
From the home screen, navigate to Mobile Applications > Native/MDK. Confirm there are no apps listed in the page.

-
Bookmark the Mobile Services admin UI URL for quick access.
- Navigate to the target subaccount where you want the app to be imported.
- Step 13
In Cloud Transport Management, the content is automatically forwarded from the DEV_NODE to the TARGET_NODE. You can now import the content into your target subaccount.
- Navigate to the transport request created in SAP Cloud Transport Management. You can do so by clicking on the Transport Request link from the activities performed page in Content Agent UI (as shown in previous step). To go to the import queue, click on the TARGET_NODE.

- To start the import select the checkbox in the table for the transport request and click on Import Selected.

- Approve the import.

- When the import is successful, the status of the transport request changes to Succeeded. You can display more details about the import in the log of the transport request. To display the log, click on the log icon.

What are the various options to import the transport request?
- Navigate to the transport request created in SAP Cloud Transport Management. You can do so by clicking on the Transport Request link from the activities performed page in Content Agent UI (as shown in previous step). To go to the import queue, click on the TARGET_NODE.
- Step 14
-
Launch the Mobile Services admin UI by opening the URL bookmarked earlier.
-
From the home screen navigate to Mobile Applications > Native/MDK.

-
- Open the SAP BTP Cockpit
- Subscribe To SAP Content Agent
- Set Up Role Collections
- Verify Access To SAP Content Agent Service
- Get Details Of SAP Cloud Transport Management Service Instance
- Create Destination To SAP Cloud Transport Management In Source Account
- Create Target Node Destination In Central Services Account
- Set Up Landscape In SAP Cloud Transport Management
- Check App In Dev Account
- Use SAP Content Agent UI To Export Mobile App To SAP Cloud Transport Management
- View The Status Of Transport Request
- Verify The App Is Not Available In Target
- Import The Transport Request
- Verify The Import In Target Account