SAP Ariba Procurement
The SAP Ariba Procurement connector lets you perform insert, update, and read operations on the SAP Ariba Procurement data.
Supported versions
This connector supports SAP Ariba Procurement REST APIs.
Before you begin
In your Google Cloud project, do the following tasks:
- Ensure that network connectivity is set up. For information, see Network connectivity.
- Grant the roles/connectors.admin IAM role to the user configuring the connector.
- Grant
roles/secretmanager.viewer
androles/secretmanager.secretAccessor
IAM roles to the service account that you want to use for the connector - Enable
secretmanager.googleapis.com
(Secret Manager API) andconnectors.googleapis.com
(Connectors API). For more information, see Enabling services.
Configure the connector
A connection is specific to a data source. It means that if you have many data sources, you must create a separate connection for each data source. To create a connection, do the following:
- In the Cloud console, go to the Integration Connectors > Connections page and then select or create a Google Cloud project.
- Click + CREATE NEW to open the Create Connection page.
- In the Location section, complete the following:
- Region: Select a location from the drop-down list.
For the list of all the supported regions, see Locations.
- Click Next.
- Region: Select a location from the drop-down list.
- In the Connection Details section, complete the following:
- Connector: Select SAP Ariba Procurement from the list of available connectors.
- Connector version: Select the connector version from the list of available versions.
- In the Connection Name field, enter a name for the connection instance. The connection name can contain lower-case letters, numbers, or hyphens. The name must begin with a letter and end with a letter or number and the name must not exceed 49 characters.
- Description: Enter a description for the connection instance.
- Optionally, enable Cloud logging,
and then select a log level. By default, the log level is set to
Error
. - Service Account: Select a service account that has the required roles.
- ANID: Specify your SAP Ariba network ID.
- API Key: Enter the OAuth application key for authentication.
- Realm: Enter the SAP Ariba realm for the connection.
- API: Enter the SAP Ariba API to retrieve data from.
- Data Center: Enter the geographic location where your account's data is hosted.
- Environment: Enter the SAP Ariba environment you want to connect to.
- Optionally, configure the Connection node settings:
- Minimum number of nodes: Enter the minimum number of connection nodes.
- Maximum number of nodes: Enter the maximum number of connection nodes.
A node is a unit (or replica) of a connection that processes transactions. More nodes are required to process more transactions for a connection and conversely, fewer nodes are required to process fewer transactions. To understand how the nodes affect your connector pricing, see Pricing for connection nodes. If you don't enter any values, by default the minimum nodes are set to 2 (for better availability) and the maximum nodes are set to 50.
- + ADD LABEL: click this to add a label to the connection in the form of a key/value pair.
- Click Next.
-
In the Authentication section, enter the authentication details.
- Select an Authentication type and enter the relevant details.
The following authentication types are supported by the SAP Ariba Procurement connection:
- OAuth 2.0 - client credentials
To understand how to configure these authentication types, see Configure authentication.
- Click Next.
- Select an Authentication type and enter the relevant details.
- Review: Review your connection and authentication details.
- Click Create.
Configure authentication
Enter the details based on the authentication you want to use.
-
OAuth 2.0 - client credentials
- Client ID: Enter the client ID for the application you created.
- Client Secret: Enter the secret manager secret containing the client secret for the connected app you created.
- Secret version: Select the secret version for the client secret.
- Enable Authentication Override: Enable this for authentication override.
Connection configuration samples
This section lists the sample values for the various fields that you configure when creating the connection.
OAuth 2.0 - client credentials connection type
Field name | Details |
---|---|
Location | europe-west1 |
Connector | SAP Ariba Procurement |
Connector version | 1 |
Connection Name | gcp-sapariba-procurement-po-supplier |
Enable Cloud Logging | Yes |
Service Account | my-service-account@my-project.iam.gserviceaccount.com |
Log Level | Debug |
ANID | AN11234322444-T |
API Key | gaTawAf8m3gtAs8gPyUbU9Be1eLXbvFq |
Realm | 745628447-T |
API | PurchaseOrdersSupplierAPI-V1 |
Data Center | US |
Environment | TEST |
Minimum number of nodes | 2 |
Maximum number of nodes | 50 |
Authentication | OAuth 2.0 - Client credentials |
Client ID | 4c71c4d4-d7e9-494e-807f-9dead41abc6f |
Client Secret | projects/617888503870/secrets/AribaProcurement/versions/10 |
Secret version | 10 |
System limitations
The SAP Ariba Procurement connector can process a maximum of 3 transactions per second, per node, and throttles any transactions beyond this limit. By default, Integration Connectors allocates 2 nodes (for better availability) for a connection.
For information on the limits applicable to Integration Connectors, see Limits.
Use the SAP Ariba Procurement connection in an integration
After you create the connection, it becomes available in both Apigee Integration and Application Integration. You can use the connection in an integration through the connectors task.
- To understand how to create and use the connectors task in Apigee Integration, see Connectors task.
- To understand how to create and use the connectors task in Application Integration, see connectors task.
Actions
This section shows how to perform some of the actions in this connector.
CreateChildElementSchema action
This action creates a schema file for an array of documents in the view template.
Input parameters of the CreateChildElementSchema action
Parameter name | Type | Accepts output streams | Description |
---|---|---|---|
ViewTemplateName | String | False | The name of an existing view template. |
ChildElement | String | False | A child element or array of documents in the view template in dot notation, such as LineItems.SplitAccountings . |
TableName | String | False | The name for the new table, such as View_LineItems_SplitAccountings . |
FileName | String | False | The file name for the generated schema. This can be a relative path or an absolute path to the desired save location. |
FileStream | String | True | An instance of an output stream where file data is written to. |
For an example about how to configure the CreateChildElementSchema
action,
see Examples.
CreateSchema action
Creates a schema file for the specified table or view.
Input parameters of the CreateSchema action
Parameter name | Type | Accepts output streams | Description |
---|---|---|---|
TableName | String | False | The name for the new table. |
FileName | String | False | The file name for the generated schema. This can be a relative path or an absolute path to the desired save location. |
FileStream | String | False | An instance of an output stream where file data is written to. |
For an example about how to configure the CreateSchema
action,
see Examples.
Action examples
This section shows how to perform some of the action examples in this connector.
Example - Create a child element schema
- In the
Configure connector task
dialog, clickActions
. - Select the
CreateChildElementSchema
action, and then click Done. - In the Task Input section of the connectors task, click
connectorInputPayload
and then enter a value similar to the following in theDefault Value
field:{ "ViewTemplateName": "InvoiceReconciliation_SAP_createdRange", "ChildElement": "Payments", "TableName": "View_LineItems_SplitAccountings" }
If the action is successful, the connector task's connectorOutputPayload
response
parameter will have a value similar to the following:
[ { "FileData": "", "Result": "success" } ]
Example - Create a schema
- In the
Configure connector task
dialog, clickActions
. - Select the
CreateSchema
action, and then click Done. - In the Task Input section of the connectors task, click
connectorInputPayload
and then enter a value similar to the following in theDefault Value
field:{ "TableName": "Views" }
If the action is successful, the
connector task's connectorOutputPayload
response
parameter will have a value similar to the following:
[ { "FileData": "", "Result": "success" } ]
Entity operation examples
This section shows how to perform some of the entity operations in this connector.
Example - List all the orders
- In the
Configure connector task
dialog, clickEntities
. - Select
Orders
from theEntity
list. - Select the
List
operation, and then click Done. - Task Input section of the connectors task, you can set the filterClause as per the customer requirement.
You must use single quotes (') to enclose the value for a filterClause. You can use the filterClause to filter records based on the columns.
Example - List all the line items
- In the
Configure connector task
dialog, clickEntities
. - Select
LineItems
from theEntity
list. - Select the
List
operation, and then click Done. - In the Task Input section of the connectors task, you can set the filterClause as per the customer requirement.
Example - Get an order details
- In the
Configure connector task
dialog, clickEntities
. - Select
Orders
from theEntity
list. - Select the
Get
operation, and then click Done. - Set the entityId to "DO240" which is the key to be passed. To set the entityId, in
the Data Mapper section of the Data Mapping, click Open Data Mapping Editor and
then enter
"DO240"
in the Input Value field and choose the entityId as local variable.
You should pass the value for entityId directly, such as "DO240". Here, "DO240" is the unique primary key value.
If passing a single entityId throws an error due to the presence of two composite keys, you can use the filterClause to pass the value, such as DocumentNumber='DO240'
.
Example - Get a line item details
- In the
Configure connector task
dialog, clickEntities
. - Select
LineItems
from theEntity
list. - Select the
Get
operation, and then click Done. - Set the filterClause to
LineNumber='1' AND DocumentNumber='DO240'
which are the composite keys to be passed. To set the filterClause, in the Data Mapper section of the Data Mapping, click Open Data Mapping Editor and then enter"LineNumber='1' AND DocumentNumber='DO240'"
in the Input Value field and choose the filterClause as local variable.
Example - Create a view
- In the
Configure connector task
dialog, clickEntities
. - Select
Views
from theEntity
list. - Select the
Create
operation, and then click Done. - In the Data Mapper section of the Data Mapping task, click
Open Data Mapping Editor
and then enter a value similar to the following in theInput Value
field and choose the entityId, connectorInputPayload, or filterClause as local variable.{ "ViewTemplateName": "TestView1754629881645", "Status": "published", "FilterExpressions": "[{\"name\":\"ExampleFilter\",\"field\":\"UniqueName\",\"op\":\"IN\",\"defaultValue\":[\"P011\"]}]", "DocumentType": "DirectOrder", "SelectAttributes": "[\"SubmitDate\"]" }
Running this example returns a response similar to the following in the connector task's
connectorOutputPayload
output variable:{ "Success": true }
Example - Update a view
- In the
Configure connector task
dialog, clickEntities
. - Select
Views
from theEntity
list. - Select the
Update
operation, and then click Done. - In the Data Mapper section of the Data Mapping task, click
Open Data Mapping Editor
and then enter a value similar to the following in theInput Value
field.{ "Status": "published" }
- Set the entityId in Data Mapper to the ID of the Views. To set the entityId, click
Open Data Mapping Editor
and then enter a value similar to the following in theInput Value
field and choose the entityId, connectorInputPayload, or filterClause as local variable.Instead of specifying the entityId, you can also set the filterClause to
TestView = '1754629881645'
.Running this example returns a response similar to the following in the connector task's
connectorOutputPayload
output variable:{ }
An empty JSON object
{}
in the response indicates that the update operation was successful.
Get help from the Google Cloud community
You can post your questions and discuss this connector in the Google Cloud community at Cloud Forums.What's next
- Understand how to suspend and resume a connection.
- Understand how to monitor connector usage.
- Understand how to view connector logs.