cancel
Showing results for 
Search instead for 
Did you mean: 

regarding COLLAPSE CONTEXT

Former Member
0 Kudos

q) can any body tell me real usage of COLLAPSE CONTEXT with real time example ,very urgent

Accepted Solutions (0)

Answers (7)

Answers (7)

Former Member
0 Kudos

Collapse context for removing the duplicate values.

source(Company codes)-->Sort by-->Collapse Context-->destination

Ex :

Company codes

100

200

400

100

400

300

after sorting

100

100

200

300

400

400

After Collapse Context

100

200

300

400

Former Member
0 Kudos

The help site from SAP is misleading, I found many errors there.

For this node function, just remember one sentence Raj provided:

Collapse Context will take the first value of each context and generate the output

Keep in mind that in output, the context change are removed, so it called collapscontext.

Liang

justin_santhanam
Active Contributor
0 Kudos

Chandra,

Keep this a reference - http://www.flickr.com/photos/8764045@N06/2264815255/sizes/o/

http://www.flickr.com/photos/8764045@N06/2264815257/sizes/o/

If you look at the example in the above link, for each company Row needs to be created also Company in Target needs to be created for each Company. Forget abt rest of the nodes, take only Row.

Company(Change Context)-->SplitByValue(ValueChanged)-->Collapse Context-->Row

See the sample data

Company(Change Context)

1000

1000

2000

3000

4000

4000

4000

SplitByValue(ValueChanged)

1000

1000

ContextChange

2000

ContextChange

3000

ContextChange

4000

4000

4000

Collapse Context

1000

2000

3000

4000

So Basically, Collapse Context will take the first value of each context and generate the output.

I hope it helps you a bit!

raj

Former Member
0 Kudos

Hi chandra

Collapse Context is used in Node Functions..

If u have a context change then this collapse context will create empty tas in the target for every context change in the source..

In real time if u have a context change mens node change..then their to fill emtpty tag collapse context is used...

thanks

krishna

Former Member
0 Kudos

Hi,

Check this link for node funtions.

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

Regards,

Phani

Former Member
0 Kudos

collapseContexts- “ There is just a slight difference between my children or grand children or great grand children”. Similar to removeContext but context change is replaced with “”. If we need to create empty tags in the target for every context change in the source we can use it.

former_member614185
Contributor
0 Kudos

Check out this link,

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

Example also there

Edited by: Prabu on Feb 22, 2008 10:33 AM