cancel
Showing results for 
Search instead for 
Did you mean: 

get the session key and send data to Rest api after got session key from rest receiver channel

0 Kudos
571

HI All,

Hope you are doing well.

we are using sap PO 7.5 version. this requirement is for sap PO.

i have a requirement that get the session key from the login url and send actual data by updating the session key in header , data should be in json format.

login url and sending data url are different. we should use two urls(one for login and second is for sending actual data).

sending actual data url should be in dynamic as we are updating the one field in url.

can you please help me how can i achieve this.

Thanks & Regards

Madhu T

RubikWal
Newcomer
0 Kudos

You can obtain the session ID by calling a lookup service in an UDF. 
The trick here is that the lookup should call a second ICO instead of the actual token request API.  The ICO will call the token request API.

The second ICO should be a synchronous one, where you can obtain the sessionID in the response branch from the Dynamic Configuration.   The sessionID will likely stored in the 'Set Cookie' HTTP header parameter.  This can be access by http://sap.com/xi/XI/System/REST namesapce and 'Set-Cookie' value.

Accepted Solutions (0)

Answers (1)

Answers (1)

shashi_patan
Active Participant
0 Kudos

Hi Madhu,

Please Follow below link.

Token based authorization with OAuth 1.0 using File Lookup in sap PO

Hope this help !