SAP Ariba Integration

Tushar Kale TK
3 min readApr 11, 2021

SAP integration is useful when companies using SAP deal with the companies that use Non-SAP applications.

Non-SAP applications need to implement integration to communicate with SAP. In this process, data is transferred from one source like application or software and makes it readable and usable in SAP.

In this story, I am going to post steps included in the integration of your B2B application with Ariba using NodeJS code samples.

This process is mainly divided into two parts first is the Punchout setup request and the second is the punchout order message.

The Punchout setup request is sent from Ariba to the Non-SAP application and the Punchout order message is sent from the Non-SAP application to Ariba.

To handle punchout setup requests we need to create an API to receive that request and share that API URL with Ariba And we have to also generate a UI page to provide access to selecting products for Ariba users.

Ariba sends requests to our API URL in cXML format. The request contains parameters defined in the following link https://success.coupa.com/Suppliers/Integration_Resources/Sample_Punchout_Setup_Request.

To read that data in the Nodejs application firstly we need to parse that cXML document into a JSON object. After converting cXML to JSON we need to store that request in a database for the future.

I have developed an API to receive punchout setup requests in MeteorJs( NodeJs Framework) as below.

When this API is successful Ariba will redirect you to your products page provided in the URL tag inside the punchout setup response. We have to fetch the request on the client-side. On that page, Ariba users will select products and can fill in other data like product quantity delivery period also billing shipping addresses can be added.

After product selection, we have to create a form to submit our data back to Ariba. The form must contain one input field holding a string of XML data having all product data as per this link https://success.coupa.com/Suppliers/Integration_Resources/Sample_Punchout_Order_Message

Check the form in React below to submit all selected products back to Ariba.

When the submit button is clicked it will post provided XML data to Ariba And all products will be added to the shopping cart of the Ariba system.

Thanks for taking the time to read this post. Feel free to ask doubts/suggestions inside the comment box and hit the clap button if you find the above information useful.

Thanks !!

> Tushar Kale

--

--

Tushar Kale TK

Enthusiastic Software Developer. Specialised in both frontend and backend. Ready to help people to solve their problems in all aspects of web development.