Skip to Content

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

Context Function : copyValue() USE

Hi

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="http://help.sap.com/saphelp_nw04/helpdata/en/26/d22366565be0449d7b3cc26b1bab10/content.htm">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

<b><Partner>

<Name>lalit</Name>

<addData>Noida</addData>

<addData>Raj Road</addData>

<addData>201001</addData>

</Partner>

<Partner>

<Name>lalit1234</Name>

<addData>Noida123</addData>

<addData>Raj Road678</addData>

<addData>20100190</addData>

</Partner>

<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.

Regards

- Lalit -

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