Skip to Content
Dec 13, 2021 at 11:01 AM

How to use Bearer Token Authentication in SAP PI using UDF

531 Views Last edit May 13, 2022 at 02:35 PM 2 rev

Hi Experts,

I am working on a scenario to pass the Bearer Token as a Header element. I have used a UDF to capture the token through substring and from mapping it works fine. I tried to pass the same in target REST channel as a ASMA parameter but facing below error.

URL placeholder token not configured or has an empty value.

here are the steps I have performed to fetch the token:

Created two parameters in mapping and passed the same to lookup UDF.

Created separate receiver channel and provided the login url for fetching the token.

provided the valid channel & business component details in the ICO.

I am able to see the Token in mapping but whenever I am using Dynamic Conf udf I am seeing other error in mapping.

please suggest your inputs to achieve the same.