cancel
Showing results for 
Search instead for 
Did you mean: 

Calling 1st mapping field value in 3rd mapping in the same operation mapping

ranjith_kuruba
Explorer
0 Kudos

Hi All,

I have a scenario

In one operation mapping , I have 3 mappings

1.Idoc to idoc --> message mapping

2.Idoc to json --> Java mapping

3.json to a field + 4 extra fields --> Java mapping

Now in 1st mapping (Idoc to Idoc) I'm getting a plant number in one field, I have to map that field value in 3rd mapping (Java mapping) in one of the 4 extra fields

How can I approach it?

I planned to write a UDF in FL on the first mapping and calling that FL in 3rd java mapping, is this approach will work? Or any best way to get it.

Thanks

Ranjith

Accepted Solutions (0)

Answers (2)

Answers (2)

apu_das2
Active Contributor

Find out the field mapping in the target idoc field of 1st Mapping.

That value is definitely passed to your 2nd and eventually 3rd mapping. You need to access that field in you 3rd Java Mapping and do the formatting accordingly.

If value created in the 1st mapping is not coming to 3rd mapping then you need to create an additional field to pass the value to your 3rd mapping.

Global container is visible only in different UDF of same MM. It is not accessible in a separate mapping.

Thanks,

Apu

former_member190293
Active Contributor

Hi Ranjith!

I haven't ever tried it myself, but at first sight:

1. Try to use Global container object within UDF to save value at first step and to read it back in the third step (but I'm not sure about the possibility to access Global container in java mapping).

2. Try to make use of output mapping parameter.

3. Create extra field for your purpose or use Dynamic Configuration.

Regards, Evgeniy.