cancel
Showing results for 
Search instead for 
Did you mean: 

What is Context and queue?

Former Member
0 Kudos

Q.1What is context and queue in graphical mapping?

Q.2What is the difference between context and queue in graphical mapping and how these concepts are useful in mapping?

Accepted Solutions (1)

Accepted Solutions (1)

aashish_sinha
Active Contributor
0 Kudos

Hi,

Context Change

Message mapping works internally by using queues

If no further elements are imported at a particular hierarchy level, a Context Change is inserted in the queue

Use node functions to handle changes in the message hierarchy.

Context changes have impact on:

User-Defined Functions

Breaking and inserting of hierarchy levels Manipulation of queues ant contexts

Explicit context selection on source elements and nodes

Using node functions

removeContexts: deletes all context changes of a queue

SplitByValue: insert additional context changes in a queue

Check this link for all details.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/be05e290-0201-0010-e997-b6e...

A tool to display queues:

-Upload or create source xmldocument in test mode

- Right-click on box representing element or function

- Select “Show queue”

Also check out this link

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/be05e290-0201-0010-e997-b6e...

Hope this will help you.

Regards

Aashish Sinha

PS : reward points if helpful

Answers (1)

Answers (1)

rohit_goel
Participant
0 Kudos

Hi Suresh,

Message mapping in XI works by means of queues.

A queue contains an entire XML instance of the source message.

Context of an element is nothing but just the level (with reference to its parent node) where the XML tag appears in the given XML document.

Level of any element is set to the immediate parent node by default.

All the nodes and elements that belong to the same parent node are said to be in the same context.

http://help.sap.com/saphelp_nw70/helpdata/en/bd/ca1105c81c6742a0f8c8d49f8834bf/frameset.htm

Context Changing is just changing the level of XML tag (element level in the XSD) in the XML document or It is just the flexibility provided by XI for changing the XSD of the XML document at the runtime.

Contexts in XI can be handled by various ways like Node Functions, advanced User Defined Functions.

u can have a look at this blog:

/people/sravya.talanki2/blog/2006/12/26/aspirant-to-learn-sap-xiyou-won-the-jackpot-if-you-read-this-part-ii

Regards,

ROhit

Pls reward points if found useful , would be appreciable..:)