cancel
Showing results for 
Search instead for 
Did you mean: 

UDF

Former Member
0 Kudos

hi sap-xi guru,

can you explain me what is the difference between context and queue in UDF.what are the properties that are present under these context and queue option.

Thanks & Regards

singothu

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

refer this wiki where it is clearly explained with screen shots difference between context and Queues when used in a UDF

[https://wiki.sdn.sap.com/wiki/display/XI/UDFExecutionType-ContextandQueue.]

Former Member
0 Kudos

Hi,

You can get an idea about Contexts or Queues in below link

http://help.sap.com/saphelp_nw04/helpdata/en/f8/2857cbc374da48993c8eb7d3c8c87a/content.htm

value -


> is a value for the input parameter. It comes one by one.

Queue -


> it is an entire instance of XML message. That means, all the data will come at once.

Context ---> There will be a context change in the coming XML data.

Moreover, there are 2 types of UDF - Simple and Advanced. Simple UDFs uses Value, wherein we can manipulate only one value (input is one String). Therefore a single string is expected as input and the output would also b a single string.

Advanced UDFs uses Context or Queue, where you manipulate many values (input is an array of Strings).

Regards,

Sarvesh

Former Member
0 Kudos

Hi Singothu,

Queue is the whole input file and context is your context. If your input has 10 details, if you use queue it takes into all the 10 details and if you use queue then it takes into each one separately.

Regards,

---Satish

Former Member
0 Kudos

Hi,

it defines the hierarchy level of the input (and output) of your UDF.

Queue is the complete input message.

Contexts divide the input message into segments like described here:

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

Regards

Patrick

former_member182004
Contributor
0 Kudos

Hi vsingothu,

Here you have an explanation:

http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/sap%20exch...

starting at page 40 onwards,

Hope this helps,

Juan