cancel
Showing results for 
Search instead for 
Did you mean: 

Need clarification on using the NodeFunctions in mapping

Former Member
0 Kudos

Hi All,

Can we use UseOneAsMany & Remove context functions in mapping of one field??

My requirement is, from Idoc one of the Header segment(E1ADRM1) will repeat 3 times with qualifier as "WE" "AG" & "AS".

I have to mapp the NAME1 field of header segment to the target if the qualifier is "WE" , for this i used remove context and its giving correctly

The folowing is the screenshot of mapp

http://img7.imageshack.us/img7/7000/mapp1.jpg

And also i have to repeat the header qualifier field which i said above from idoc as many times the plant in lineitem repeats.

For this i used UseOneAsMany function

the folowing is the screenshot

http://img241.imageshack.us/img241/7000/mapp1.jpg

then its throwing error as

Too many values in first queue in function useOneAsMany. It must have the same number of contexts as second queue

Please help us

Regards

Vamsi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Vamsi,

Source field -->equals to WE --> Change context to root --> then name1 --> copyvalue --> target.

Regards,

---Satish

Former Member
0 Kudos

Hi Satish,

I gave Copy Value here in my mapping, Could you please verify it whether it can be like this or not??

http://img44.imageshack.us/img44/8291/finalv.jpg

In this way results are coming correctly

Regards

Vamsi

Answers (1)

Answers (1)

Former Member
0 Kudos

Vamsi,

Instead of useoneasmany try copyvalue. After your condition put copyvalue.

Regards,

---Satish

Former Member
0 Kudos

Hi satish,

I really didnt get where you are asking me to place the Copy value function in my mapping, and also wat value i need to pass in Copy value function

Please let me know

Regards

Vamsi

Former Member
0 Kudos

Hi..

Aparently the problem is the context. please verify...

The function copy value repeat the value according the position on your array source.

Could you give and payload.