cancel
Showing results for 
Search instead for 
Did you mean: 

Multimapping 1 proxy -> to -> 2 txt files: Variable Substitution omitting content inside field

Former Member
0 Kudos

Hi experts,

I need to generate 2 distinct files with 2 different names like this pattern:

file 1: cMMYYYY   ex: c012013

file 2: mMMYYYY  ex: m012013

If I create one field for each message type, the first message type for file C and the second message type for file M, and I insert inside this field a date like MMYYYY can I use this content only for Variable Substitution and not for the result of the files?

Thanks,

Antonello

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Gagandeep,

it's not possible to use reference to field of source message type, like is write here:

"On the other hand, the payload-based variables let you get access to the contents of the message that is delivered to the receiver, with some kind of a query that you define in the variable definition. This gives you quite a lot of possibilities to create the file name that you need."

link here : http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=272171407

So, any idea?

Antonello

gagandeep_batra
Active Contributor
0 Kudos

Hi Antonello,

Sorry for that,

ya you can use "

Adapter-Specific Message Attributes and Dynamic Configuration"

for that i think.

Regards

Gagan

gagandeep_batra
Active Contributor
0 Kudos

Hi Antonello,

You can go for the conditional receiver determination in this  scenario.

and define the condition there

then you need 2 ID's,2 RA's and 2 CC's also

in CC u define the Variable substitution

can I use this content only for Variable Substitution and not for the result of the files?

yes,you can refer to source structure and ignore in mapping

Regards

gAGan

Former Member
0 Kudos

Hi Gagandeep,

thanks for the suggest about Variable Substitution taking the value from source message type and not from target message type. I will try this way.

Antonello