on ‎2008 May 30 2:58 PM
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
Request clarification before answering.
Hi,
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).
User-Defined Functions
Use
If the standard functions for a target field mapping do not fulfill your requirements, or if the graphical representation becomes unclear due to the complexity of the mapping, you have the option of creating your own user-defined functions. You can create Java source text in this function. The function is included in the Java coding that is generated for the message mapping as a Java method.
Advanced User-Defined Functions
Use
Advanced user-defined functions can access more than just individual field values. Instead, you can import a complete context or an entire queue for a field as an array before your function is called. This enables you, for example, to perform calculations on all field values of a context as well as to divide up the contexts themselves further by inserting a context change.
Features
Advanced user-defined functions can import either just one context into the input arrays, or complete queues. Make your selection by selecting or deselecting the Save Entire Queue in Cache checkbox in the function editor.
Working with Contexts or Queues
Information in Cache
Implications
Context
Advanced functions that only import one context do not have an identifiable context change. You can of course insert a context change into the results list.
Queue
Since one or more entire queues are imported in this case, this option is more memory-intensive and is not suitable for very large messages.
The input arrays do not contain the context change at the start and end of the context (or of the queue). These context changes are implicitly always available and cannot be identified or deleted by the user-defined function.
For further reference go through these links..
http://help.sap.com/saphelp_nw04/helpdata/en/40/7b8e40496f6f1de10000000a1550b0/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/d9/718e40496f6f1de10000000a1550b0/content.htm
Thanks,
Satya Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.