cancel
Showing results for 
Search instead for 
Did you mean: 

about SplitByValue

Former Member
0 Kudos

hi,

please explain the functionality of SplitByValue and about the options

a) Each Value

b) Value Changed

c) Empty Value

in SplitByValue

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

split by value use

1.each value:

suppose your values in the queue are like as below

aaa

bbb

ccc

ddd

if you set the property of split by value to each value

then it will add the context change after ecah value.

the output of the split by value sholud be like

aaa

context change

bbb

context change

ccc

context change

ddd

2.value changed:

suppose your values in the queue are like as below

aaa

bbb

ccc

ddd

if you set the property of split by value to value changed

then it will add the context change whenever there is a change in value.

the output will be like as below

aaa

context change

bbb

context change

ccc

context change

ddd

3. empty value:

if you set the property of split by value to empty

then it will add the context change whenever there is empty value.

Thanks

Rinku

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi MVK,

The functionality of "<b>SplitByValue</b>" can be undersatood by below example.

<b>Example:</b> Suppose you have input data like this

MMM

MMM

MMM

VVV

VVV

KKK

KKK

SPACE

SSS

SSS

1. The output will be when you select "<b>Each Value</b>" as shown below

<b>Note:</b> <b>CC</b> --> Context Change

MMM

<b>CC</b>

MMM

<b>CC</b>

MMM

<b>CC</b>

VVV

<b>CC</b>

VVV

<b>CC</b>

KKK

<b>CC</b>

KKK

<b>CC</b>

SPACE

<b>CC</b>

SSS

<b>CC</b>

SSS

2. When "<b>Value Changed</b>" the output will be:

MMM

MMM

MMM

<b>CC</b>

VVV

VVV

<b>CC</b>

KKK

KKK

<b>CC</b>

SPACE

<b>CC</b>

SSS

SSS

3. When "<b>Empty Value</b>" the output will be:

MMM

MMM

MMM

VVV

VVV

KKK

KKK

<b>CC</b>

SPACE

<b>CC</b>

SSS

SSS

I hope it will help you to understand the concept of <b>SplitByValue</b>.

Regards,

Sarvesh

***Reward Point, if found helpful.

Former Member
0 Kudos

Hi,

In addition to Nilesh's reply, you can read this blog for a start.

https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2792. [original link is broken] [original link is broken] [original link is broken]

This will explain what SplitByValue is.

Regards,

Balaji.M

Former Member
0 Kudos

Hi Nilesh,

I have gone throught that already.

Could u please elaborate on Each Value,Value Changed,Empty Value by giving an example and also using the Display Queue,so that it will be more easy to me to understand

Regards,

mvk

Former Member
0 Kudos

hi mvk,

its quite simple...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..

This function is useful for for splitting messages.

For eg...in case of Each Value..every source value it will insert context change for you...

Input value :

111

111

222

333

333

Output :

111

CC

111

CC

222

CC

333

where CC -- Context change...Similar for other

2. Value Changed : Whenever there is change in input value...insert contex change..

3.Empty : whenever you get empty value insert context change..

Hope this will help.

Nilesh

Former Member
0 Kudos

Hello,

Check out this document on sap.help....you will get complete idea.

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

let us know if you need more details.

Nilesh