Docsity

Config Ariba com REST e API's, Manuais, Projetos, Pesquisas de Matérias técnicas

Toggle sidebar
bg1
CUSTOMER
2017-06
Supplier data integration using RESTful web service
APIs
SAP Ariba Contracts
SAP Ariba Sourcing
SAP Ariba Strategic Sourcing Suite
SAP Ariba Supplier Information and Performance Management
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e

Pré-visualização parcial do texto

Baixe Config Ariba com REST e API's e outras Manuais, Projetos, Pesquisas em PDF para Matérias técnicas, somente na Docsity!

CUSTOMER

Supplier data integration using RESTful web service

APIs

SAP Ariba Contracts

SAP Ariba Sourcing

SAP Ariba Strategic Sourcing Suite

SAP Ariba Supplier Information and Performance Management

Content

2 C U S T O M E R Supplier data integration using RESTful web service APIs

  • master data integration). About supplier data integration using RESTful web service APIs (SAP Ariba web services for
  • Configuring SAP Ariba web services for master data integration.
  • Configuring SAP Ariba web services for master data integration.
    • Configuring Ariba Network end point options (SAP Ariba Customer Support).
    • Configuring an Ariba Network end point for internal communication.
    • Configuring Ariba Network end points for communication with external systems.
    • Customer Support). Configuring SAP Ariba Strategic Sourcing solutions site profile and site parameters (SAP Ariba
    • Configuring SAP Ariba Strategic Sourcing solutions end points.
    • Enabling SPQ items for ntegration (SAP Ariba Customer Support).
    • Enabling the supplier integration option for a supplier organization.
  • Authenticating web services for master data integration.
  • Retrieving web services for master data integration metadata.
  • SAP Ariba web services for master data integration APIs.
  • Retrieve messages from mailbox.
  • Update mailbox message status (acknowledge message).
  • Retrieve a supplier profile.
  • Update a supplier profile.
  • Retrieve an extended supplier profile.
  • Update an extended supplier profile.
  • Deactivate a supplier organization for SAP Ariba Strategic Sourcing solutions.
  • Create a data sync relationship.
  • Retrieve the status of a data sync relationship.
  • Update the status of a data sync relationship.
  • JSON formats for extended profile data fields.
  • Revision history.

Relationship Service

You use the Relationship Service to manage relationships to synchronize supplier data, or data sync relationships. A buyer and supplier must have a data sync relationship before the buyer can synchronize the supplier's data (profile) with external systems.

Note that if you integrate your Ariba Network supplier data with SAP Ariba Strategic Sourcing solutions, you do not explicitly use the Relationship Service to establish a data sync relationship; instead, SAP Ariba establishes a data sync relationship when the Supplier Integration feature is enabled for the supplier on the SAP Ariba Strategic Sourcing solutions Organization Profile page.

Mailbox Service

Mailboxes are used by SAP Ariba to notify clients when supplier data is created or modified on an SAP Ariba server. SAP Ariba places messages in client mailboxes; clients are expected to use the Mailbox Service to periodically check mailboxes for messages. Message notifications for new or modified supplier data include a URI for the client to send requests to the Profile Service or Extended Profile Service and retrieve the supplier data. Clients also use mailboxes to post acknowledgements for retrieved messages.

SAP Ariba creates one mailbox for each external system or master data governance system you have a data synchronization relationship with.

Profile Service

You can use the Profile Service to:

● Get basic supplier profile data. ● Add or update a Private ID for a supplier. The Private ID field is used to specify the supplier's ID on the external system.

Basic supplier profile data is available online to all buying organizations and includes the following information:

● Organization Name ● Ariba Network ID ● Address and contact information (postal address, phone, fax, email, URL) ● Corporate information ● Tax information ● Information about a business contact (a person identified as a business contact) ● Commodities ● Territory

Basic profile data is stored in the supplier's Ariba Network for Suppliers profile.

After a supplier in your site is linked to their Ariba Network for Suppliers profile (usually after you have interacted with them by inviting them to an event, inviting them to actively self-register, or responding to one of their SAP Ariba Discovery postings), only the supplier can update the basic profile data and the profile status becomes Private. (The Profile Service can be used to to retrieve basic profile data regardless of the profile status.)

4 C U S T O M E R

Supplier data integration using RESTful web service APIs About supplier data integration using RESTful web service APIs (SAP Ariba web services for master data integration)

Note

You cannot use the Profile Service to create a new supplier.

Extended Profile Service

You can use the extended Profile Service to:

● Get or update extended supplier profile data. Extended supplier profile data consists of responses to items in a Supplier Performance Questionnaire (SPQ) that are enabled for Supplier Integration. ● Retrieve or update business contacts associated with a supplier. ● Deactivate or reactivate a supplier organization in your SAP Ariba Strategic Sourcing solutions site.

Example Data Flow for Enabling Supplier Integration

● On the SAP Ariba Strategic Sourcing solutions Organization Profile page, a supplier administrator creates or updates a supplier organization and clicks Actions Supplier Integration Enable. The status of the supplier integration for this supplier is set to Pending. ● If the SAP Ariba Strategic Sourcing solutions supplier organization profile is not integrated with the Ariba Network for Suppliers profile (there is no Ariba Network ID for the supplier), SAP Ariba Strategic Sourcing solutions and Ariba Network exchange control messages to synchronize data. Ariba Network assigns an Ariba Network ID to the supplier and sends the ID to SAP Ariba Strategic Sourcing solutions. ● SAP Ariba Strategic Sourcing solutions uses the Relationship Service to establish a data sync relationship for the supplier. ● SAP Ariba places a message in the mailbox for the external system. The message indicates that both the profile and extended profile have been updated (created, in this case) and includes path elements with URLs for the profile and extended Profile Services. ● The client (external system) sends a GET request to the Mailbox Service and retrieves the message. ● The client sends a GET request to the Profile Service at the URL specified in the profile path element of the message retrieved from the mailbox. ● The client sends a GET request to the extended Profile Service at the URL specified in the extended profile path element of the message retrieved from the mailbox. ● The client adds, updates, or passes on information about the supplier from the GET responses. Optionally, the client assigns an ID for the supplier and modifies the extended profile data as needed. ● The client sends a PUT request to the Profile Service with the AN ID in the payload. If an ID was assigned to the supplier, the payload also includes this ID as the Private ID. ● The client sends a PUT request to the extended Profile Service. When SAP Ariba Strategic Sourcing solutions receives this request, it sets the status of the supplier integration for this supplier to Integrated. ● The client sends a PUT request to the Mailbox Service. The PUT request is used to update the message status to success and indicate that the client successfully processed the message that contained the notification for the updated profile data. ● The SAP Ariba server removes the message from the mailbox.

Supplier data integration using RESTful web service APIs About supplier data integration using RESTful web service APIs (SAP Ariba web services for master data integration) C U S T O M E R 5

Configuring SAP Ariba web services for master

data integration

The SAP Ariba web services for master data integration require communication end points. In addition, you the supplier integration feature must be enabled for your site, supplier organizations, and optionally, Supplier Performance Questionnaire (SPQ) items.

In this section:

Configuring SAP Ariba web services for master data integration [page 7 ]

Configuring SAP Ariba web services for master data

integration

The following configuration tasks must be completed to use the SAP Ariba web services for master data integration for supplier data. Some of these configuration tasks must be completed by SAP Ariba Customer Support.

● SAP Ariba Customer Support must enable Ariba Network end point options needed by the SAP Ariba web services for master data integration. See Configuring Ariba Network end point options (SAP Ariba Customer Support) [page 8 ]. ● End point configuration. The following end points must be configured: ○ An Ariba Network end point for internal communication between Ariba Network and SAP Ariba Strategic Sourcing solutions. The end point must support the following formats: ○ JSON ○ cXML If the customer's site is already configured to synchronize SAP Ariba Strategic Sourcing solutions supplier data with SAP Ariba commerce cloud profiles, the existing end point can be modified and re-used to also exchange the internal messages used by SAP Ariba web services for master data. See Configuring an Ariba Network end point for internal communication [page 8 ]. ○ One Ariba Network end point for each external system (such as a master data governance system) using the integration services. You must configure one end point for each external system that will access the Mailbox, Profile, or Relationship services. See .Configuring Ariba Network end points for communication with external systems [page 10 ] ○ One SAP Ariba Strategic Sourcing solutions end point for each external system using the integration services. You must configure one end point for each external system that will access the Extended Profile Service. This task is described in Configuring SAP Ariba Strategic Sourcing solutions end points [page 12 ]. ● SAP Ariba Customer Support must configure SAP Ariba Strategic Sourcing solutions site profile and site configuration parameters. See Configuring SAP Ariba Strategic Sourcing solutions end points [page 12 ]. ● SAP Ariba Customer Support must configure the Integrated with option for each Supplier Profile Questionnaire (SPQ) item you want to make available for the SAP Ariba web services for master data

Supplier data integration using RESTful web service APIs Configuring SAP Ariba web services for master data integration C U S T O M E R 7

integration extended profile API. See Enabling SPQ items for ntegration (SAP Ariba Customer Support) [page 13 ]. ● The Supplier Integration option must be enabled for each supplier organization whose profile you want to make available through SAP Ariba web services for master data integration. See Enabling the supplier integration option for a supplier organization [page 14 ].

If you are using the SAP Ariba web services for master data integration for supplier data that is not integrated with SAP Ariba Strategic Sourcing solutions, the only items you need to configure are Ariba Network end points for the external systems (or master data governance systems) that will access the SAP Ariba web services for master data integration.

Configuring Ariba Network end point options (SAP Ariba

Customer Support)

Context

The steps described are performed by SAP Ariba Customer Support to enable Ariba Network for the end point configuration needed by the SAP Ariba web services for master data integration.

Procedure

SAP Ariba Customer Support clicks Production Admin Apps AN Admin to configure the following items for your Ariba Network Buyer account:

○ Convert to Ariba Open Network ○ Enable end point support ○ Enable end point support for Pending Queue

Configuring an Ariba Network end point for internal

communication

When using SAP Ariba web services for master data integration for supplier data that is integrated with SAP Ariba Strategic Sourcing solutions, you configure an Ariba Network end point to exchange internal messages with SAP Ariba Strategic Sourcing solutions. If the customer's site is already configured to synchronize SAP Ariba Strategic Sourcing solutions supplier data with SAP Ariba commerce cloud profiles, you can modify and re-use the existing end point to also exchange the SAP Ariba web services for master data internal messages. If you are not using supplier data that is integrated with SAP Ariba Strategic Sourcing solutions, skip this procedure.

8 C U S T O M E R

Supplier data integration using RESTful web service APIs Configuring SAP Ariba web services for master data integration

Configuring Ariba Network end points for communication

with external systems

When using Ariba web services for master data integration, you configure end points in Ariba Network to exchange data between Ariba Network and external systems for the mailbox, profile, and Relationship Services. You configure these end points in addition to the end point used for internal communication with SAP Ariba Strategic Sourcing solutions.

Prerequisites

● Contact your SAP Ariba Customer Support Representative to enable your Ariba Network account to use end points. Your SAP Ariba Customer Service representative must enable the following options for your account: ○ Convert to Ariba Open Network ○ Enable end point support ○ Enable end point support for Pending Queue ● If you will use security certificates to authenticate the external system, obtain the certificate for the external system. The certificate must be a signed X.509 certificate encoded using Privacy Enhanced Mail (PEM) base64-encoding and signed by a Certificate Authority (CA) trusted by SAP Ariba. To get information about the CAs currently trusted by Ariba or to register a CA to be trusted by SAP Ariba, contact SAP Ariba Support. The first line of the certificate must be the following text:

-----BEGIN CERTIFICATE-----

The last line of the certificate must be the following text:

-----END CERTIFICATE-----

Procedure

  1. Access the Ariba Network application by selecting Ariba Network on the navigation bar at the top of the page.
  2. Select the Administration tab. Click Configuration.
  3. Select an option on the Configuration page according to the number of external or ERP systems you are integrated with. ○ If you are integrated with only one external system or ERP, click Business End Points (cXML and OData Setup). ○ If you are integrated with multiple external systems or ERPs using multi-ERP support, click Configure Business Application IDs. Click on the appropriate system ID name, then click the End Point tab.
  4. Click Create on the Configure Business End Points page.
  5. Enter a value for the End Point ID. Make a note of the ID. The external system must send this ID in the HTTP authorization header.
  6. In the Select an integration type field, select the data format.

10 C U S T O M E R

Supplier data integration using RESTful web service APIs Configuring SAP Ariba web services for master data integration

○ If this end point will be used exclusively for Master Data Integration web service messages, select OData.

Note

The integration type OData specifies the framework used to exchange data, which is used for all Master Data Integration web services, even when the format query parameter requests a response in cXML.

○ If this end point will be used for both document routing and Master Data Integration web service messages, select cXML and OData.

  1. Select a method used to authenticate the identity of the external system. ○ If you select Shared Secret, enter a password. Retain this value and the value for End Point ID; the external system must use these values when sending requests to the Master Data Integration web services. ○ If you select Certificate, paste the contents of the external system's security certificate in the Security Certificate field.
  2. Click Save when you have finished to return to the Configure Business End Points page.

Next Steps

If you configured an end point with shared secret authentication and the peer is an external system, provide the following information to the administrator of the external system:

● End Point ID ● System ID name, if you are integrated with multiple external systems or ERPs using multi-ERP support ● Shared Secret value

The client must send this information in the HTTP authorization header, as described in Authenticating web services for master data integration [page 15 ].

Configuring SAP Ariba Strategic Sourcing solutions site

profile and site parameters (SAP Ariba Customer Support)

Context

The steps described are performed by SAP Ariba Customer Support to configure SAP Ariba Strategic Sourcing solutions site profile parameters and site configuration options needed by the SAP Ariba Web Services for Master Data Integration.

Supplier data integration using RESTful web service APIs Configuring SAP Ariba web services for master data integration C U S T O M E R 11

Procedure

  1. On the dashboard, click Manage Administration.
  2. Click the expansion arrow for Integration Manager.
  3. Choose Supplier Integration Configuration. The Supplier Integration Configuration page opens.
  4. If Supplier Integration Enabled is not checked (the selection box is empty), click the selection box.
  5. In the External System Name field, specify a name for the external system you are integrating with. This name will be displayed in menu options for integrating supplier profile questionnaire items.
  6. For the Authentication Method, select the method to authenticate the identity of the external system. ○ If you select Shared Secret, specify the ID and shared secret and make a note of the values. The external system must send these values in the HTTP authorization header. ○ If you select Certificate, paste the external system's certificate in the Certificate Content field.

Next Steps

If you configured an end point with shared secret authentication, provide the ID and shared secret value to the administrator of the external system. The client must send this information in the HTTP authorization header, as described in Authenticating web services for master data integration [page 15 ].

Enabling SPQ items for ntegration (SAP Ariba Customer

Support)

Context

The steps described are performed by SAP Ariba Customer Support to configure the Integrated with option for each Supplier Profile Questionnaire (SPQ) item the customers wants to make available for the SAP Ariba Web Services for Master Data Integration extended profile API.

Procedure

  1. In Ariba Administrator, SAP Ariba Customer Support selects Manage Supplier Knowledge.
  2. In the Supplier Knowledge Area, click the Supplier Profile Questionnaire and select Open.
  3. Click the table icon and select Integrated with.
  4. To make an SPQ item available for the SAP Ariba web services for master data integration extended profile AP, select the external system name in the Integrated with column.
  5. Click Done.

Supplier data integration using RESTful web service APIs Configuring SAP Ariba web services for master data integration C U S T O M E R 13

Enabling the supplier integration option for a supplier

organization

If your SAP Ariba Strategic Sourcing solutions supplier data is integrated with Ariba Network, you must enable the supplier integration option for the supplier organization to make its profile available through the SAP Ariba web services for master data integration APIs.

Prerequisites

● The Supplier Integration option must be enabled for your SAP Ariba Strategic Sourcing solutions site, as described in Configuring SAP Ariba Strategic Sourcing solutions end points [page 12 ]. ● You must be a member of one of the following groups: Sourcing Manager, Supplier/Customer Manager, Supplier/Customer Agent, Administrator, or Integration Admin. ● There must be at least one user configured for the organization.

Procedure

  1. Navigate to the Organization Profile area for the supplier.
  2. Click Actions Supplier Integration Enable.

Results

● The Supplier Integration Status becomes Pending. ● If the SAP Ariba Strategic Sourcing solutions supplier organization profile is not integrated with the SAP Ariba commerce cloud profile (there is no Ariba Network ID for the supplier), SAP Ariba Strategic Sourcing solutions and Ariba Network exchange control messages to synchronize data. Ariba Network assigns an Ariba Network ID to the supplier and sends the ID to SAP Ariba Strategic Sourcing solutions. ● After the data flow described in About supplier data integration using RESTful web service APIs (SAP Ariba web services for master data integration) [page 3 ] is complete, the Supplier Integration Status becomes Integrated.

14 C U S T O M E R

Supplier data integration using RESTful web service APIs Configuring SAP Ariba web services for master data integration

In addition, clients connecting to an Ariba Network end point must send an HTTP Authorization header. The header is a variant of an HTTP Authorization header used for Basic Authentication where the basic- credentials contains only the following base64-encoded string:

anId / systemId / endPointId

Shared Secret Authentication for SAP Ariba Strategic Sourcing solutions End Points

If you configured shared secret authentication for an SAP Ariba Strategic Sourcing solutions end point, the external system (client) must send the ID configured in the ID field of the Supplier Integration Configuration page for the userid in the HTTP Authorization header.

For example:

AN

For the password field of the HTTP Authorization header, the client must send the value configured for the Shared Secret field on the Supplier Integration Configuration page.

The format for credentials in the HTTP Authorization header is userid : password , base64 encoded. In this example, the client sends the following string, base64 encoded:

AN0000000099: sharedSecret

where sharedSecret is the Shared Secret configured for the end point.

Certificate Authentication SAP Ariba Strategic Sourcing solutions End Points

If you configured certificate authentication for an end point, TLS client authentication is used. The client must use the certificate entered on the SAP Ariba end point configuration page.

Related Information

Configuring an Ariba Network end point for internal communication [page 8 ]

Configuring SAP Ariba Strategic Sourcing solutions end points [page 12 ]

16 C U S T O M E R

Supplier data integration using RESTful web service APIs Authenticating web services for master data integration

Retrieving web services for master data

integration metadata

Context

You can retrieve an EDMX document that describes the feeds and properties for a given service.

Procedure

Prepend the base URI for your site (such as http://service.ariba ) to the URI of the service for which you want metadata. Send an HTTP (non-secured) GET request to the URI.

Service Metadata URI Mailbox /odata/v1/ace.directory/mailbox.svc/ Messages/$metadata Profile /odata/v1/ace.directory/profile.svc/ $metadata Relationship /odata/v1/ace.directory/relationship.svc/ $metadata

Supplier data integration using RESTful web service APIs Retrieving web services for master data integration metadata C U S T O M E R 17

URI Path

Retrieve the n most recent messages:

/odata/v1/ace.directory/mailbox.svc/Messages?$top= numMessages

Retrieve a specific message:

/odata/v1/ace.directory/mailbox.svc/Messages(' messageId ')

Append the appropriate path to the base URI you use to access Ariba Network, such as https:// service.ariba.com.

URI Parameters

Parameter Description Required? messageId ID of the message to retrieve. No, but you must select the message or messages you want to retrieve by speci fying either a messageId or the top query parameter.

Query Parameters

Parameter Description Required? top= numMessages Number of messages to retrieve. If this parameter is omitted, the value 100 is used (the service returns up to 100 of the most recent, unacknowledged messages in your mailbox).

No, but you must select the message or messages you want to retrieve by speci fying either a messageId or the top query parameter.

format= format Specifies the format for the response payload. If this parameter is omitted, the re sponse payload format is JSON with metadata. Valid values: ● j (data-only JSON).

No.

Request Payload

None.

Supplier data integration using RESTful web service APIs SAP Ariba web services for master data integration APIs C U S T O M E R 19

Response Codes

● 200 OK: Messages successfully retrieved. ● 204 No Content: No messages available. ● 401 Not Authorized: Unauthorized request.

Response Payload Values

The status for all messages received is queued (the GET operation retrieves only queued messages).

If the response format is JSON, each message contains a profile and extended_profile element; if the supplier data is not integrated with the SAP Ariba Strategic Sourcing solutions, the extended_profile contains only metadata.

If the response format is data-only JSON and the supplier data is not integrated with the SAP Ariba Strategic Sourcing solutions, no extended_profile element is sent.

The Status field within the profile or extended_profile element indicates if the profile or extended profile data changed ("Status": "UPDATED") or did not change ("Status": "UNCHANGED").

The path fields within the profile and extended_profile elements are callback URLs to use when sending requests to the profile and Extended Profile Services.

Response Payload - JSON

"d": { "results": [ { "__metadata": { "id": "https://service.ariba.com/Directory.aw/ad/odata/v1/ace.directory/ mailbox.svc/Messages('40000000000000000000726233')", "uri": "https://service.ariba.com/Directory.aw/ad/odata/v1/ace.directory/ mailbox.svc/Messages('40000000000000000000726233')", "type": "ariba.network.service.common.directory.odata.v1.mailbox.model.Message" }, "msgId": "40000000000000000000726233", "created": "/Date(1424822847000)/", "status": "Queued", "supplierId": "AN00000000009", "profile": { "__metadata": { "type": "ariba.network.service.common.directory.odata.v1.mailbox.model.ProfileMetadata" }, "ApplicationName": "ace.directory", "ServiceName": "profile.svc", "Path": "odata/v1/ace.directory/profile.svc/Suppliers('AN00000000009')", "Status": "UPDATED" }, "extended_profile": {

20 C U S T O M E R

Supplier data integration using RESTful web service APIs SAP Ariba web services for master data integration APIs