cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping Error where a node is occuring 0......unbounded

Former Member
0 Kudos

Hi,

I am doing IDOC -FILE

I need to create the target field based on qualifier fields 002. But, it is taking the first occurance always..even i 've changed the context to next parent node.

Conditon :

If IDDAT = 002 and DATUM = 20081208 then display MLT_Dispatch else display MLT_Planning into the target.

Source :

<E1EDK03 SEGMENT="1">

<IDDAT>008</IDDAT>

<DATUM>20081209</DATUM>

</E1EDK03>

- <E1EDK03 SEGMENT="1">

<IDDAT>002</IDDAT>

<DATUM>20081208</DATUM>

</E1EDK03>

- <E1EDK03 SEGMENT="1">

<IDDAT>025</IDDAT>

<DATUM>20081206</DATUM>

I 've tried with the standard functions but, always that mapping taking the first occurence only.

Please give me the solution as how can i resolve this.

Thanks & Regards,

Y.Raj

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi XIExperts,

This problem has been solved by myself.

Here instead of AND boolean function i've used one more if else.

By that time using parallel processing done.

Don't know why AND function not worked for that even showing the queues also looks fine.

Anyway, thanks for your all valuable time to spent for this.

Thanks & Regards,

Y.Raj.

Former Member
0 Kudos

Hi,

Thanks for your all the valuable suggestions here. But, still no luck and i've applied all the possibilities.

Here am providing you my source and target structure.

condition:

If <IDDAT>002</IDDAT> and <DATUM>current date</DATUM> then

Target should be : MLT_Dispatch

Else

Target : MLT_Planning.

But, it is taking the first occurance always. and it is working for the below only if the source like this

<E1EDK03 SEGMENT="1">

<IDDAT>002</IDDAT>

<DATUM>20081209</DATUM>

Target is getting correctly : MLT_Dispatch

But, the mapping is not working for below source

eg., if the source is like this

<E1EDK03 SEGMENT="1">

<IDDAT>008</IDDAT>

<DATUM>20081207</DATUM>

</E1EDK03>

<E1EDK03 SEGMENT="1">

<IDDAT>002</IDDAT>

<DATUM>20081209</DATUM>

Here also target should be : MLT_Dispatch but,

showing target : MLT_Planning

Regards,

Y.Raj.

former_member194786
Active Contributor
0 Kudos

Hi YeswanthaRaj,

<<<<<< if the source is like this

<E1EDK03 SEGMENT="1">

<IDDAT>008</IDDAT>

<DATUM>20081207</DATUM>

</E1EDK03>

<E1EDK03 SEGMENT="1">

<IDDAT>002</IDDAT>

<DATUM>20081209</DATUM>

Here also target should be : MLT_Dispatch but,

showing target : MLT_Planning >>>

What is the occurence of your target structure? Can you paste your target structure as well here.

Which field should MLT_Dispatch and MLT_Planning be mapped in the target and what is the occurence of that field?

Thanks and Regards,

Sanjeev.

Former Member
0 Kudos

Hi

use remove context and then ifthenelse.

If still unresolved provide us source and target structure with desired output.

Thanks

Gaurav

SudhirT
Active Contributor
0 Kudos

Hi yashwant,

try to use removeContext function before ifthenelse step.

thanks.

Former Member
0 Kudos

Just use IF and Else function to achieve this one. Give us the target structure for more help.

former_member200962
Active Contributor
0 Kudos

Hi,

use "useOneAsMany" standard function in your mapping for that particular target node....this will solve your problem.

Regards,

Abhishek.

Former Member
0 Kudos

Hi could you please let me know where to use yhis..

Iam doing mapping in the below manner.

IDDAT(002) , DATUM equals (and) If then Else target

Regards,

Y.Raj.

Edited by: YeswanthRaj Kumar on Dec 8, 2008 4:15 PM

Edited by: YeswanthRaj Kumar on Dec 8, 2008 4:18 PM

Edited by: YeswanthRaj Kumar on Dec 8, 2008 4:18 PM

Edited by: YeswanthRaj Kumar on Dec 8, 2008 4:19 PM

Former Member
0 Kudos

Hi Raj,

provide sample values in Test tab and go to corresponding field mapping logic and check queues. It makes it clear as where exactly is the problem.

I suggest you to use RemoveContexts->SplitByValue but it should be used based on the nodes, target , source structures and other field mapping.

Do a check, if it still gives problem, send us you current mapping through flickr.

Regards,

Venkat.