Skip to content

Set up the CDQ Workbench on SAP BTP

You install the CDQ Workbench in your own SAP BTP subaccount from the MTA archive that CDQ delivers. It then connects your SAP S/4HANA system with your CDQ Data Mirror, and your users open its Tools from the SAP Fiori launchpad of SAP Build Work Zone, standard edition.

Quick Start

If you know your way around SAP BTP, these six steps are all you need. Everything below the diagram explains each one in detail.

  1. Check that the subaccount has the entitlements, a Cloud Foundry space and the trust to your identity provider (details).
  2. Map an SAP HANA Cloud database into the space, deploy AI models in SAP AI Core, and give the Workbench a technical user in S/4HANA.
  3. Create the destinations to S/4HANA, CDQ, your AI models and your SAP Build Work Zone runtime.
  4. Deploy the MTA archive with cf deploy, plus an extension descriptor for your subaccount's settings.
  5. Map your user groups to the Workbench's role collections.
  6. Add the Tools to your SAP Build Work Zone site, a new or an existing one: a content provider, the site's roles and the view mode Spaces and Pages - New Experience.

Then an administrator creates the first connection in the Tool Connections, and you check the installation.

Here's how the parts fit together. Your users open the Tools from your SAP Build Work Zone site, which loads them from the subaccount's HTML5 Application Repository. The Tools call the Workbench's CAP service, which keeps its data in an HDI container on SAP HANA Cloud. The CAP service reaches your S/4HANA system, the CDQ API and the AI models in SAP AI Core only through the destinations of your subaccount.

Your SAP BTP subaccount

Users

Work Zone site

CAP service

HDI container

Destinations

SAP S/4HANA

CDQ API

SAP AI Core

Your SAP BTP subaccount

Users

Work Zone site

CAP service

HDI container

Destinations

SAP S/4HANA

CDQ API

SAP AI Core

What You Get

CDQ delivers the Workbench as one MTA archive (.mtar file) with all Tools: Connections, Data Mirror Sync, Mappings, Business Partner Onboarding, Business Partner Insights and Business Partner Duplicates. The file name carries the version, for example cdq-workbench_<version>.mtar.

You deploy the archive into a Cloud Foundry space of your subaccount. It creates:

  • The application: the CAP service cdq-workbench-srv, which serves all Tools, and the database deployer cdq-workbench-db-deployer, which runs once per deployment and then stops.
  • The database container: the HDI container cdq-workbench-db, on an SAP HANA Cloud database you provide.
  • The user interface: six HTML5 applications, one per Tool, in the HTML5 Application Repository. Each carries the version of the archive.
  • The launchpad content: the Work Zone roles CDQ Workbench Admin and CDQ Workbench Data Steward, a catalog per role, the spaces Data Management and Administration with a page each, and a group per role for sites that show groups instead of spaces.
  • The role collections: CDQ Workbench Admin and CDQ Workbench Data Steward.
  • The destinations it needs itself: for SAP Build Work Zone and the HTML5 Application Repository.

CDQ Genius's knowledge of the Workbench comes with the archive, too: what the Tools are for and the Help texts of all their sections, in the version you deploy. There's nothing to set up for it.

What you set up yourself: the SAP HANA Cloud database, the AI models in SAP AI Core, the access to your S/4HANA system, the destinations, the SAP Build Work Zone site, and the role assignments. Each one is a step below. The full list of what the archive creates is in Reference.

Data Flow and Data Protection

The Workbench moves business partner data between your S/4HANA system and CDQ, sends the conversations with CDQ Genius to the AI model of the connection, and keeps some of this data in its own database. Every flow starts from a Tool and goes through a destination of your subaccount.

Between S/4HANA and CDQ

DataFromToDestinationWhat for
Business partners: names, addresses, identifiers, bank accounts, tax numbersS/4HANACDQ Data MirrorS/4HANA, CDQ APIData Mirror Sync keeps the Data Mirror current, so CDQ can monitor the records.
Products: the complete S/4HANA record with number and English descriptionS/4HANACDQ Data MirrorS/4HANA, CDQ APIData Mirror Sync, for a sync job of products.
CDQ's updates to the business partners, in your S/4HANA values, compared with S/4HANACDQ Data Mirror and S/4HANAWorkbench databaseCDQ API, S/4HANAData Mirror Sync gets them; Business Partner Insights shows them for a decision.
The pairs CDQ's duplicate monitor finds in the Data Mirror, and the records of each group as S/4HANA has them, with their open purchase and sales orders and last postingCDQ Data Mirror and S/4HANAWorkbench databaseCDQ API, S/4HANABusiness Partner Duplicates shows them for a decision.
New and changed business partnersWorkbenchS/4HANAS/4HANABusiness Partner Onboarding, Business Partner Insights and Business Partner Duplicates, only after a user's confirmed action.

Company data, Customizing and the transformations

DataFromToDestinationWhat for
Questions about companies, with the name, address and identifiers of what the user has openWorkbenchCDQ Genius and CDQ's reference dataCDQ APICDQ Genius and Business Partner Onboarding find and check company data.
Companies found at CDQ, turned into your S/4HANA values by CDQ's transformationCDQWorkbenchCDQ APIBusiness Partner Onboarding fills a request with them.
Business partners: the data a change request starts with; S/4HANA search results and the business partner or update the user has openS/4HANAWorkbench databaseS/4HANABusiness Partner Onboarding prepares the change; CDQ Genius works with the data, and the conversation keeps it.
Customizing values: the keys and names of your countries/regions, regions, legal forms, tax number categories and identification typesS/4HANAWorkbench databaseS/4HANAMappings keeps the values it read last and compares CDQ's values with them; Business Partner Onboarding reads them live for its value helps and checks requests against them.
The transformations of each connection: one data transformation definition per transformation (CDQ → S/4HANA, and S/4HANA → CDQ for each data source of the connection), each with the field rules of its Workbench standard, CDQ's standard values aligned with your Customizing, and your customer-specific values and field rulesWorkbenchYour CDQ workspaceCDQ APIThe Workbench writes them at every start and every activation in Mappings, and assigns each S/4HANA → CDQ definition to its data source. CDQ then reads every record Data Mirror Sync sends with the definition of its data source, and transforms every company the Workbench takes from CDQ with the CDQ → S/4HANA definition.
The name of a new data source an admin adds in MappingsWorkbenchCDQ Data MirrorCDQ APIMappings creates the data source, with its transformation's definition, so that Data Mirror Sync can send into it.
Up to 50 records of the Data Mirror: business partners as CDQ holds them, or the S/4HANA records stored with the records of a transformation's data sourcesCDQ Data MirrorCDQ's transformation, then the Workbench databaseCDQ APIMappings simulates what the draft of a transformation changes.

To the AI model

DataFromToDestinationWhat for
The conversation: the user's messages, CDQ Genius's answers, and what the Tool's functions returned, such as S/4HANA search results, the fields of the open request, update or value mapping, the records of a run or a duplicate group, and the state of the connection and its jobs; the user's roles; the Workbench's own texts about its Tools and their HelpWorkbenchAI model in SAP AI CoreAI modelThe AI model writes CDQ Genius's answers and decides which functions of the Tool to use.

To CDQ. Data Mirror Sync sends only the records a sync job selects: one kind of S/4HANA record (business partners or products), filtered by the job's conditions, into one data source of the Data Mirror. There, a record is identified by its data source and its S/4HANA number, so sending it again updates it. A job can also delete records from the Data Mirror that no longer exist in S/4HANA. CDQ Genius gets through the CDQ API what the user asks and the company data it needs to answer. Business partner data crosses between S/4HANA and CDQ only through CDQ's transformation, with the data transformation definitions the Workbench keeps for each connection: every company the Workbench takes from CDQ with the connection's CDQ → S/4HANA definition, and every record Data Mirror Sync sends with the S/4HANA → CDQ definition of its data source. The Workbench writes them into the CDQ workspace of the destination's API key, at every start and every activation in Mappings, when they changed. In the Data Mirror, Mappings creates the data sources admins add as new ones, and gives or removes their definition; it deletes no data source and no record. A simulation in Mappings sends business partners of the Data Mirror to CDQ's transformation and gets them back; CDQ saves nothing of it. Business Partner Duplicates doesn't send its decisions to CDQ.

To the AI model. The AI model runs in SAP AI Core, under your SAP AI Core contract. Where it runs depends on the model: Anthropic's models, for example, run on Amazon Bedrock, and Mistral's models are run by SAP on SAP AI Core itself. CDQ Genius works through the Tool's functions as the user, so it gets only what the user may see in that Tool; one exception, for every user in every Tool, is a read-only summary of the connection's state: the checks of its systems, the jobs' last runs, and the number of values missing in Customizing. The AI model never writes to S/4HANA. Only a user's confirmed action in a Tool does.

In the Workbench database. The HDI container holds the data below: for each kind, what of it is copied from S/4HANA, and how long it's kept. What a Tool only shows from S/4HANA, such as the list of business partners in Business Partner Onboarding, is read live and not kept.

Set up by admins:

  • Connections: the names of their destinations and the results of their checks, including the number of records of each S/4HANA object. No URLs, users, passwords or API keys, and no S/4HANA records. A connection is kept until an administrator deletes it. A connection that a sync job, an insights job or an open request uses can't be deleted.
  • Jobs of Data Mirror Sync and their runs: the settings of the sync jobs and insights jobs, and of each run its settings, progress and counts. A sync run also keeps the records CDQ rejected, with the data that was sent: a copy of the S/4HANA record. And it keeps the records it deleted from the Data Mirror, with the reason. Runs are deleted with their records after 90 days, except the last run of each job, which is kept without a time limit. A job is kept until an administrator deletes it.
  • Transformations of Mappings: per connection, its transformations with their field rules and value mappings (CDQ's values and the values of your Customizing, with the value the other side receives), the customer-specific values and field rules of an admin's draft, and who edits a draft since when. Every activation is a version, with the customer-specific values and field rules, who activated it and when; versions are never deleted. The Workbench also keeps the ID and name of each data transformation definition it writes, the error of its last write, if any, and the data sources of each connection, with their names and IDs as CDQ has them, and another definition one of them has in CDQ. The transformation of a data source an admin removed is kept with its versions, for when the data source is added again. From S/4HANA, Mappings keeps the Customizing values read last, replaced when it reads them again; from CDQ, CDQ's values with their names. The last simulation of each transformation keeps, for each changed field, the record's number and name and both values; the next simulation replaces it.

Worked on by data stewards:

  • CDQ's updates and the decisions on them. From S/4HANA, an update keeps the business partner's number, name, country and city, and the S/4HANA value of each field that differs, as of the comparison. A decision keeps who applied or rejected the update, when, which fields, the reason given, and S/4HANA's message if it refused. A job that applied many updates keeps, for each update, the business partner's number and name and what happened. Updates, their decisions and the jobs that applied them are deleted 12 months after CDQ created the update, decided or not.
  • Requests for new and changed business partners: their data (names, legal form, grouping, address with e-mail, phone and website, roles, tax numbers and identification numbers), who created the request, who sent it to S/4HANA and when, and the reason for sending despite a possible duplicate. A change request starts with the business partner's data from S/4HANA, and keeps when S/4HANA last changed the business partner. Open requests are kept until a data steward sends or deletes them. Sent requests are kept without a time limit: they can't be changed or deleted.
  • Duplicate groups of Business Partner Duplicates: CDQ's pairs with their scores, and the groups built from them, with a copy of each record as S/4HANA had it (number, name, address, VAT number, roles, whether it's blocked or marked for archiving) and, once read, its open purchase and sales orders and last posting. The decisions keep the survivor's values, CDQ Genius's proposal, who applied them to S/4HANA, when, and S/4HANA's message. Open groups are built anew by each run of the duplicates job; resolved groups and their decisions are kept without a time limit.

Per user:

  • Conversations with CDQ Genius: one per user, Tool and connection, in all six Tools, with the user's messages, CDQ Genius's answers, and the data the AI model worked with. From S/4HANA, depending on the Tool, that's search results, the data of a business partner whose page the user had open, an update's S/4HANA values, Customizing values, the records of a run or a duplicate group, and whether S/4HANA has a business partner the user asked about. A conversation is deleted when its user starts a new one in that Tool; until then, it's kept without a time limit.
  • The connection each user chose in a Tool's title, kept until the user chooses another one.

Users are recorded by their user ID from the identity provider.

Credentials live only in the destinations of your subaccount: the S/4HANA user, the CDQ API key and the SAP AI Core service key. The Tools only know the destinations' names.

Who sees what. Users with CDQ Workbench Admin see the connections, the jobs of Data Mirror Sync with their runs and records, and the transformations of Mappings with their versions and simulations. Users with CDQ Workbench Data Steward see the business partners of S/4HANA, all requests sent to S/4HANA, CDQ's updates and the duplicate groups. Every user sees only their own conversations with CDQ Genius. See Roles.

Prerequisites

Entitlements in the Workbench's subaccount. In the cockpit: Entitlements.

Service (technical name)PlanWhat forRequired
Cloud Foundry Runtime (APPLICATION_RUNTIME)MEMORYMemory for the CAP service and the database deployerRequired. Size it for the memory of both applications (see Settings of the extension descriptor).
SAP HANA Schemas & HDI Containers (hana)hdi-sharedThe Workbench's HDI containerRequired
SAP Build Work Zone, standard edition (SAPLaunchpad)The plan for your workloadThe launchpadRequired, unless the subaccount subscribes to it already
Authorization and Trust Management (xsuaa)applicationLog-on and rolesRequired
Destination (destination)liteDestinations to S/4HANA, CDQ and SAP AI CoreRequired
Connectivity (connectivity)liteCalls to S/4HANA through the Cloud ConnectorRequired (the archive always creates it)
HTML5 Application Repository (html5-apps-repo)app-host, app-runtimeThe Tools' user interface and the launchpad contentRequired

Entitlements where the database and SAP AI Core run: the Workbench's subaccount, or a shared services subaccount (see Choose a Landscape).

Service (technical name)PlanWhat forRequired
SAP HANA Cloud (hana-cloud)The plan and size for your workloadThe databaseRequired, unless you use an existing database
SAP HANA Cloud tools (hana-cloud-tools)toolsSAP HANA Cloud Central, to manage the database and its instance mappingRequired where the database runs
SAP AI Core (aicore)extendedThe AI models of CDQ Genius. Only extended includes the generative AI hub.Required for CDQ Genius, unless you use an existing instance

The archive isn't tied to a region (see Deploy the MTA archive).

Systems and accounts

WhatDetails
SAP S/4HANA Cloud Public EditionA communication user, a communication system, and the communication arrangements SAP_COM_0008 (Business Partner, Customer and Supplier Integration) and SAP_COM_0009 (Product Integration). For the Customizing values, the custom communication scenario YY1_CDQ_WORKBENCH with its arrangement. Optional, for the activity in Business Partner Duplicates: SAP_COM_0053 (Purchase Order Integration), SAP_COM_0109 (Sales Order Integration) and SAP_COM_0057 (Supplier Invoice Integration). See Open the SAP S/4HANA system.
SAP S/4HANA (on-premise) or SAP S/4HANA Cloud Private EditionA technical user authorized for the OData services API_BUSINESS_PARTNER, API_PRODUCT_SRV and the five services of the Customizing values, optionally for reading API_PURCHASEORDER_PROCESS_SRV, API_SALES_ORDER_SRV and API_SUPPLIERINVOICE_PROCESS_SRV, and the Cloud Connector connected to the subaccount.
CDQA CDQ API key for your CDQ organization, enabled for CDQ Genius, of a CDQ workspace that has a Data Mirror. The Workbench works with that Data Mirror: it finds it through the key. You get the key from CDQ, and CDQ sets up the workspace's Data Mirror.
Identity providerA tenant of SAP Cloud Identity Services (Identity Authentication) your business users log on through. SAP Build Work Zone needs the trust to it.
AdministratorsA subaccount administrator; a Space Developer in the Cloud Foundry space; Launchpad_Admin in SAP Build Work Zone; for the destinations, the role collection Destination Administrator; for the S/4HANA steps, an S/4HANA administrator.

Tools on your machine

  • The SAP BTP command line interface btp.
  • The Cloud Foundry command line interface cf with the MultiApps plugin (for cf deploy).
  • curl and jq, for the SAP AI Core steps by command.

You can do every step except the deployment in the SAP BTP cockpit instead. SAP Build Work Zone is set up in its site manager only.

Choose a Landscape

Make four decisions before you start. Each one changes some of the steps below.

How the S/4HANA system is reached

LandscapeWhenWhat changes
Directly over the internetSAP S/4HANA Cloud Public EditionThe S/4HANA destination has the proxy type Internet and the API host of the system.
Through the Cloud ConnectorSAP S/4HANA on-premise, and SAP S/4HANA Cloud Private EditionThe Cloud Connector exposes the system to the subaccount; the destination has the proxy type OnPremise and the Cloud Connector's virtual host.

Where SAP HANA Cloud and SAP AI Core run

LandscapeWhenWhat changes
In the Workbench's subaccountOne subaccount runs the Workbench, and nothing else needs the database or SAP AI Core.You create both in the subaccount.
In a shared services subaccountSeveral subaccounts (say, a test and a production subaccount) use one database and one SAP AI Core. They share capacity, maintenance and, for SAP AI Core, the rate limits.The database is mapped into each Cloud Foundry space that uses it (instance mapping, only within one region); each space gets its own HDI container. In SAP AI Core, each subaccount gets its own resource group with its own model deployments, and its own service key.
An existing instance of yoursYou already run SAP HANA Cloud or SAP AI Core.You map the existing database into the space, and add a resource group for the Workbench to your SAP AI Core. Its other mappings, resource groups and deployments stay as they are.

An HDI container is never shared: every subaccount, and every space, gets its own.

Which identity provider your users come from

Your business users log on through your tenant of SAP Cloud Identity Services (Identity Authentication). Put the users of each Workbench role into one user group there, new or existing. You then map both role collections of the role to that group (see Assign the role collections). You can also assign the role collections to single users instead.

Which SAP Build Work Zone site shows the Tools

SiteWhenWhat changes
A new siteThe Workbench gets a launchpad of its own.You create the site, assign the Workbench's roles to it, and set its view mode to Spaces and Pages - New Experience. Its role Everyone stays empty.
An existing siteYour users already have a launchpad, and the Tools should join it.You add the Workbench's roles to the site; its other roles and content, and what Everyone has, stay as they are. In the view mode Spaces and Pages - New Experience, the Tools appear in the spaces Data Management and Administration, in this order. In the view mode Groups, they appear in the groups Data Management and Administration, which SAP sorts by title, so Administration comes first. The view mode is a setting of the whole site, so changing it changes how the site shows its other content, too.

Install

The commands use placeholders in angle brackets, like <subaccount ID>: replace them with your values. btp list accounts/subaccount shows the IDs of your subaccounts.

Check the entitlements

The subaccount needs the entitlements from Prerequisites, a Cloud Foundry space to deploy into, and the trust to your identity provider. In a subaccount that runs other applications, much of it is there already: check it, and add only what's missing.

By hand in the SAP BTP cockpit:

  1. In your global account, open the subaccount, or create one under Account Explorer → Create → Subaccount. Pick the region carefully: you can't change it later, and the database mapping only works within one region.
  2. Entitlements → Edit: add the plans from Prerequisites that the subaccount doesn't have yet. Where it has a plan already, for example Cloud Foundry Runtime memory for other applications, raise its quota by what the Workbench needs, and keep the rest.
  3. Overview → Cloud Foundry Environment → Enable Cloud Foundry, unless the subaccount has it already. Use an org name without blanks.
  4. Create a space, for example prod, and add the administrators who deploy as Space Developer (Members). Give the space a name without blanks: it becomes part of the Workbench's XSUAA application name, cdq-workbench-<space>.
  5. Security → Trust Configuration → Establish Trust: pick your tenant of Identity Authentication. If the subaccount trusts that tenant already, use that trust and leave it as it is. A new trust needs a name that no trust of your global account has: trusts of the global account, for example one for platform users, show up in every subaccount, and a second trust of the same name is refused.

Here's what the entitlements turn into. Once the Workbench is deployed, Services → Instances and Subscriptions of your subaccount looks like this:

The SAP BTP cockpit's Instances and Subscriptions of a subaccount with the Workbench: six service instances with their plans, and the Cloud Foundry environment

The tabs on top lead to the subscriptions, the instances and the environments of the subaccount. Under Subscriptions you find SAP Build Work Zone, standard edition, once you've subscribed. The table Instances lists each service instance with its Service, Plan, the space it belongs to (Scope), its Credentials, its Instance Status and its Last Operation Status. The six rows are the Workbench's instances: Authorization and Trust Management with application, Connectivity with lite, SAP HANA Schemas & HDI Containers with hdi-shared, Destination with lite, and the HTML5 Application Repository with app-host and app-runtime. These are exactly the plans to entitle. The SAP HANA Cloud database itself isn't listed when it runs in another subaccount and is mapped into the space: then only the HDI container on it shows up. Below, Environments shows the Cloud Foundry environment with its org.

By command:

# Log on to your global account (asks for user and password)
btp login --url https://cli.btp.cloud.sap --subdomain <global account subdomain>

# Assign an entitlement to the subaccount. Plans without a quantity take --enable,
# plans with a quantity take --amount; the wrong one fails with error 12003.
# --amount sets the subaccount's whole quota of the plan: if other applications use it
# already, give their amount plus the Workbench's.
btp assign accounts/entitlement --to-subaccount <subaccount ID> --for-service hana --plan hdi-shared --enable
btp assign accounts/entitlement --to-subaccount <subaccount ID> --for-service APPLICATION_RUNTIME --plan MEMORY --amount <GB>
btp assign accounts/entitlement --to-subaccount <subaccount ID> --for-service SAPLaunchpad --plan <plan> --enable

# Only if the subaccount has no Cloud Foundry environment yet: create it, the org is named <org>
btp create accounts/environment-instance --subaccount <subaccount ID> --environment cloudfoundry \
  --service cloudfoundry --plan standard --display-name <org> --parameters '{"instance_name": "<org>"}'

# Only if the subaccount doesn't trust your Identity Authentication tenant yet (btp list security/trust):
# the tenant, e.g. abcd1234.accounts.ondemand.com. The name must differ from the trusts of the
# global account, which every subaccount inherits.
btp create security/trust --subaccount <subaccount ID> --idp <tenant host> --name "Identity Authentication (business users)"

btp list accounts/environment-instance --subaccount <subaccount ID> shows the org's API endpoint. Then create the space and give the administrators the space role:

cf login -a <API endpoint> -o <org>
cf create-space <space> -o <org>
# --origin: the identity provider of the user; sap.ids is the SAP ID service
cf set-space-role <user> <org> <space> SpaceDeveloper --origin sap.ids

Check: btp list security/trust --subaccount <subaccount ID> lists your Identity Authentication tenant, and cf target -o <org> -s <space> works.

Provide the database

The Workbench keeps its data in an HDI container on SAP HANA Cloud. The deployment creates the container in the space, so the space has to see an SAP HANA Cloud database.

In the Workbench's subaccount, by hand: subscribe to SAP HANA Cloud (plan tools) under Services → Service Marketplace, open SAP HANA Cloud Central, and create an SAP HANA database. Then add an instance mapping to your org and space, as in the shared case below. Pick the plan and size for your workload. Under the allowed connections, the Workbench only needs SAP BTP: allow other IP addresses only for your own tools.

By command, the parameters go in a file, including the password of the database administrator DBADMIN. That way the password doesn't show on the command line.

btp subscribe accounts/subaccount --subaccount <subaccount ID> --to-app hana-cloud-tools --plan tools

# <parameters file>, e.g. hana.json:
# {"data": {"edition": "cloud", "systempassword": "<password>", "whitelistIPs": [],
#           "memory": <GB>, "vcpu": <vCPUs>, "storage": <GB>}}
btp create services/instance --subaccount <subaccount ID> --offering-name hana-cloud \
  --plan-name <plan> --name <database name> --parameters <parameters file>

The database takes about 15 minutes. btp list services/instance --subaccount <subaccount ID> shows it as ready when it's done.

In a shared services subaccount, or an existing database: map the database into the space you deploy to.

  1. Get the GUIDs of the org and the space: cf org <org> --guid and cf space <space> --guid.
  2. In SAP HANA Cloud Central of the subaccount where the database runs: the database → Manage Configuration → Instance Mapping → add a mapping with the environment Cloud Foundry, the org GUID and the space GUID. Leave out the space GUID, and all spaces of the org can use the database. Keep the mappings that are there: other subaccounts and spaces use the database through them.

The mapping only works when both subaccounts are in the same region. If the space sees more than one database, name the Workbench's in the extension descriptor (database_id, see Reference).

Check: cf marketplace -e hana in the space lists the plan hdi-shared.

Provide the AI models

CDQ Genius reaches its AI model through SAP AI Core, so the model is provided and billed through SAP BTP. You deploy each model you want to offer in a resource group, and later create one destination per model.

  1. The instance. If you use an existing instance of SAP AI Core, skip this step: the Workbench gets its own service key and resource group in it, and its other resource groups and deployments stay as they are. Otherwise, in the subaccount where SAP AI Core runs, create an instance of SAP AI Core with the plan extended. By command:

    btp create services/instance --subaccount <subaccount ID> --offering-name aicore --plan-name extended --name <AI Core name>
  2. A service key for each subaccount that uses the instance, so you can renew or revoke each one's key on its own. In the cockpit: the instance → Create service key. By command:

    btp create services/binding --subaccount <subaccount ID> --instance-name <AI Core name> --name <key name>
    # show the key: clientid, clientsecret, url, and serviceurls.AI_API_URL
    btp get services/binding --subaccount <subaccount ID> --name <key name>
  3. A resource group for the Workbench's subaccount, and one deployment per model in it. SAP AI Core has no btp or cf commands for these: they're calls of the SAP AI Core API with the service key.

    # Values of the service key
    AI_API_URL=<serviceurls.AI_API_URL>
    TOKEN=$(curl -s -u "<clientid>:<clientsecret>" "<url>/oauth/token?grant_type=client_credentials" | jq -r .access_token)
    
    # The resource group, e.g. cdq-workbench; it's ready when its status is PROVISIONED
    curl -X POST "$AI_API_URL/v2/admin/resourceGroups" -H "Authorization: Bearer $TOKEN" \
      -H "Content-Type: application/json" -d '{"resourceGroupId": "<resource group>"}'
    curl "$AI_API_URL/v2/admin/resourceGroups/<resource group>" -H "Authorization: Bearer $TOKEN"
    
    # The models this instance offers, with their executables (the models depend on the region)
    curl "$AI_API_URL/v2/lm/scenarios/foundation-models/models" -H "Authorization: Bearer $TOKEN" \
      -H "AI-Resource-Group: <resource group>" | jq -r '.resources[] | "\(.model) \(.executableId)"'
    
    # A configuration for one model: it returns the configuration's id
    curl -X POST "$AI_API_URL/v2/lm/configurations" -H "Authorization: Bearer $TOKEN" \
      -H "AI-Resource-Group: <resource group>" -H "Content-Type: application/json" -d '{
        "name": "<model>", "scenarioId": "foundation-models", "executableId": "<executable>",
        "parameterBindings": [{"key": "modelName", "value": "<model>"}, {"key": "modelVersion", "value": "latest"}]}'
    
    # The deployment of that configuration
    curl -X POST "$AI_API_URL/v2/lm/deployments" -H "Authorization: Bearer $TOKEN" \
      -H "AI-Resource-Group: <resource group>" -H "Content-Type: application/json" \
      -d '{"configurationId": "<configuration id>"}'

    Repeat the configuration and the deployment for each model. The executable is aws-bedrock for Anthropic's models and aicore-mistralai for Mistral's models, as the model list shows.

Check: a few minutes later, each deployment is RUNNING. Note its deploymentUrl for the destination:

curl "$AI_API_URL/v2/lm/deployments" -H "Authorization: Bearer $TOKEN" -H "AI-Resource-Group: <resource group>" \
  | jq -r '.resources[] | "\(.configurationName) \(.status) \(.deploymentUrl)"'

If you create a deployment again, it gets a new URL, so update its destination.

Open the SAP S/4HANA system

The Tools read and write business partners and read products through the OData services API_BUSINESS_PARTNER and API_PRODUCT_SRV, with one technical user. Sync runs work in the background without a logged-on user, so the user's own identity can't be passed on. The same user reads your Customizing values through five read-only services: Mappings compares CDQ's values with them, and Business Partner Onboarding offers them in its value helps and checks requests against them.

Business partners and products, SAP S/4HANA Cloud Public Edition, by the S/4HANA administrator:

  1. Maintain Communication Users: create a communication user.
  2. Communication Systems: create a system, for example CDQ_WORKBENCH, with a Logical System and a Business System (for example CDQWORKBENCH; SAP_COM_0008 needs them). Add the communication user under Users for Inbound Communication.
  3. Communication Arrangements: create one arrangement per scenario with this system: SAP_COM_0008 (Business Partner, Customer and Supplier Integration; the Tools also create and change business partners with it) and SAP_COM_0009 (Product Integration). You can switch off their outbound services.

Optional: the activity of business partners. Business Partner Duplicates shows for each record of a duplicate group its open purchase orders, its open sales orders and the posting date of its last supplier invoice, so that users see which record is really in use. It reads them on demand and read only, through three more APIs with the same technical user. They're optional: without them, the Workbench works, and only the activity isn't shown. The connection's page in Connections shows in Optional S/4HANA APIs which of them the user may use.

APIWhat forSAP S/4HANA Cloud Public Edition: communication arrangement
API_PURCHASEORDER_PROCESS_SRVOpen purchase orders of a supplierSAP_COM_0053 (Purchase Order Integration)
API_SALES_ORDER_SRVOpen sales orders of a customerSAP_COM_0109 (Sales Order Integration)
API_SUPPLIERINVOICE_PROCESS_SRVLast posting of a supplier invoiceSAP_COM_0057 (Supplier Invoice Integration)

In SAP S/4HANA Cloud Public Edition, the S/4HANA administrator creates one communication arrangement per scenario with the communication system of the business partners, as in step 3 above; the Workbench only reads, so you can switch off their outbound services. In SAP S/4HANA on-premise and SAP S/4HANA Cloud Private Edition, the technical user needs read authorization for the three services, and the Cloud Connector allows their paths (below). Afterwards, choose Refresh on the connection in Connections.

Business partners and products, SAP S/4HANA on-premise and SAP S/4HANA Cloud Private Edition:

  1. The S/4HANA administrator creates a technical user that may read API_BUSINESS_PARTNER and API_PRODUCT_SRV, and create and change business partners with API_BUSINESS_PARTNER.
  2. The Cloud Connector administrator connects the Cloud Connector to the subaccount, adds the S/4HANA system as an HTTP(S) backend, and allows the paths /sap/opu/odata/sap/API_BUSINESS_PARTNER, /sap/opu/odata/sap/API_PRODUCT_SRV and /sap/opu/odata/sap/YY1_CDQ_ (the Customizing values); for the optional activity of business partners also /sap/opu/odata/sap/API_PURCHASEORDER_PROCESS_SRV, /sap/opu/odata/sap/API_SALES_ORDER_SRV and /sap/opu/odata/sap/API_SUPPLIERINVOICE_PROCESS_SRV. If the Cloud Connector serves the subaccount, or the system, for other applications already, only add what's missing: the subaccount, the backend or the paths. Keep the backends and paths that are there.

Customizing values. No standard SAP API offers them, so the S/4HANA administrator exposes SAP's released CDS views as five read-only OData services, once per S/4HANA system. They go through the same destination and technical user as the business partners; nothing of it can write. Without them, Mappings can't compare CDQ's values with your Customizing, and the value helps of Business Partner Onboarding offer nothing; S/4HANA then checks the values only when a request is sent.

ServiceCustom CDS view (label)SAP viewElements
YY1_CDQ_COUNTRY_CDSYY1_CDQ_COUNTRY (CDQ Countries)I_CountryTextCountry, Language, CountryName, CountryShortName
YY1_CDQ_REGION_CDSYY1_CDQ_REGION (CDQ Regions)I_RegionTextCountry, Region, Language, RegionName
YY1_CDQ_LEGALFORM_CDSYY1_CDQ_LEGALFORM (CDQ Legal Forms)I_BusinessPartnerLegalFormTextLanguage, LegalForm, LegalFormShortName, LegalFormDescription
YY1_CDQ_TAXTYPE_CDSYY1_CDQ_TAXTYPE (CDQ Tax Number Categories)I_BusPartTaxTypeTextLanguage, BPTaxType, TaxTypeName
YY1_CDQ_IDTYPE_CDSYY1_CDQ_IDTYPE (CDQ Identification Types)I_BuPaIdentificationTypeBPIdentificationType, BPIdentificationCategory, IsBPOrganization

The names are fixed: the Workbench reads exactly these services.

In SAP S/4HANA Cloud Public Edition, the S/4HANA administrator needs the business catalogs Extensibility – Custom CDS Views (SAP_CORE_BC_EXT_CCV) and Extensibility – Custom Communication Scenarios (SAP_CORE_BC_EXT_CCS). In a three-system landscape, steps 1 to 3 are done in the customizing tenant and reach the test and production systems by Export Software Collection; step 4 is done in each system the Workbench reads.

  1. Custom CDS Views → Create, once per row of the table: the label and the name (YY1_ is set, enter for example CDQ_LEGALFORM), scenario External API. As primary data source, filter Name with the SAP view and select it. Under Elements → Add → Elements, select the elements of the table one by one. Check, then Publish.
  2. Custom Communication Scenarios → New: ID CDQ_WORKBENCH (it becomes YY1_CDQ_WORKBENCH), description CDQ Workbench customizing values. Under Inbound Services → Add, add the five YY1_CDQ_…_CDS services.
  3. Save & Publish. Publishing takes a few minutes.
  4. Communication Arrangements → New: scenario YY1_CDQ_WORKBENCH, and the communication system of the business partners. Its user is taken over. Save.

In SAP S/4HANA on-premise and SAP S/4HANA Cloud Private Edition, the same key user apps create the views and the scenario; without them, a developer exposes the same released views under the same names as read-only OData V2 services. The technical user needs read authorization for them.

If you also want to bring your Customizing closer to CDQ's reference data, see Prepare SAP S/4HANA for CDQ's Reference Data. It's optional: where your Customizing differs, Mappings fits CDQ's values to it.

Check: on-premise only: in the cockpit, Connectivity → Cloud Connectors shows the Cloud Connector as connected. With the technical user, GET <S/4HANA API host>/sap/opu/odata/sap/YY1_CDQ_LEGALFORM_CDS/YY1_CDQ_LEGALFORM/$count?$filter=Language eq 'E' answers with the number of legal forms. HTTP 403: the communication arrangement is missing; HTTP 404: the scenario isn't published yet. Whether the user can read business partners and products, and use the optional APIs, shows once the first connection is saved (see Check the installation).

Create the destinations

Destinations let the Workbench reach your systems without credentials of its own: you keep them in the subaccount, and the Tools only know their names. Create them in the cockpit: subaccount → Connectivity → Destinations → Create, with the settings from Reference.

  1. S/4HANA: one destination per S/4HANA system, not per API, for example S4HANA_PRODUCTION. For SAP S/4HANA Cloud, registering the system under System Landscape → Systems can create it, too.
  2. CDQ API: one per CDQ API key, for example CDQ_API. The key decides the Data Mirror: the one of the key's CDQ workspace.
  3. AI models: one per model deployment from Provide the AI models. AI_CORE_CLAUDE_HAIKU is the Workbench's default model, used by connections without an AI model of their own. Give your default model's destination this name, or change the default in the extension descriptor (genius.model.destination, see Reference).
  4. SAP Build Work Zone runtime: cdq-workbench-rt, with the URL of your SAP Build Work Zone runtime, https://<subaccount subdomain>.launchpad.cfapps.<region>.hana.ondemand.com (the host without .dt). The content provider uses it in Set up the launchpad.

The deployment creates cdq-workbench-cdm itself. Once all are there, the subaccount's destinations look like this:

The SAP BTP cockpit's Destinations of a subaccount: the destinations of the S/4HANA system, the CDQ API, three AI models, cdq-workbench-rt and cdq-workbench-cdm

On the left, the cockpit shows the level the destinations belong to: the subaccount itself, where you have read and write access. On the right is the list of the subaccount's destinations, with Search, Create and Export above it, and the columns Name, Type, Proxy Type, Labels and Description. Here you see one destination per AI model (AI_CORE_…), the CDQ API (CDQ_API), the S/4HANA system, the runtime destination cdq-workbench-rt and the design-time destination cdq-workbench-cdm from the deployment. All have the type HTTP and the proxy type Internet; an S/4HANA destination through the Cloud Connector would show OnPremise. Choose a row to open its settings.

Open the CDQ API destination to check it:

The SAP BTP cockpit with the destination CDQ_API open: its main properties and its authentication

On top are the destination's actions: Edit, Export, Duplicate, Delete and Check Connection. Destination Details says how it was created and when it was last changed. Main Properties shows the Name, the Type HTTP, the Description, the Proxy Type Internet and the URL https://api.cdq.com; Authentication says NoAuthentication, because the API key goes in a header. Further down the page come the additional properties, not shown here because they hold the API key:

  • URL.headers.X-API-KEY: your CDQ API key. Every connection with this destination works with the Data Mirror of the key's CDQ workspace. A workspace has at most one Data Mirror, and the Workbench gets it from CDQ, so you don't enter it anywhere.
  • Nothing else: the Workbench creates the data transformation definitions of each connection in the key's CDQ workspace itself, names them after the connection and the transformation (CDQ Workbench · <connection> · CDQ → S/4HANA · Business Partners, and one CDQ Workbench · <connection> · S/4HANA → CDQ · <data source> per data source), and writes them at every start and every activation in Mappings (How It Works of Mappings).

Destinations that pass on the logged-on user don't work: OAuth2SAMLBearerAssertion, OAuth2UserTokenExchange, OAuth2JWTBearer, SAMLAssertion, PrincipalPropagation, and Forward Auth Token. Sync runs and other background work run without a logged-on user.

Check: Check Connection in the cockpit shows whether a destination's host can be reached. Whether the Workbench can work with it shows when an administrator saves a connection.

Deploy the MTA archive

The deployment creates the Workbench in your Cloud Foundry space. Your subaccount's settings go in an MTA extension descriptor, so you never change the archive itself.

  1. Write the extension descriptor, for example cdq-workbench.mtaext, with the settings your subaccount needs (all optional; see Reference):

    _schema-version: "3.3"
    ID: cdq-workbench.production
    extends: cdq-workbench
    modules:
      - name: cdq-workbench-srv
        parameters:
          memory: <memory>
        properties:
          NODE_OPTIONS: --max-old-space-size=<heap in MB>
    resources:
      - name: cdq-workbench-db
        parameters:
          config:
            database_id: <database ID>

    ID is a name of your own for the extension. extends is always cdq-workbench, the ID of the archive.

  2. Log on to the space and deploy:

    # once: the MultiApps plugin, which adds cf deploy
    cf install-plugin -r CF-Community "multiapps"
    
    cf login -a <API endpoint> -o <org> -s <space>
    # -e: the extension descriptor; -f: abort a deployment of the same archive still in progress
    cf deploy cdq-workbench_<version>.mtar -e cdq-workbench.mtaext -f

The deployment creates the destination cdq-workbench-cdm with the HTML5 application runtime of your subaccount's region (https://html5-apps-repo-rt.<default domain>). On an extension landscape of SAP BTP (a Cloud Foundry API like api.cf.<region>-<number>.hana.ondemand.com), that host doesn't exist. Set the region's runtime instead, for example https://html5-apps-repo-rt.cfapps.<region>.hana.ondemand.com, with the parameter html5-runtime-url in the extension descriptor (see Reference).

Check in the cockpit: HTML5 Applications lists the Tools.

The SAP BTP cockpit's HTML5 Applications of a subaccount: the six Tools of the Workbench with their version and business solution

The list sits under the heading Managed Application Router provided by SAP Build Work Zone, standard edition: the Workbench has no application router of its own, the one of SAP Build Work Zone serves it. Each row is one Tool, with its Application Name (cdqconnections, cdqdatamirrorsync, cdqmappings, cdqbponboarding, cdqbpinsights, cdqbpduplicates), its Active Version and its Business Solution cdqworkbench.service. The active version is the version of the archive you deployed, so this is also where you see which version runs. Search and the filter of business solutions help in a subaccount with many applications.

Check by command:

  • cf apps shows cdq-workbench-srv as started, and cdq-workbench-db-deployer as stopped after its run.
  • cf services shows the instances listed under What the MTA creates.
  • btp list security/role-collection --subaccount <subaccount ID> lists CDQ Workbench Admin and CDQ Workbench Data Steward.

Assign the role collections

Each Workbench role exists twice under the same name: an XSUAA role collection for access to the data, and a Work Zone role collection for the tiles. A user always needs both. Otherwise the tile is missing, or the Tool says the user isn't authorized. Map both to one user group per role, so they can't drift apart.

Workbench roleXSUAA role collectionWork Zone role collection
CDQ Workbench AdminCDQ Workbench Admin~cdq_workbench_cdqWorkbenchAdmin
CDQ Workbench Data StewardCDQ Workbench Data Steward~cdq_workbench_cdqWorkbenchDataSteward

The XSUAA role collections are there since the deployment. The Work Zone role collections appear when the Workbench's roles are assigned to your site in Set up the launchpad: map the XSUAA ones now, and the Work Zone ones at the end of that step, the same way.

By hand: Security → Role Collections, search for Workbench, open the collection → Edit → User Groups: add the group of your Identity Authentication tenant with its identity provider (not the Default identity provider). You can use new groups or existing ones; the groups' other role collections and members stay as they are. Once both steps are done, the list looks like this:

The SAP BTP cockpit's Role Collections, searched for Workbench: the two XSUAA and the two Work Zone role collections of the Workbench, with their user groups

The search for Workbench leaves the Workbench's four role collections. The two whose names start with ~cdq_workbench_ are the Work Zone role collections, with the title of their Work Zone role as the description. CDQ Workbench Admin and CDQ Workbench Data Steward are the XSUAA role collections: their Roles column shows the role each one holds (Admin, DataSteward), and their description reminds you to assign them together with the Work Zone role of the same name. The User Groups column shows the groups mapped to each collection: every Workbench role should show the same groups in both of its collections. The arrow at the end of a row opens the collection, where Edit lets you change its user groups.

By command:

# The group's technical name in Identity Authentication (not its display name), e.g. CDQ_WORKBENCH_ADMIN
btp assign security/role-collection "CDQ Workbench Admin" --subaccount <subaccount ID> \
  --to-group <admin group> --of-idp <origin key>
btp assign security/role-collection "CDQ Workbench Data Steward" --subaccount <subaccount ID> \
  --to-group <data steward group> --of-idp <origin key>
# after Set up the launchpad: the Work Zone role collections, to the same groups
btp assign security/role-collection "~cdq_workbench_cdqWorkbenchAdmin" --subaccount <subaccount ID> \
  --to-group <admin group> --of-idp <origin key>
btp assign security/role-collection "~cdq_workbench_cdqWorkbenchDataSteward" --subaccount <subaccount ID> \
  --to-group <data steward group> --of-idp <origin key>

--of-idp is the origin key of your Identity Authentication trust (Security → Trust Configuration). Then add the users to the groups in the administration console of Identity Authentication. To assign the role collections to single users instead, use --to-user <e-mail> in place of --to-group.

Check: a user of each group logs out, logs on to the site again, and sees the Tools of their role (see Check the installation). Roles are read at log-on.

Set up the launchpad

SAP Build Work Zone shows the Tools as tiles. It reads the Workbench's launchpad content from the deployment as a content provider: you add the provider, assign its roles to a site, and set the site's view mode. SAP Build Work Zone has no command line for this, so you work in its site manager.

  1. Subscribe to SAP Build Work Zone, standard edition, unless the subaccount has it already, and give yourself Launchpad_Admin. By hand: Services → Service Marketplace → SAP Build Work Zone, standard edition → Create; then Security → Users → your user → assign the role collection Launchpad_Admin. By command:

    btp subscribe accounts/subaccount --subaccount <subaccount ID> --to-app SAPLaunchpadSMS --plan <plan>
    # --of-idp: the origin key of your Identity Authentication trust (Security → Trust Configuration)
    btp assign security/role-collection Launchpad_Admin --subaccount <subaccount ID> \
      --to-user <e-mail> --of-idp <origin key> --create-user-if-missing
  2. The content provider: open the site manager (Instances and Subscriptions → SAP Build Work Zone, standard edition → Go to Application), then Channel Manager → Add → Content Provider:

    • Title: CDQ Workbench; ID: CDQ_Workbench. The ID becomes part of the names of the Work Zone role collections (~cdq_workbench_…).
    • Design-time destination: cdq-workbench-cdm. Runtime destination: cdq-workbench-rt.
    • Content granularity: roles and related content. Add all content items automatically. No provisioning with Identity Provisioning. Include the group and catalog assignments to roles: without them, the tiles are missing.

    Save, and wait until the provider is ready:

    The site manager's Channel Manager: the content provider CDQ Workbench with its destinations and the status Updated, next to the channel HTML5 Apps

    Content Channels lists the channels of your subaccount, each with its Title & Description, ID, Destinations / Source, Last Modified, Status and Actions. The row CDQ Workbench is the Workbench's content provider: its ID CDQ_Workbench, the design-time destination cdq-workbench-cdm and the runtime destination cdq-workbench-rt. While it loads the content, its status shows the progress; Updated means the content is there. Among the actions, the circular arrow is Update content, which you use after every update of the Workbench. The channel HTML5 Apps appears in every subaccount by itself and lists the same applications; the Workbench doesn't need it.

  3. The roles: Content Manager shows what the provider brought.

    The site manager's Content Manager: the roles CDQ Workbench Data Steward and CDQ Workbench Admin of the channel CDQ Workbench, and the local role Everyone

    The list All Items shows each content item with its Type, Title, Description, ID, Channel and Last Modified. CDQ Workbench Data Steward and CDQ Workbench Admin come from the channel CDQ Workbench, with the IDs of the Work Zone role collections. Each brings its Tools, its catalog, its space with its page, and its group. Everyone, with the channel Local, is part of every subaccount: whatever it holds, every user of the site sees. Give it no Workbench content, so nobody sees a tile without a Workbench role.

  4. The site: use an existing site, or create one under Site Directory → Create Site, for example CDQ Workbench. Then assign the Workbench's roles to it: in Site Directory, open the site's Site Settings, then Role Assignments in the menu on the left → Edit. Add CDQ Workbench Admin and CDQ Workbench Data Steward, or, on the tab Content Channels, the channel CDQ Workbench with all its roles. Save.

    The site's Role Assignments: the roles CDQ Workbench Data Steward and CDQ Workbench Admin of the channel CDQ_Workbench, and Everyone

    The path on top shows where you are: the site under Site Directory, its Role Assignments. Go to Site opens the launchpad, Edit lets you change the assignments. The tab Roles lists the Assigned Roles with their Title, Description, ID, Channel and Last Modified: both Workbench roles from the channel CDQ_Workbench, and Everyone, which every site has. The tab Content Channels shows the channels whose roles are assigned as a whole. In an existing site, you see its other roles here, too: keep them, and keep what Everyone has, as it is.

  5. The view mode: in the site's Site Settings → Display → Edit, set View Mode to Spaces and Pages - New Experience, and save. In an existing site, check first what this changes for its other content (see Choose a Landscape).

    The site's Site Settings, tab Display: the view mode Spaces and Pages - New Experience

    The tabs of Site Settings group the site's settings; Display is the one you need. Under General Display Settings, View Mode shows Spaces and Pages - New Experience. In this mode the launchpad shows the Workbench's two spaces as the menu on top, Data Management first and Administration second, and each user sees only the spaces of their roles. The other settings, such as Tile Size, Where to display and Display on screen, are your choice; the Workbench needs nothing special there.

  6. The Work Zone role collections: now that the roles are assigned to the site, the subaccount has the role collections ~cdq_workbench_cdqWorkbenchAdmin and ~cdq_workbench_cdqWorkbenchDataSteward. Map them to the same user groups as the XSUAA ones (see Assign the role collections).

Check: Security → Role Collections lists the Work Zone role collections with your groups. The site's URL (…/site?siteId=<ID>, also behind Go to Site) is the one you give your users.

Check the installation

The installation works when an administrator can create a connection whose systems all show as available, and each user sees the Tools of their role.

  1. As an administrator (role collection CDQ Workbench Admin), open the site: the space Administration shows Connections, Data Mirror Sync and Mappings.
  2. Create the first connection in Connections: a name plus the S/4HANA, CDQ API and, optionally, AI model destination. See Create a connection. Saving checks the S/4HANA system, the Data Mirror and the AI model. Or let the deployment create the connection: if no connection has its name yet, it's created from the setting CDS_CONFIG in the extension descriptor (see Reference), and checked like a saved one.
  3. Check the result: the connection shows Available for business partners and products, for the Data Mirror and for the AI model. Any other status names its cause: see Check the systems of a connection and Troubleshooting.
  4. Check the Customizing values: open Mappings with this connection chosen in its title. Customizing read on shows when it read your Customizing, or why it couldn't.
  5. As a data steward (role collection CDQ Workbench Data Steward), open the site: the space Data Management shows Business Partner Onboarding, Business Partner Insights and Business Partner Duplicates. A user with both role collections sees Data Management first, then Administration.

Then the administrators take over: they set up the sync jobs in Data Mirror Sync and check the transformations in Mappings.

Reference

Destinations

Destinations of the subaccount (Connectivity → Destinations). All have the type HTTP.

DestinationURLProxy typeAuthenticationAdditional properties
S/4HANA, name of your choiceThe system's host without a path. SAP S/4HANA Cloud: the API host https://myNNNNNN-api.s4hana.cloud.sap (the host without -api answers with a log-on page). Cloud Connector: the virtual host.Internet, or OnPremise with the Cloud Connector (and its Location ID, if set)BasicAuthentication with the communication or technical user, or OAuth2ClientCredentialsOptional: sap-client (not needed in SAP S/4HANA Cloud). Optional LaunchpadUrl: the address of the system's SAP Fiori launchpad, e.g. https://s4.example.com, where Business Partner Onboarding opens a business partner in S/4HANA; not needed for SAP S/4HANA Cloud Public Edition, whose launchpad is the API host without -api
CDQ API, name of your choicehttps://api.cdq.comInternetNoAuthenticationURL.headers.X-API-KEY: the CDQ API key, of a CDQ workspace that has a Data Mirror.
AI model, one per model; AI_CORE_CLAUDE_HAIKU for the default modelThe model's deploymentUrl (…/v2/inference/deployments/<ID>)InternetOAuth2ClientCredentials: Client ID clientid and Client Secret clientsecret of the service key, Token Service URL the key's url + /oauth/tokenURL.headers.AI-Resource-Group: the resource group. AICORE_MODEL: the model's name in SAP AI Core. AICORE_EXECUTABLE: aws-bedrock or aicore-mistralai.
cdq-workbench-rthttps://<subaccount subdomain>.launchpad.cfapps.<region>.hana.ondemand.comInternetNoAuthenticationCEP.HTML5contentprovider, HTML5.DynamicDestination, HTML5.ForwardAuthToken: each true
cdq-workbench-cdmCreated by the deployment–––

The CDQ API destination decides for every connection that uses it which Data Mirror it works with (the one of its API key's CDQ workspace), and in which CDQ workspace the Workbench keeps the connection's data transformation definitions. Each connection has its own transformations in Mappings, also when connections share a CDQ API destination: there's nothing to add to the destination for them.

AI models. Connections offer every destination with the property AICORE_MODEL. You can use any model SAP AI Core offers for text generation with tools, for example a Claude model of Anthropic or a Mistral model. Anthropic's models are called with the executable aws-bedrock, all others with OpenAI's chat format. How good CDQ Genius's answers are depends on the model.

Roles and launchpad content

Workbench roleXSUAA role collection (data)Work Zone role collection (tiles)Space on the launchpadTools
CDQ Workbench Data StewardCDQ Workbench Data Steward~cdq_workbench_cdqWorkbenchDataStewardData Management, firstBusiness Partner Onboarding, Business Partner Insights, Business Partner Duplicates
CDQ Workbench AdminCDQ Workbench Admin~cdq_workbench_cdqWorkbenchAdminAdministration, secondConnections, Data Mirror Sync, Mappings

Each Work Zone role brings a catalog with its Tools, a space with one page that holds their tiles, and a group with the same tiles for sites in the view mode Groups. The Work Zone role collections are named after the content provider's ID (CDQ_Workbench). Users without a role don't see the Tool's tile; in a site with only the Workbench's content, they see Cannot find a space assigned to you. If they open a Tool by a link, it tells them they aren't authorized and shows no data. Administrators of the setup also need Launchpad_Admin and the cockpit's own role collections; these aren't part of the Workbench.

What the MTA creates

KindNames
Cloud Foundry applicationscdq-workbench-srv (CAP service), cdq-workbench-db-deployer (runs once per deployment)
Service instancescdq-workbench-db (HDI container), cdq-workbench-auth (XSUAA, plan application), cdq-workbench-destination, cdq-workbench-connectivity, cdq-workbench-html5-repo-host, cdq-workbench-html5-repo-runtime
HTML5 applicationscdqconnections, cdqdatamirrorsync, cdqmappings, cdqbponboarding, cdqbpinsights, cdqbpduplicates (business solution cdqworkbench.service), and the launchpad content (Work Zone roles, catalogs, spaces, pages and groups)
Role collectionsCDQ Workbench Admin, CDQ Workbench Data Steward
DestinationsSubaccount: cdq-workbench-cdm (design-time destination of the content provider). Service instance: cdq-workbench-html5-repository, cdq-workbench-auth, srv-api, for the managed application router of SAP Build Work Zone

The Workbench has no application router of its own: the managed application router of SAP Build Work Zone serves it (sap.cloud.service cdqworkbench.service). The XSUAA application name is cdq-workbench-<space>, so it's unique per space.

Settings of the extension descriptor

SettingWhere in the descriptorDefault in the archiveWhen to set it
Memory of the CAP servicemodule cdq-workbench-srv, parameter memory256MWhen the CAP service needs more memory for your workload. Change NODE_OPTIONS with it.
Heap of the CAP servicemodule cdq-workbench-srv, property NODE_OPTIONS--max-old-space-size=160 (MB)Together with the memory: Node.js doesn't see the container's limit, and without a limit of its own, Cloud Foundry stops the application when it runs out of memory.
Memory of the database deployermodule cdq-workbench-db-deployer, parameter memory256MWhen the database deployer needs more memory for your workload.
Databaseresource cdq-workbench-db, parameter config.database_idnoneWhen the space sees more than one SAP HANA Cloud database.
Server settingsmodule cdq-workbench-srv, property CDS_CONFIG (JSON)noneA connection created at the start if none has its name: {"connections":{"seed":[{"name":"<name>","s4Destination":"<S/4HANA destination>","cdqDestination":"<CDQ API destination>","aiModelDestination":"<AI model destination>"}]}}. If an administrator deletes it, the next deployment creates it again. The default AI model: {"genius":{"model":{"destination":"<AI model destination>"}}}. If you need both, put them into one JSON object.
HTML5 application runtimemodule cdq-workbench-destinations, parameter html5-runtime-urlhttps://html5-apps-repo-rt.${default-domain}Only on an extension landscape: the region's runtime, e.g. https://html5-apps-repo-rt.cfapps.<region>.hana.ondemand.com (the uri of a service key of html5-apps-repo, plan app-runtime). The destination cdq-workbench-cdm points there.

Your opinion matters!

We are constantly working on providing an outstanding user experience with our products. Please share your opinion about this tutorial!