cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping context issue - data not properly mapped

former_member440449
Participant
0 Kudos

Hi Gurus,

I have an IDOC to Web Service interface with next structures:

IDOC Structure

<IDOC>

     <E1EDP01> (0..unbounded)

          <01field1></01field1>

          <01field2></01field2>

          <E1EDPT1> (0..unbounded)

               <T1field1></T1field1>

               <T1field2></T1field2>

               <E1EDPT2> (0..unbounded)

                    <T2field></T2field>

               </E1EDPT2>

          </E1EDPT1>

     </E1EDP01>

</IDOC>

Web Service xsd

<SEG>

     <Concepts> (1..1)

          <Concept> (1..unbounded)

               <Cfield1></Cfield1>

          </Concept>

     </Concepts>

</SEG>

My mapping is like this:

For each E1EDP01 a concept must be created:

E1EDP01 --> Concept

If T1field1 = "AA" then send T2field to Cfield1

It's a very simple logic but it seems not to be sending the right values.

For example, if there are 2 E1EDP01 then 2 Concept segments are created BUT only one Cfielf1 is being filled and not the second one.

I tried playing with different contexts but doesn't seem to be working.

Can I do this without using an UDF?

Thanks in advanced!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Claudio Racing,

Try This Graphical mapping.

Here i have tried it Roughly for your mentioned Logic. item field is nothing but <E1EDP01> field. To make the context for Concept field i have used exists node function.

Regard's

Preethi.

former_member440449
Participant
0 Kudos

Thanks Preethi. Your solution works

Answers (1)

Answers (1)

Harish
Active Contributor
0 Kudos

Hi Claudio,

what is the context of T2field, you need to check the condition in parant context and put split by value at the end. This logic does not required UDF.

Please provide you mapping screenshot with input section for detail.

Regards,

Harish