Send response to SAP when RITM state changes to closed complete

Anamika Thakur
Tera Contributor

I have a requirement where an RITM needs to be created whenever a payload is received from SAP. For this, I have already developed a Scripted REST API in ServiceNow that successfully creates the RITM.

My second requirement is to send a response/callback to SAP when the RITM state changes to "Closed Complete".

Could anyone help me with the best approach to implement this?

3 REPLIES 3

Ankur Bawiskar
Tera Patron

@Anamika Thakur 

for your 2nd requirement you need API from SAP so that you can let them know when RITM changes to Close Complete.

Do you have that API?

if not then ask them

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Bhavya11
Kilo Patron

Hi @Anamika Thakur ,

 

To implement this try this way

  • Create REST Message with SAP endpoint (if endpoint details are not available, please obtain them from SAP)  
  • Create custom action to handle the payload 
  • Configure flow designer to trigger when RITM state changes to Close complete
  • Pass the required RITM details to custom action.
  • have custom action sends post request to SAP API
  • Log success/failure response to handle any errors
If this information proves useful, kindly mark it as helpful or accepted solution.

Thanks,
BK

Tanushree Maiti
Tera Patron

Hi @Anamika Thakur 

 

For your second requirement ,  If you have SAP end point and credential:

 

Check it : Ways of data integration between ServiceNow and SAP and how do I go about differentiating them?

 

https://community.sap.com/t5/enterprise-architecture-blog-posts/servicenow-snow-integration-using-op...

 

 

 

 

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti