cancel
Showing results for 
Search instead for 
Did you mean: 

sample UDFs

Former Member
0 Kudos

Hi,

I am new to UDF's. Can anybody tell me the difference between simple UDF & Advanced UDF with some example code?

Thanks

Narayana

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Narayana,

the differnece is the simple UDF take a values with occurance 1of type string as input and process and produces a tring value as output.

Advanced UDF takes entire queue as input and writes the value to this queue.

Standard functions - http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm

UDF - http://help.sap.com/saphelp_nw04/helpdata/en/22/e127f28b572243b4324879c6bf05a0/content.htm

/people/stefan.grube/blog/2005/12/30/test-user-defined-functions-for-the-xi-graphical-mapping-tool-in-developer-studio

http://help.sap.com/bp_bpmv130/Documentation/Operation/MappingXI30.pdf

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d046c490-0201-0010-84b6-9df523cb...

Thanks,

Ram

Answers (1)

Answers (1)

agasthuri_doss
Active Contributor
0 Kudos

Hi,

This will help you

http://java.sun.com/j2se/1.5.0/docs/api/

/people/krishna.moorthyp/blog/2006/07/29/documentation-html-editor-in-xi

/people/sap.user72/blog/2006/02/06/xi-mapping-tool-exports

Simple function : Simple functions without paramters work like constants and produce the target element exactly once for each context.

if I use simple Functions (Which should be called every time and context, the target field should be build - in a single context) and advanced function(which should identify, depending on the result of the actual simple function call values from queued source fields) in a single element

Advance function : Advanced functions with paramters seem to produce the target element for each context

If you use advanced Functions, its little more complicate, then you have allready to provide a queue, which tells the advanced function - how many times to run and how how many result entries to create, 'cause these must match with the number of occurency of your target element (in simple words: you control the number of runs, that your single field mapping is processed)

Regards

Agasthuri Doss