cancel
Showing results for 
Search instead for 
Did you mean: 

Idoc mapping issue

Former Member
0 Kudos

Hi,

I'm doing IDOC to Flat file and the Input structure xml is:

<?xml version="1.0" encoding="UTF-8"?>

<DEBMAS06>

<IDOC>

<E1KNA1M>

<KUNNR>0000300622</KUNNR>

<E1KNVVM>

<E1KNVPM>

<PARVW>AG</PARVW>

<KUNN2>0000300622</KUNN2>

</E1KNVPM>

<E1KNVPM>

<PARVW>RE</PARVW>

<KUNN2>0000500569</KUNN2>

</E1KNVPM>

<E1KNVPM>

<PARVW>RG</PARVW>

<KUNN2>0000500569</KUNN2>

</E1KNVPM>

<E1KNVPM>

<PARVW>WE</PARVW>

<KUNN2>0000300622</KUNN2>

</E1KNVPM>

</E1KNVVM>

</E1KNA1M>

</IDOC>

</DEBMAS06>

1) Now if PARVW = WE and if his KUNN2 = KUNNR then set flag to Primary else NO flag, thats one problem

2) How to get an output in this way WE,300622,RG,500569,RE,500569,AG,300622 mapping to target node ADDR_type.

Thanks,

Srini

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hey,

Design for the first issue.

Select an Equals Function (it is a text function)

Input 1 to Equals is PARVW

Input 2 is a Constant with value WE

Select another Equals function.

Input 1 to the second Equals is KUNN2

Input 2 to the second Equals is KUNNR

Select an AND(Boolean)

Input 1 to AND is Output of first Equals.

Input 2 to AND is Output of second Equals.

Select an ifWithoutelse function(boolean)

Output of AND is input to if.

Consant(Primary) input to then.

right click on the ifwithoutelse function and set keeps to false.

Output of ifwithoutelse is input to flag.

reward points if useful.

regards,

Milan

former_member194786
Active Contributor
0 Kudos

Hi Srinivas,

<<How to get an output in this way WE,300622,RG,500569,RE,500569,AG,300622 mapping to target node ADDR_type.>>>

You duplicate your target side parent node of ADDR_type for 4 times and map that parent node to the following condition:

Target Parent Node-> createIf->PARVW = WE

Similarly for all 4 occurence of parent nope provide the condition. Now map the ADDR_type to 300622(in this case) and so on.

Let me know if you are facing any problem.

Regards,

Sanjeev.