cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Advanced Userdefined Functions

Former Member
0 Likes
320

What is the Queue, Context in Advanced User Defined Functions ...

when we use CACHE in advanced user defined function...

regards,

raj

Edited by: Raja Sekhar Reddy T on May 30, 2008 3:58 PM

View Entire Topic
Former Member
0 Likes

Hi,

this indicated which values from your XML will be inserted into your funciton

either one - value

from one context only - context

or all - queue

check this page to understand

Working with Contexts or Queues

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

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

look into this link that explains about the same.

value ---> is a value for the input parameter. It may be a single value or multiple values.

Queue-----> it is an entire instance of XML message. That means, if you have duplicates of a node, all those contexts will be includedin Queue, which is passed to UDF.

Context -


> refers to a particular context of the XML message.

Please refer to the following document which comprehensively explain differences b/w the various options with examples

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9202d890-0201-0010-1588-adb...

http://help.sap.com/saphelp_nw04/helpdata/en/d2/58cd3b11571962e10000000a11402f/frameset.htm

There r 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).

This will help u

http://help.sap.com/saphelp_nw2004s/helpdata/en/40/7b8e40496f6f1de10000000a1550b0/content.htm

Thanks!!

Soumya