SAP Ariba

SAP Ariba is SAP's cloud based marketplace for business-to-business transactions. SAP Ariba runs the Ariba Network in which buyers and suppliers can find each other and do business in one network. You can integrate SAP Ariba Network with your on-premise system either through SAP Cloud Platform Integration or SAP PI.

Integration Scenario

For SAP Ariba the following integration scenarios are possible: 

 

 

The different scenarios contain the following exceptions and point-to-point connections:

  1. Integrating ABAP backend with the SAP Ariba Network in a direct connectivity scenario: 1, 3, 7
  2. Integrating ABAP backend with the SAP Ariba Network mediated via SAP CPI: 1, 3, 5, 7
  3. Integrating ABAP backend with the SAP Ariba Network mediated via SAP PI (Web Service based): 1, 3, 6, 7
  4. Integrating ABAP backend with the SAP Ariba Network mediated via SAP PI (IDoc based): 2, 4, 6, 7
 

Scenario Component

Monitored Content

Interface Channel Type

Since SP

 1 Systems: ABAP on-premise system Exceptions in Ariba Integration Add-on Cloud: Cloud (Ariba Add-on) 7.2 SP08
 2 Systems: ABAP on-premise system IDocs IDoc 7.1 SP12
 3 Systems: ABAP on-premise system  Web Service errors and performance Web Service: Web Service ABAP (STAD) or Web Service ABAP (SOAP) 7.1 SP05*
 4 Systems: ABAP on-premise system  Messages in the ABAP proxy framework 

Process Integration: Process Integration (PI – ABAP only)

7.1 SP12
 5 Cloud Services: SAP Cloud Platform Integration Exceptions in integration flows (iFlow) in SAP CPI Cloud: Cloud (SAP Cloud Platform Integration) 7.1 SP12*
 6 Systems: SAP PI on-premise system  PI Messages and Channels

Process Integration

7.1 SP12
 7 Cloud Services: SAP Ariba Exceptions in SAP Ariba Network Cloud (Ariba Network) 7.2 SP07

*) Monitoring content was extended with later support packages (see monitoring template page for details)

When you set up the exception collection and monitoring you first need to know or identify which Web Service end-points and PI or CPI messages flows are relevant for your scenario. You can find this information here: https://help.sap.com/viewer/p/ARIBA_NETWORK_INTEGRATION_FOR_SAP_BUSINESS_SUITE → Select the guide for your integration scenario. 

 
 

Technical Prerequisites

The following technical prerequisites have to be met in order to monitor this scenario:

  • To collect single exceptions in the SAP Ariba Network Integration add-in, you need SAP Solution Manager 7.2 SP03 or higher.
  • To monitor single exceptions in the SAP Ariba Network Integration add-in using Interface and Connection Monitoring, you need SAP Solution Manager 7.2 SP08 or higher.
  • To monitor exceptions in SAP Ariba Network Supply Chain Collaboration, you need SAP Solution Manager 7.2 SP07 or higher.
  • To monitor exceptions in the SAP Ariba Network originating from Cloud Integration Gateway, you need SAP Solution Manager 7.2 SP09 or higher (Source filter will be added with Solution Manager 7.2 SP10).

 

 
 

Available Monitoring Content

The following SAP Ariba scenarios are currently covered in public cloud operations with SAP Solution Manager:

  • SAP Ariba Supply Chain Collaboration (Buyers) currently restricted to the following document types:
    • Purchase Orders
    • Order Confirmations
    • Ship Notices
    • Goods Receipts
    • Invoices
    • Payment Remittances 

Monitoring Templates: Cloud (Ariba Network) 

 

Metric Name Description MAI Category

Since SP

Ariba Network Channel available

Interface Channel Availability. Availability is checked via EEM script execution on the source system or target system.

Availability

7.2 SP07
Number of Exceptions in Ariba Network (last 24h)

Number of exceptions detected in Ariba Network during the last 24 hours.

 

Exceptions 7.2 SP07 

Number of Exceptions in Ariba Network

Number of exceptions detected in SAP Ariba Network.

Exception statistics are retrieved from central Exception Management in SAP Solution Manager.

Exceptions

7.2 SP07
Number of Messages in status Warning (last 24h)

Number of messages in status Warning detected in SAP Ariba Network during the last 24 hours.

Exception statistics is retrieved from central Exception Management in SAP Solution Manager.

Exceptions 7.2 SP07 
Number of Messages in status Warning

Number of messages in status Warning detected in SAP Ariba Network.

Exception statistics is retrieved from central Exception Management in SAP Solution Manager.

Exceptions 7.2 SP07 
Single exceptions in Ariba Network

Single exceptions detected in SAP Ariba Network.

Exceptions are retrieved via the Transaction Monitoring API from SAP Ariba Network into central Exception Management in SAP Solution Manager.

Exceptions 7.2 SP07 
Single messages in status Warning

Single messages in status Warning detected in SAP Ariba Network.

Messages are retrieved via the Transaction Monitoring API from SAP Ariba Network into central Exception Management in SAP Solution Manager.

Exceptions 7.2 SP07 

Monitoring Template: Cloud (Ariba Add-on) 

 

Metric Name Description MAI Category Since SP
Single exceptions in Ariba Add-On Single exceptions detected in Application Log of for the Ariba Integration Add-on  Exceptions  7.2 SP08 

Connect Cloud Service

Please, select...

Public cloud service offerings are usually Software-as-a-Service (SaaS) solutions. This means that customers only have access to the service but not to the underlying infrastructure. Hence, the usual way to connect on-premise managed systems to SAP Solution Manager does not apply to cloud services.

However, to be able to monitor exceptions and performance in cloud services they need to be connected to SAP Solution Manager. This connection is created using the customer and cloud service specific root URL and an end-point definition.

The first step is to import the SSL certificate into SAP Solution Manager. This is valid for all cloud services.

Import Cloud SSL certificate into STRUST

Export Certificate from Browser: 

  1. Open the cloud service URL in your web browser.
  2. Click on the padlock next to the Cloud Service URL (within the address input field).
  3. When using Firefox, click on ‘Show Connection details', ‘More Information', 'View Certificate' and select the ‘Details' tab.
  4. When using Microsoft IExplorer, click on ‘View Certificate' and select the 'Certificate Path' tab.
  5. When using Google Chrome, click on ‘Certificate' and select the 'Certificate Path' tab.
  6. In the displayed certificate hierarchy select the Certification Authority (CA) certificate you plan to trust.
  7. When using Firefox, press ‘Export…'.
  8. When using Microsoft IExplorer or Google Chrome, press ‘View Certificate' and in the displayed pop-up navigate to the ‘Details' tab, to press ‘Copy to File…'.
  9. Select an export format you would like to use and that is supported by STRUST transaction, and export the certificate.

Import Certificate into SAP Solution Manager:

  1. Now, log on to SAP Solution Manager ABAP and go to transaction STRUST.
  2. Switch to Edit.
  3. Double click on entry 'SSL client SSL Client (Anonymous)'.
  4. Import the previously exported CA certificate, by pressing – within section ‘Certificate' – the icon ‘Import Certificate'.
  5. Press ‘Add to Certificate List'.
  6. Finally ‘Save' this modification. 

Additionally you have to perform certain preparations in the cloud service to enable SAP Solution Manager to connect to the cloud service.   

 
 
 
 

Preparations in SAP Ariba

Register for API Developer Portal

To create the required cloud service in SAP Solution Manager, first request production access to the SAP Ariba Network 'Transaction Monitoring API' service, following these guidelines:

Once you have registered in the Open API Developer portal you shall register for the service 'Transaction Monitoring API', which will provide access to the error and warning events, related to the SAP Ariba document processing.

While working through the above-mentioned process, keep in mind to note down the information, like Application Key, OAuth Client ID and Client Secret, which is needed to configure the SAP Ariba cloud service access on SAP Solution Manager side. 

 
 

Connect Cloud Service to SAP Solution Manager

Create Cloud Service

  1. Select 'Cloud Service Operations' → Create Cloud Service.
  2. For the Service Type, select: 'SAP Ariba' from the drop-down list.
  3. Define Service:
    • Tenant: Enter a name for the tenant and a description
  4. Define Root URL: The root URL for production is always invalid link: https://openapi.ariba.com
    • You can also adjust the extended service ID (the ID used as SID in LMDB) here.
  5. Confirmation: Check your input values and click 'Finish'.

Create the End-Point

  1. Select your SAP Cloud Platform cloud service from the list and click 'Configure Cloud Service' .
  2. Configure Endpoints: Click the 'Add' button on the 'HTTP Endpoints' tab.
  3. Enter the following information:
  • Description: A meaningful description
  • OAuth URL: https://api.ariba.com/v2/oauth/token
  • Application Key: Unique ID per application, generated on creation of the application, checked by the Open API Gateway
  • Client ID: Another Unique ID per application, generated on approval of application
  • Client Secret: Unique ID per application used to generate access tokens for applications
  • If necessary add proxy information to connect to the SAP Ariba Network

 

 
 

Monitoring Configuration

Step 1: Configure Exception Management

For SAP Ariba Network, you might have to set up two distinct exception log stores as described below and, depending on your integration solution, to monitor the full SAP Ariba Network Supply Chain Collaboration solution. You have to set up the exception store for exceptions occurring in SAP Ariba Network Supply Chain Collaboration. Additionally, if your integration includes the SAP Ariba Network Integration add-on installed in the SAP ABAP on premise system, you need to set up one log store that collects the exceptions occurring in this add-on.

Exceptions in SAP Ariba Network Integration Add-On

The SAP Ariba Network Integration add-on writes single exceptions into error messages in the ABAP Application Log. These application log entries can be collected with the log store for the SAP Ariba Network Integration add-on.

The log store is set up on the SAP ABAP on-premise system on which the add-on is installed.

To access Exception Management setup, go to transaction SOLMAN_SETUP → Application Operations → Exception Management 

  1. In the 'Define Scope' step, select the 'Technical Systems' tab and your SAP ABAP system. If you did not configure the system before, make sure to select 'All Systems' in the view drop-down. Click 'Configure' or click 'Next' two times. You will enter the 'Exception Configuration' step.
  2. Click 'Add / Configure Log Store' → Standard then select 'SAP Ariba Network Integration Add-on Logs'.
  3. Select the fields for filtering for your log store. The 'SUBOBJECT' field is selected by default. While there are many filter fields available, as this log store is based on the Application Log log store, it does not necessarily make sense to use them all. Usually, just the 'SUBOBJECT' field is enough. If you want to filter on the rest, check the actual log record you are looking to catch in SLG1 and maintain the filter fields accordingly. The following filter fields are available:
    • SUBOBJECT (mandatory): Choose between INBOUND, POLLING or OUTBOUND
    • EXTNUMBER: External ID of the Application Log entry
    • MSGID: Message Class (e.g. E (Error))
    • MSGNO: Message Number
    • MSGTXT: Message Text
    • PROGRAM: Program triggering the log entry
    • STATUS: Select E (Error) or W (Warning)
    • TCODE: Transaction code triggering the log entry
    • USER: The user who triggered the log entry
  4. Maintain the filter values for the fields in the 'Filter Definition' panel under the log stores table. You can also add, remove or change filter fields and values later on in this area. You can use different operators for your filter value. You can add more than one filter field combination per log store. To add an additional filter field combination, click the 'Add Filter' button in the 'Configured Log Stores' panel.
  5. You should not set up the monitoring for the exceptions in the Exception Management. If you activate the monitoring here, you will receive an alert (and if set up this way an email) for every single exception in the application log. Instead we will use Interface and Connection Monitoring to monitor the central exceptions store for exceptions. 

Exceptions in SAP Ariba Network

Typically you collect exceptions directly from SAP Ariba Network. Please note that you need SAP Solution Manager 7.2 SP 07 to do this.

To access the Exception Management setup please go to transaction SOLMAN_SETUP → Application Operations → Exception Management 

  1. In the step 'Define Scope' select the tab 'Cloud Services' and your SAP Ariba cloud service. If you didn't configure the system before make sure to select 'All Cloud Services' in the view drop-down. Click on 'Configure' or click 'Next' two times. You will enter the step 'Exception Configuration'.
  2. Click 'Add / Configure Log Store'. Select 'SAP Ariba Network Transaction Monitoring API'. Select the correct end-point for the SAP Ariba Network if you have more than one.
  3. Select the fields for filtering for your log store.  The following filter fields are available:
    • alert_type (mandatory): Select FAILURE or WARNING
    • process_name: The specific business document that is tracked in an event. (e.g. TRANSACTION_TRACKING_CONFIRMATIONDOCUMENT)
    • receiver_id: The receiver of the business document. This is a unique SAP Ariba Network ID. An SAP Ariba Network ID is always AN followed by 11 digits (e.g. AN12345678901)
    • sender_id: The sender of the business document. This is a unique SAP Ariba Network ID.
  4. Maintain the filter values for the fields in the Filter Definition panel under the log stores table. You can also add, remove or change filter fields and values later on in the area. You can use different operators for your filter value. You can add more than one filter field combination per log store. To add an additional filter field combination click on the button 'Add Filter' in the 'Configured Log Stores' panel.
  5. You should not set up the monitoring for the exceptions in the Exception Management. If you activate the monitoring here, you will receive an alert (and if set up this way an email) for every single exception in the application log. Instead we will use Interface and Connection Monitoring to monitor the central exceptions store for exceptions.
 
 

Step 2: Configure Interface and Connection Monitoring

To access the Integration Monitoring setup please go to SAP Solution Manager Configuration (SOLMAN_SETUP) → Application Operations → Integration Monitoring → Interface and Connections.

Navigate to the 'Define Scope' step. You can create a new scenario for the SAP Ariba monitoring or use an existing scenario. Make sure the on premise system for the SAP Ariba scenario and the Cloud Service created for SAP Ariba are part of the 'Interface and Connection Monitoring' scenario. If you use the integration via SAP CPI this cloud service should be added as well. 

Monitoring Template: Cloud (Ariba Add-on) 

Create the Interface Channel:

  1. Select the scenario and click 'Next'
  2. In step 'Preparation' perform all relevant manual activities and run all automatic activities.
  3. In step 'Configuration' click the 'Add' button.
    • Channel Name: Enter a meaning full name (max. 30 characters)
    • Type: Select 'Cloud'
    • Monitoring Template: Select 'Cloud (S/4 CE)'
    • Description: Enter a description for the channel
  4. Click Next.
  5. Source type:
    • If the source system is the on premise system, please select 'Technical System
    • If the source system is the SAP S/4 CE system please select 'External Service'
  6. Source: Select the on premise system resp. the SAP S/4 CE Cloud Service from the drop-down list
  7. Target Type:
    • If the target system is the on premise system, please select 'Technical System'
    • If the target system is the SAP S/4 CE system please select 'External Service'
  8. Target: Select the on premise system resp. the SAP S/4 CE Cloud Service from the drop-down list
  9. The measuring point is selected automatically
  10. If more than one client are connected for the on premise system please select the correct client for the monitoring
  11. Click Next.
  12. Click Finish.

Maintain the Interface:

  1. Select the interface channel you created
  2. The interface channel type does not have any configurable parameters on the 'Interfaces' tab

Select Metrics:

  1. On the tab 'Metrics' select the metrics you want to monitor
  2. Provide the following information:
    • Parameter Set Name: You can enter a name for the parameter set to distinguish it if you have more than one
    • Sub-object name: Enter the sub-object of the log
    • User name: The user that triggered the exception
    • Client (expert field): The source client for the exception
    • External ID (expert field): The external ID of the exception
    • Message ID (expert field): Message Class (e.g. E (Error))
    • Message no. (expert field): Message Number
    • Message text (expert field): Message Text
    • Transaction Code (expert field): Transaction code triggering the exceptions
  3. Save your interface channel by clicking on the 'Save' button.  

Monitoring Template: Cloud (Ariba Network)

Create the Interface Channel:

  1. Select the scenario and click 'Next'.
  2. In the 'Preparation' step, perform all relevant manual activities and run all automatic activities.
  3. In the 'Configuration' step, click the 'Add' button.
    • Channel Name: Enter a meaningful name (max. 30 characters)
    • Type: 'Cloud'
    • Monitoring Template: 'Cloud (SAP Ariba)'
    • Description: Enter a description for the channel
  4. Click 'Next'.
  5. Source Type:
    • If the source system is the on-premise system, select 'Technical System'.
    • If the source system is the SAP Ariba cloud service, select 'External Service'.
  6. Source: Select the on-premise system respectively the SAP Ariba Cloud Service from the drop-down list.
  7. Target Type:
    • If the target system is the on-premise system, select 'Technical System'.
    • If the target system is the SAP Ariba cloud service, select 'External Service'.
  8. Target: Select the on-premise system respectively the SAP Ariba Cloud Service from the drop-down list.
  9. The measuring point is selected automatically.
  10.  If more than one client are connected for the on-premise system, select the correct client for monitoring.
  11.  Click 'Next'.
  12.  Click 'Finish'

Maintain the Interface:

  1. Select the interface channel you created
  2. On the 'Interfaces' tab click the 'Add' button.
  3. Provide the following information:
    • Interface Name: Enter a name for the interface.
    • Process Name: The specific business document that is tracked in an event (e.g. TRANSACTION_TRACKING_PURCHASEORDER).
    • Event Name: This is the event name that indicates the document processing stage (e.g. DOCUMENT_RECEIVE_FAILED).
    • Sender ID: The sender of the business document. This is a unique SAP Ariba Network ID. An SAP Ariba
    • Receiver ID: The receiver of the business document. This is a unique SAP Ariba Network ID.

Select Metrics:

  1. On the 'Metrics' tab, select the metrics you want to monitor.
  2. Enter the metric parameters (only for some of the metrics):
    • Script Name: Enter the name of the UXMon script used to monitor the Ariba Network availability.
      • The script shall, depending on the integration scenario, check the availability of the following URL:
        • Integrating SAP ERP with SAP Ariba Network via direct connectivity: https://service.ariba.com/ANSapGateway.aw/ad/ping.
        • Otherwise: https://service.ariba.com/ANCXMLDispatcher.aw/ad/ping.
    • Message text: Filter on the message text of the exception Note.
  3. Save your interface channel by clicking on the 'Save' button.
 

Filter Values in Interface and Connection Monitoring

Since the data collection is based on the content of the global exceptions store, you can always check the collected exceptions in Exception Management. All filter parameters are part of the collection context of the exceptions. The filters applied in Interface and Connection Monitoring allow you to filter the exceptions collected by the Exception Management further. However if the filters in Exception Management do not collect an exception, it is not available in the central exception store and you will not be able to find it in Interface and Connection Monitoring! 

 

You can maintain attributes as described in the Interface and Connection Monitoring Setup on the 'Attributes' tab.

Thresholds and the collection schedule are maintained in the next step of the guided procedure. Once you have maintained all your channels, click 'Next' in the main guided procedure to move to the 'Activation' step.

Maintain Thresholds and Schedule:

  1. Select the alert for the SAP Ariba Network channel (the alert is the line with the red flash icon next to it).
    • On alert level you can maintain notification and incident message creation
    • Do not remove the flag for 'Do not Group Individual Occurrences' as this flag ensures that an alert each time new exceptions are found during a data collection interval
  2. Select the metrics.
    • Do not change the data collector type or data collector name on the tab 'Data Collection' as the monitor will not work anymore if this is changed.
    • Do not change the threshold if it is set to 'Already Rated'.
  3. Click 'Apply and Activate' → <Choose one option> to activate the monitoring.

If not active you can also activate the reporting for the channels by checking the box in the column 'Reporting'. This way you can see a history of the number of exceptions that happened and also place the metric on the OCC Dashboard in Focused Insights. 

 

Configuration for Monitoring Template: Web Services ABAP

This monitoring template is used to monitor the performance and for exceptions happening in the Web Service communication between the SAP Ariba Network Integration add-on in SAP ABAP and SAP Ariba Network or SAP Cloud Platform Integration integrating SAP ERP and SAP Ariba.

For detailed setup information on how to set up this channel type, refer to the Interface and Connection Monitoring documentation for configuration of Web Service Channels.

Which Web Service proxy/name you need to enter depends on the scenario in the SAP Ariba Network integration: 

 

Scenario

Web Service proxy/name

Polling messages from SAP Ariba Network
  • CO_ARBFND_PRX_ GPDQ _OUT (synchronous outbound)
Receiving messages from SAP Ariba Network
  • II_ARBFND_PRX_CCPAYP_IN (asynchronous inbound)
  • II_ARBFND_PRX_CONF_IN (asynchronous inbound)
  • II_ARBFND_PRX_INVC_IN (asynchronous inbound)
  • II_ARBFND_PRX_ORDR_IN (asynchronous inbound)
  • II_ARBFND_PRX_PAYR_IN (asynchronous inbound)
  • II_ARBFND_PRX_PREM_IN (asynchronous inbound)
  • II_ARBFND_PRX_QTEM_IN (asynchronous inbound)
  • II_ARBFND_PRX_RCPT_IN (asynchronous inbound)
  • II_ARBFND_PRX_SHIP_IN (asynchronous inbound)
  • II_ARBFND_PRX_SRVE_IN (asynchronous inbound)
Sending messages to SAP Ariba Network
  • CO_ARBFND_PRX_OADP_OUT (synchronous outbound)
  • II_ARBFND_PRX_OADP_IN (asynchronous outbound)
Notifications from SAP Ariba Network

Note that SAP Ariba offers, independently of SAP Solution Manager, a notification mechanism, via e-mail, for the Supply Chain Collaboration buyers.

These e-mails inform about various events, as documented in the 'SAP Ariba Supply Chain Collaboration integration and configuration' guide. They are sent, either upon event occurrence (which could potentially generate a high number of e-mails), or as a daily summary report.

As a consequence, when you set up SAP Solution Manager for SAP Ariba Monitoring, you could decide to switch off the e-mail notification in SAP Ariba by unchecking the notifications for the 'General Notification Option'.

However, business users generally register for other relevant network notifications to be informed about business related information such as order confirmation rejected or downtime notifications.