cancel
Showing results for 
Search instead for 
Did you mean: 

Filename based on a payload-field condition?

Former Member
0 Kudos

Hi there,

I'm wondering if it's possible to condition the fieldname based on a payload "flag", like a simple "if flag = 1 then filename it's 'flat.txt', else filename it's 'nested.txt'." where flag is part of the payload and can be mapped to the target message...

I was looking for some adapter-specific attributes but it seems that this only applies for the SOAP message, not over the payload.

So i was thinking about java stack, like using global containers or something but i don't know how to access them using the ASMA bean or something like that, but i don't have any documentation how to do it, so if you can advise which will be the best way to achieve that, it will be great...

Points rewarded if useful...

Thanks folks.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

You can do it by using adapter specific attributes as mentioned in blog

/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14

You can write a UDF as mentioned by this blog, passing the flag to this UDF

Inside UDF you can check flag value and accordingly set the filename in dynamic configuration

prateek
Active Contributor
0 Kudos

Use of ASMA would be enough. See this

/people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping

http://help.sap.com/saphelp_nw70/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm

Regards,

Prateek