on 12-08-2008 2:33 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
Hi
use remove context and then ifthenelse.
If still unresolved provide us source and target structure with desired output.
Thanks
Gaurav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi yashwant,
try to use removeContext function before ifthenelse step.
thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just use IF and Else function to achieve this one. Give us the target structure for more help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
use "useOneAsMany" standard function in your mapping for that particular target node....this will solve your problem.
Regards,
Abhishek.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.