Skip to Content

REST Adapter Receiver SAP PI. oData Service S4Hana

Oct 26, 2016 at 10:35 AM


avatar image
Former Member


we are trying to consume one oData service following official documentation (

First of all We need to call GET method to obtain "X-CSRF-Token" and after call POST method using token obtain in GET, but unfortunately we get a "Forbidden" error. Reading different post We need to send Cookies but We can´t obtain during the GET call.

We tried using adapter module to read and write cookie before get and after and recuperate using UDF in Message Mapping.

¿Anybody has any idea to get/set Cookie?

¿Our steps are correct? ¿are there any other way to call oData services in S4 from PI?

Many thanks,


10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers