cancel
Showing results for 
Search instead for 
Did you mean: 

Externalized parameters to be read dynamically in CPI

former_member302452
Participant
0 Kudos

Dear Experts,

I'm trying to build a scenario in CPI that would insert a value from a Property file which i stored in src.main.resource package.

I'm looking into Externalized Parameters below screenshot. I'm trying to pass these values as endpoint to SOAP receiver. Please suggest if anyone have done this before.

Note: The endpoints has to be dynamically selected based on the input fields value for example ABC1, ABC2 and ABC3. I've to trigger different endpoints for each value here.

Regards,

Thouheed

Accepted Solutions (0)

Answers (2)

Answers (2)

ashish_goel4
Active Participant
0 Kudos

Hi Thouheed,

First create a value mapping table with all the values. After that create a message mapping with input structure containing ABCXXX. In output you will get address corresponding to input value. Use this xpath value in content modifier to set it as header value. Use below blog , how to set dynamic address in soap adapter :

https://blogs.sap.com/2016/11/02/dynamic-address-in-the-soap-receiver-adapter-of-hana-cloud-platform...

Message mapping you can create dummy one with input structure containing value ABCXXX and output with one field as Address.

Hope this is what you are looking for.

Thanks,

Ashish


ashish_goel4
Active Participant
0 Kudos

Hi Mohammad,

You can dynamically set the address in soap receiver channel as below from Externalized parameters:

To dynamically select a particular address based on the input value you can use router to route to 3 different branches.

Thanks,

Ashish

former_member302452
Participant
0 Kudos

Hi Ashish,

We understand what you're saying but here our requirement is quite different.

We need to fetch multiple address based on multiple values. For example ABC1 can be till ABC10001. This ABCXXX is a part of input payload. We are reading ti dynamically and as of now we are routing it as a mapping part fix value.

But real time we can not do this mapping change. That is the reason i'm approaching externalized parameters(property file) option. Please suggest.

Regards,

Thouheed