cancel
Showing results for 
Search instead for 
Did you mean: 

queue

Former Member
0 Kudos

Hi guys,

I an interview i was asked a question regarding collapse context.

There are 3 queues ( I think in the source structure)

queues 1--> 1 suppress 5 supress 6

queues 2---> 5 8 supress 1

queues 3---> 5 6 8.

what would be the output using the function collapse context?

As far as i know, queue is noting but entire xml instance of the source structure,but how come it contain 3 queues.

Please help me with the answer?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi suresh,

what would be the output using the function collapse context?

queues 1--> 1 suppress 5 supress 6

Output is 1 5 6.

queues 2---> 5 8 supress 1

Output is 5 1.

queues 3---> 5 6 8.

Output is 5.

1) Collapse Context used to remove the context.

2) Used to identify whether any value missing from input.

3) If any value is missing then output for that value create blank value.

Regards,

Rohit.

Rewards points if helful.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

collapse contest is used to ensure that the order of the values in the source is maintained in the target.

suppose for filed F1->collapsecontexts>TargetF1

This way, the TargetF1 fields created will have the following values:

1

blank

2

3

Collapse contexts makes sure that a target is created, even if there is a context change specified at the source.

for queue

you can look into following links

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/51a39490-0201-0010-5b9f-ae21e8b7...

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/be05e290-0201-0010-e997-b6e55f95...

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/20bb9649-e86e-2910-7aa9-88ed4972...

      • use ful then reward points

Regards,

Sumit Gupta

Former Member
0 Kudos

hi,

check the link...

[http://help.sap.com/saphelp_nw04/helpdata/en/bd/ca1105c81c6742a0f8c8d49f8834bf/content.htm]

[http://help.sap.com/saphelp_nw04/helpdata/en/3c/5d70b7d21e478fa569fec37325b9f6/content.htm]

Blogs:

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

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

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

*Reward Points If Its Useful*

Regards,

Prakasu

Former Member
0 Kudos

As far as i know, queue is noting but entire xml instance of the source structure,but how come it contain 3 queues.

NO...

You can have any no of queues in your structure depends on number of fields in the structure.You can find the Queue for each field of your structure...

Look at the display Queue in the mapping in the following blog...

/people/venkat.donela/blog/2005/06/09/introduction-to-queues-in-message-mapping