cancel
Showing results for 
Search instead for 
Did you mean: 

UDF to fetch latest token during data processing at receiver channel

chandrabhankushwaha
Discoverer
0 Kudos

Current Scenario:

As per the current logic we have dynamic Token mechanism in SAP PI message mapping and token is taken during mapping processing. In production, we have token validity defined for 30 mins.

Issue Description:

During any planned cutover/maintenance activity when the channels are stopped and data gets hold in PI for more than 30 mins in that case data cannot be sent because token gets expired after 30 mins. So to avoid such circumstances a feasible solution need to be implemented where token will be taken during data processing in receiver channel itself.

Solution:

A possible alternative is that we perform the look up in message mapping and then save multiple tokens in the dynamic context and then at Adapter level in the channel we select the latest and correct token that corresponds to the message.

Need expert advise to implement a UDF that can handle the above mentioned solution

Accepted Solutions (0)

Answers (1)

Answers (1)

vicky20691
Active Contributor
0 Kudos

Hi,

Why not utilise the out of box functionality. This works on channel level itself so there is no worry of your issue to happen

https://blogs.sap.com/2019/04/25/fetch-oauth-token-in-rest-is-now-out-of-the-box/

Regards,

Vikas

chandrabhankushwaha
Discoverer
0 Kudos

Thanks Vikas, I am aware of that functionality but we are currently on PO 7.4 and it does not support it, Can you help with any kind of enhancement in UDF logic itself till we upgrade our PI system to next SP and higher versions.