cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding collapse context

Former Member
0 Kudos

The help site from SAP is not clear on ...regarding "Collapse Context" node function..

In http://help.sap.com/saphelp_nw04/helpdata/en/58/cd834014d26f1de10000000a1550b0/content.htm

it mentioned CollapseContexts() as.....

Using collapseContexts() puts the first values of all contexts into a context. Empty contexts are replaced with an empty string

But actually when I used ...its taking the first value of each context ,Why so...

So is the documentation provided by SAP is wrong or I have taken it in wrong perspective...

Please suggest me on this....

Accepted Solutions (1)

Accepted Solutions (1)

santhosh_kumarv
Active Contributor
0 Kudos

Hi,

Yes! It will take the first value of each context, even the document tells the same

first values of all contexts

Thanks

SaNv...

Edited by: Sãnthosh Kûmãr V on Sep 21, 2008 5:59 PM

Former Member
0 Kudos

thats fine .... could you pls explain me about the empy context are replaced with empty values

santhosh_kumarv
Active Contributor
0 Kudos

An empty node with no value in the source will generate an empty string "" at the target side..

i.e. if there exist multiple value first occurance is selected and if no value is present then an empty string is populated

Thanks

SaNv...

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Documentation provided by SAP is right.

Output of This function is depending upon CC(Context Change)

1)

Using collapseContexts() puts the first values of all contexts into a context

e.g. 1) If Input Values are as follows,

A

B

CC(Context Change)

C

suppress value

D

CC(Context Change)

After putting collapse context Output Values are,

A

C

It takes 1st value only depending upon context.

2) Input value

A

CC(Context Change)

B

CC(Context Change)

C

CC(Context Change)

suppress value

CC(Context Change)

D

CC(Context Change)

Output Value

A

B

C

"" (Blank value)

D

Regards,

Rohit.