cancel
Showing results for 
Search instead for 
Did you mean: 

any example for user-defined fuction

Former Member
0 Kudos

Hi all,

i need to write user defined fuction , i am very much confused with container and ll this stuffs , pleasse send me example with coding explanation

thanking you

sridhar

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

How to check JDBC SQL Query Syntax and verify the query results inside a User Defined Function of the Lookup API -

http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm

Re: Advanced User Defined Functions - Handling Contexts

Posted: Aug 31, 2006 7:45 AM in response to: Kausik M Reply E-mail this post

Hi,

This blog talks about context handling

/people/riyaz.sayyad/blog/2006/04/23/introduction-to-context-handling-in-message-mapping

This is will give you a clear idea and will be hwlpful for sure

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

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/190eb190-0201-0010-0ab3-e69...

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/190eb190-0201-0010-0ab3-e69...

http://help.sap.com/saphelp_nw04/helpdata/en/40/7b8e40496f6f1de10000000a1550b0/frameset.htm

http://help.sap.com/saphelp_nw04s/helpdata/en/22/e127f28b572243b4324879c6bf05a0/frameset.htm

Regards

Chilla

<i>reward points ..</i>

Former Member
0 Kudos

Hi Sridhar,

Do you mean to say the custom java functions in message mapping ??

Regards,

Shri

Former Member
0 Kudos

Sridhar

Here is a UDF... this UDF checks the incomng values if equals =WE and XX then it retur ntrue oterwise false

{

for(int i=0; i<parvw.length;i++)

{

if (parvw(i).equals("WE") && lifnr(i).equals("xx"))

{

result.addValue("true");

}

}

result.addValue("false");

}

look at this blog

/people/dennys.hsieh/blog/2006/11/20/how-to-parse-xxyyzzaabbcc112233-in-message-mapping