cancel
Showing results for 
Search instead for 
Did you mean: 

Servicenow integration with SAP

former_member808264
Discoverer
0 Kudos

I’m a new ServiceNow Administrator /Developer and a client ask me to develop a solution to integrate the ServiceNow data with SAP or vice versa.

And I have the following concerns:

1.-How can I get an instance in SAP to develop on it and start with the API integration?

2.-Servicenow is a cloud base service and I think that the SAP it’s a desktop software and it start to integrate it on the cloud, right?

3.-Im thinking of use the REST API of ServiceNow to send and receive the data, it’s there any other workaround just to be aware?

Note: I´m not an expert a just been in ServiceNow for like 3 months so if you have any tip that could help me in the future I will be grateful to hear it.

Former Member
0 Kudos

Thank you for visiting SAP Community to get answers to your questions. Since this is your first question, I recommend that you familiarize yourself with: https://community.sap.com/resources/questions-and-answers, as the overview provides tips for preparing questions that draw responses from our members.

Should you wish, you can revise your question by selecting Actions, then Edit.

By adding a picture to your profile you encourage readers to respond: https://developers.sap.com/tutorials/community-profile.html

Accepted Solutions (0)

Answers (1)

Answers (1)

johnsonit
Member
0 Kudos

Hello Friend,

Check this The code provided below is a basic example, and you may need to customize it based on your specific integration requirements and the capabilities of your SAP system. Additionally, consider consulting the official documentation for both ServiceNow and SAP for more detailed and up-to-date information on integration options and best practices.

(function process(/*RESTAPIRequest*/ request, /*RESTAPIResponse*/ response) { var requestBody = { // Construct your data payload here // Example: {"field1": "value1", "field2": "value2"} }; // Set up the HTTP Request to SAP var request = new sn_ws.RESTMessageV2(); request.setEndpoint('SAP_ENDPOINT_URL'); request.setHttpMethod('post'); request.setRequestHeader('Content-Type', 'application/json'); request.setRequestBody(JSON.stringify(requestBody)); // Execute the REST Message var response = request.execute(); // Process the SAP response if needed })(request, response);

This may helps