cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to host SAP PI/PO as a web service ?

prathmesh009
Explorer
0 Kudos
489

Hello Experts, 

I am working on a scenario involving integration between an SAP system and a third-party system, where SAP PI/PO is used as the middleware. My objective is to provide the third-party sender with an API of SAP PI/PO, which they will use to send data. The data received by PI/PO will be passed on to an OData service developed by an ABAPer.

Requirements:

  • The third-party sender will call the PI/PO API to send data.
  • PI/PO will need to send this data to the OData service.
  • The OData service requires a CSRF token in the request headers when receiving data.

Since I am new to SAP PI/PO, I would appreciate some guidance on the following:

  1. API Creation in PI/PO:

    • How can I create and expose the API in SAP PI/PO for the third-party system to send data?
    • What are the steps to configure the communication channel and integration flow?
  2. Routing Data to OData Service:

    • What is the best way to route the data from PI/PO to the OData service on the SAP backend?
    • Are there any specific configurations for the receiver communication channel to handle OData service calls?
  3. CSRF Token Handling:

    • The OData service requires a CSRF token to be included in the request headers.
    • How can I fetch the CSRF token from the OData service dynamically within PI/PO?
    • What is the recommended way to assign this token to the HTTP headers in PI/PO before sending the data to the OData service?

If anyone has experience with this type of integration, please share any best practices, detailed steps, or resources that can help me successfully implement this.


Best Regards, 

Prathmesh Sutar 
prathmeshsutar.sapcpi@gmail.com

Accepted Solutions (0)

Answers (0)