cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Message Mapping

Former Member
0 Kudos

Hello Guru,

I am doing a multiple message mapping. the purpose is:

the source message structure is

MT_input

|row <1...unbound>

-


|---plant

-


|---name

the two target message structure are:

MT_output1

-|row <1...unbound>

-


|---plant1

-


|---name1

MT_output2

-|row <1...unbound>

-


|---plant2

-


|---name2

there can be many row in source message, the value of plant could be 1 and 2.

I want all rows with plant = "1" goto MT_output1,

all rows with plant = "2" goto MT_output2.

but I can not accomplished this job with graphic mapping. could you give me help?

I don't want to use Java Mapping.

Thanks a lot.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You can use conditions based graphical mapping i.e. you can use IF function of graphical mapping.

IF plant = 1 map plant & name filed to MT1

same logic can be made for MT2 with plant value = 2 .

You need to use Constant (for plant value 1 or 2) & IF function to achieve this.

Regards

Sushil

Former Member
0 Kudos

Hi Sushil Sarda

Have you ever done this?

or could you send me an screenshooting of your mapping?

Thanks a lot.

Former Member
0 Kudos

Give me your mail id..

Regards

Sushil

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

MT_input

|row <1...unbound>

-


|---plant

-


|---name

the two target message structure are:

MT_output1

-|row <1...unbound>

-


|---plant1

-


|---name1

MT_output2

-|row <1...unbound>

-


|---plant2

-


|---name2

solution :

MT_input MT_output1

-|row <1...unbound> |row <1...unbound>

if the plant[context set to MT_input] is equals to 1 then map row from source to row in target[MT_output1]

plant and name mapping are direct.

Repeat the same mapping for MT_output2.

This definitely works, i have tried it.

Regards,

Pragati

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

1. Mapping for Row of MT_Output1

Plant of Source MT_INPUT with Context at MT_INPUT , with a IFwihtout else to check the value of plant and if matches, map Plant to the Row of target.

1. Mapping for Row of MT_Output2

Plant of Source MT_INPUT with Context at MT_INPUT , with a IFwihtout else to check the value of plant (2) and if matches, map Plant to the Row of target.

Rest will be straight mappin!

Regards

Bhavesh