cancel
Showing results for 
Search instead for 
Did you mean: 

STD FUNCTIONS

Former Member
0 Kudos
52

Hi,

what is the role of COPY VALUE, split By Value standard functions.Please explain with screen shot and example ...

Regards,

Somenath

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi somenath,

COPY VALUE takes a specified value in the argument and copies it a number of times.

You can specify the position by double clicking on COPYVALUE

Split by value is very important since it introduces a context change as per the requirement. You can introduce a context change by each value,value changed or empty value.

For example if all your source data is under one context and you want them to be under different nodes at target you put split by value.

Thanks,

Sidhvin

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Chakraborty,

Copy Value function is just intimating the source file position of the particular line.. that means.. if source file contain 5 lines of data then.. use this copy value function and specify from which line you want to map the particular field to target field ( this is normally we need to use if the source file other than XML file)

Split By Value function is used to change the structure of source to target.. ffor example.. in the source file you are getting multiple individual line items.. but in the target side you want to save all the line items under one header .. then when ever line item was changing then assign the same header to the next line item also..

for more details.. just go thru these links..

http://help.sap.com/saphelp_nw04/helpdata/en/26/d22366565be0449d7b3cc26b1bab10/content.htm

http://help.sap.com/saphelp_nw04/helpdata/en/21/3bb8c495125e4eb5969f0377885fe0/content.htm

Thanks

@jay

aashish_sinha
Active Contributor
0 Kudos

Hi,

CopyValue :

You can use CopyValue() to copy the value of a position in the source structure and assign it to a target field for a frequently occurring source structure element. The value is copied each time the target field occurs in the target structure. However, it is copied a maximum of maxOccurs times.

refer http://help.sap.com/saphelp_nw04/helpdata/en/26/d22366565be0449d7b3cc26b1bab10/content.htm

SplitByValue :

SplitByValue() is the counterpart to removeContexts(): Instead of deleting a context, you can insert a context change in the source value queue. You then receive this element for each inserted context change instead of a top node element. However, for this to be possible, the top node source field must be assigned a top node target field and minOccurs must be >0. A maximum of minOccurs top node target fields can be inserted here.

refer this link http://help.sap.com/saphelp_nw04/helpdata/en/21/3bb8c495125e4eb5969f0377885fe0/content.htm

Hope this will help you.

regards

Aashish Sinha

PS : reward points if helpful

Former Member
0 Kudos

HI,

Please search on SDN before u psot these type of questions...One click on SDN will give u so many answers......

http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm

/people/sravya.talanki2/blog/2005/08/16/message-mapping-simplified--part-i

/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii

/people/stefan.grube/blog/2005/12/29/new-functions-in-the-graphical-mapping-tool-xi-30-sp13

Thnx

Chirag

Former Member
0 Kudos

i think copy value is the generating function ....it can copy the value of ource as many times as u want to target.....

split by value is a node function .. it inserts context at each value in target structure.