Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Context Function : copyValue() USE


I have to use the context function in my scenario but before that I was trying the functions with different data values & conditions. Now when I am using <b>copyValue</b> using same example given in <a href="">copyValue Help document</a> with source structure as

<i>partner 0 to Unbounded

Name 1 to 1

addDat 3 to 3</i>

& Target Structure as

<i>Customer 0 to Unbounded

Name 1 to 1

City 1 to 1 =CopyValue([nnumber=0]addData)

Street 1 to 1 =CopyValue([nnumber=1]addData)

Zip 1 to 1 =CopyValue([nnumber=2]addData)</i>

Now when I am sending single record, I am getting the desired results but when I am sending 2 records the value of city, street & zip are of the first record. E.g




<addData>Raj Road</addData>






<addData>Raj Road678</addData>



<Customer><Name>lalit</Name><City>Noida</City><Street>Raj Road</Street><Zip>201001</Zip></Customer><Customer><Name>lalit1234</Name><City>Noida</City><Street>Raj Road</Street><Zip>201001</Zip></Customer></b>

Also when I am giving only one value of addData in Source the same value is getting copied in city, street & zip, it should give the exception over here.

Pls. suggest that these are the limitations of copyValue function or I am doing something wrong.

I am testing my mapping in Integration Builder only.


- Lalit -

Former Member
Not what you were looking for? View more on this topic or Ask a question