cancel
Showing results for 
Search instead for 
Did you mean: 

nodefunction

Former Member
0 Kudos

could any one help me out on spltbyvalue?

Accepted Solutions (0)

Answers (8)

Answers (8)

Former Member
0 Kudos

Try closing each forum once your problem gets resolved.

Mudit

Former Member
0 Kudos

Have a look

Split By Value

The SplitByValue () function is the counterpart to removeContexts(): Instead of deleting a context, we can insert a context change in the source value queue. We 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.

We can insert a context change in the queue after each value, after each change to the value, or after each tag without a value.

Eg

Source

<DT_Source>

<Subject> 1..1

<Marks/> 1…unbound

</Subject>

</DT_Source >

Target

<DT_Destination>

<Subject> 1…unbound

<Marks> 1…1

</Subject>

</DT_Destination>

We need to split out the marks values in the source structure to different contexts in the target structure

Mapping

Marks -- SBV --Marks

Mudit

former_member529475
Active Contributor
0 Kudos

Hi Praveen,

Splitby value in very general terms means the value will splitted every time in to that many nodes as many times the value is coming from sender

The SplitByValue () function is the counterpart to removeContexts(): Instead of deleting a context, we can insert a context change in the source value queue. We 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.

We can insert a context change in the queue after each value, after each change to the value, or after each tag without a value.

Split by value -

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

Cheers...

Vasu

<b>** REward POints if found useful **</b>

Former Member
0 Kudos

Check the links which has a full explanation

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

This Blog will explain the Real time example with screen shots

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

Nothing more to explain.

Warm Regads,

Vijay

Former Member
0 Kudos

Hi

1) splitByValue() is the counterpart to removeContexts()

2) inserts a context change in the source value queue

3) context change in the queue after each value, after each change to the value, or after an empty tag.

Regards,

Ramana Kumar. A

Former Member
0 Kudos

Node Functions:

Have a look at this help link -

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

Also these weblogs will help you -

/people/claus.wallacher/blog/2006/06/29/message-splitting-using-the-graphical-mapping-tool

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

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

Split by value -

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

Mudit

Former Member
0 Kudos

Hi,

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.

http://help.sap.com/saphelp_nw70/helpdata/en/79/2835b7848c458bb42cf8de0bcc1ace/frameset.htm

vasanth.

prabhu_s2
Active Contributor
0 Kudos

splitbyvalue insert the context.

<row>

<item>1</item>

<item>2</item>

<item>3</item>

</row>

item->splitbyvalue->target

<row>

<item>1</item>

</row>

<row>

<item>2</item>

</row>

<row>

<item>3</item>

</row>