Programming concepts required to develop UDF?

Hi Experts,
i've never created an UDF, but knows the procedure how to create it.....I want to know wht are the basic java packages are required and some basic functions like setParamter(), getParameter() etc. which are important to know being an XI developer. can anyone list down those function names along with some description and details of parameters are needed...
i've gone thru SAP Help but unable to locate any such functions.......
Regards
Faisal
points will b rewarded for useful answers
Edited by: Abdul Faisal on Apr 30, 2008 7:12 PM

Hi Abdil,
How to create user defined functions in xi.   
Go thru this -http://www.flickr.com/photos/8764045@N06
Please follow the steps mentioned in below link
http://help.sap.com/saphelp_nw04/helpdata/en/f8/2857cbc374da48993c8eb7d3c8c87a/frameset.htm
Also refer below links to know more about UDF
udf
/people/krishna.moorthyp/blog/2006/07/29/documentation-html-editor-in-xi
/people/sap.user72/blog/2006/02/06/xi-mapping-tool-exports
1. To create a new user-defined function, in the data-flow editor, choose Create New Function (This
graphic is explained in the accompanying text), which is located on the lower left-hand side of the
screen. In the menu, choose Simple Function or Advanced Function.
2. In the window that appears, specify the attributes of the new function:
Name
Technical name of the function. The name is displayed in the function chooser and on the data-flow
object.
Description
Description of how the function is used.
Cache
Function type (see above)
Argument Count
In this table, you specify the number of input values the function can process, and name them. All
functions are of type String.
3. In the window that appears, you can create Java source code:
a. You can import Java packages to your methods from the Imports input field, by specifying them
separated by a comma or semi-colon:
You do not need to import the packages java.lang., java.util., java.io., and java.lang.reflect. since
all message mappings require these packages and therefore import them. You should be able to
access standard JDK and J2EE packages of the SAP Web Application Server by simply specifying the
package under Import. In other words, you do not have to import it as an archive into the Integration
Repository. You can also access classes of the SAP XML Toolkit, the SAP Java Connector, and the
SAP Logging Service (see also: Runtime Environment (Java-Mappings)).
In addition to the standard packages, you can also specify Java packages that you have imported as
archives and that are located in the same, or in an underlying software component version as the
message mapping.
b. Create your Java source text in the editor window or copy source text from another editor.
4. Confirm with Save and Close.
5. User-defined functions are limited to the message mapping in which you created the function. To
save the new function, save the message mapping.
6. To test the function, use the test environment.
The new function is now visible in the User-Defined function category. When you select this category,
a corresponding button is displayed in the function chooser pushbutton bar. To edit, delete, or add the
function to the data-flow editor, choose the arrow next to the button and select from the list box
displayed.
Thanks,
Satya Kuamr
Reward if it is useful..

Similar Messages

  • Installation problem any program that requires Adobe Air

    Installation problem
    I just purchased a new HP Pavilion Laptop running windows 8
    If I try to install any program that requires Adobe Air I get a failure message that says
    "Sorry an error has occured
    The applcation could not be installed because the installer file is damaged.  Try obtaining a new installer  file for the applciation author"
    I have version 14.0.0.110 of Adobe Air Installed.  
    I have installed all widows updates.
    I have removed and re installed Adobe Air but the problem persists
    Very frustrating problem, any help or direction is appreciated

    I have a similar problem and a possible workaround. Take a look at my reply: Installing air applications returns error

  • My MacBook Pro will not open any application or program that requires internet, even though I am connected to the web.

    My MacBook Pro will not open any app or program that requires Internet, even though I am connected to the web. I recently installed Norton AntiVirus and think it may have changed a setting that I couldn't find. I uninstalled Norton and it didn't help. Every time I open Safari, iTunes or any other program that tries to connect to the Internet, it crashes. Strangely enough, Skype still works, but nothing else.
    I have OSx 10.6.8.
    I have tried erasing plists, and all the standard troubleshooting, ie resetting modem, restarting computer, reloading Safari from disk.
    Any help would be greatly appreciated. Thank you in advance.

    Change your router channel.  Sometimes this is all you will have to do.
    Power cycling the router.  Read the router's user manual or contact their tech support for instructions.
    System Preferences/Internet & Network/Network
    Unlock the padlock
    Locations:  Automatic
    Highlight Airport
    Click the Assist Me button
    In the popup window click the Diagnostic button.
    System Preferences/Network- Unlock padlock.  Highlight Airport.  Network Name-select your name.  Click on the Advanced button.  Airport/Preferred Networks-delete all that is not your network.
    Place a check mark next to "Remember networks this computer has joined."  Click the OK button and lock the padlock.  Restart your computer.
    http://support.apple.com/kb/TS1920 Mac OS: How to release and renew a DHCP lease
    No internet connection (wireless)
    Check to see if an extra entry is present in the DNS Tab for your wireless connection (System Preferences/Network/Airport/Advanced/DNS).
    Delete all extra entries that you find.
    Place a check mark next to "Remember networks this computer has joined."
    Other resources to check into:
    Troubleshooting Wi-Fi issues in OS X Lion and Mac OS X v10.6
    Netspot
    How to diagnose and resolve Wi-Fi slow-downs
    Pv6 troubleshooting
    Mac OS X 10.6 Help:  Solving problems with connecting to the Internet
    What Affects Wireless Internet?
    Solutions for connecting to the Internet, setting up a small network, and troubleshooting
    I uninstalled Norton and it didn't help.
    To properly uninstall Norton software follow these instructions - Locate Symantic Solutions folder inside the Applications folder at the root level of your HD, launch the Symantec Uninstaller application, select the Symantec AntiVirus Corporate, Norton AntiVirus & Norton AntiVirus Auto-Protect entries and click the Uninstall button. 
    Confirm your decision when prompted and then enter your administrator password in the space provided.
    Retart your computer & Norton should be gone for good.
    If the above does not work, download a copy of Symantec’s RemoveSymantecMacFiles removal utility.  This utility will launch Terminal & remove the Norton components.

  • Java programs which require a specific version of java won't work

    So I'm running 10.4 on my macbook pro, and when I try to run a java program that requires any version of java, I get an error saying I don't have that version. Java works fine from the command line when I run programs I wrote, and java -version outputs:
    java version "1.5.0_16"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-275)
    Java HotSpot(TM) Client VM (build 1.5.0_16-132, mixed mode, sharing)
    When I try to run something (say, some java applet), I get the message:
    Could not launch the application because it requires a version of Java that is not installed.
    (in smaller print):
    This application requires Java 1.4 or later, but only the following Java versions are installed: . Updating to a newer version of Mac OS X may resolve this.
    The message makes me think that in some text file or some preference somewhere, the thing that tells the system what version of Java I have got deleted. Anyone have any ideas of something I can do to fix it?

    I usually use Win 7 and lately have been playing with the Win 10 preview. I like Win 7.

  • Help required in developing SQL developer extension

    Hi,
    We have a requirement to develop an extension for Sql Developer. The requirement matches the Reports framework in Sql Developer.
    We need to have a separate dock as in reports where we can navigate through the tree and execute some predefined queries.
    I implemented this using the Docking Sample of Sql Developer extensions. I am able to show a separate dock with the tree hieararchy of the nodes and adding context menus to the nodes.
    But , the problem is how do we integrate this UI with the queries and how do we prompt the user to select the connections and other bind variables.
    We can do this by using an XML file and importing it in the reports. But, we need a separate dock for our functionality.
    I tried modifying the reports API by obtaining the code from the oracle.sqldeveloper.report.jar . But , facing problems while compiling the modified code to a jar.
    Any help in this regard is appreciated.
    Edited by: 883431 on Sep 8, 2011 12:32 AM

    Sorry for that,
    Here is what I did,
    Create a variable for posting period
    Put posting period in column.
    Create 2 selections for the KF.
    Restrict 1st sel from Jan – Variable-1
    Restrict 2nd sel from Variable – Dec

  • Help required in writing UDF

    Hi SDNers,
    I have a requirement to write UDF, can anybody help me in acheiving the code.
    Requirement:-
    If I am getting 5 as my input to UDF, I need to generate five 001's to my output of UDF.
    I tried to loop the input and used result.addValue("001"); but not working.
    Please help in getting java logic for this udf.
    Thanks
    Jayaram.G

    Hi Luis,
    Thanks for your quick response.
    I am using context in my udf.
    My code is like this.
    for(int i=0;i<var1.length;i++)
    result.addValue("001");
    As I am getting 5 as input and I am using Var1.length, the udf is generating only one 001. But I need five 001.
    Regards,
    Jayaram.G

  • In the middle of the installation processing, this has appeared: "There is a problem with the windows installer package. A program is required for this install to complete could not be run." my question is, what is that specific program?

    in the middle of the installation processing, this has appeared: "There is a problem with the windows installer package. A program is required for this install to complete could not be run." my question is, what is that specific program?

    Let's try the following user tip with that one:
    "There is a problem with this Windows Installer package ..." error messages when installing iTunes for Windows

  • Jar files required to develop adapter module in 7.1

    Hi,
    can any one tell me whether below jar files are enough to develop the adapter modules in 7.1,
    u2022 aii_af_cci.jar
    u2022 aii_af_mp.jar
    u2022 aii_af_ms_api.jar
    u2022 aii_af_ms_spi.jar
    u2022 aii_af_trace.jar
    u2022 aii_af_svc.jar
    u2022 aii_af_cpa.jar
    if not please let me know set of jar files need to develop adapter module in 7.1.
    Thank You,
    Madhav

    Hi ,
    Below Jar files Required to develop Adapter Module in PI7.1
    com.sap.aii.af.cpa.svc.api
    com.sap.aii.af.lib.mod
    com.sap.aii.af.ms.ifc_api
    com.sap.aii.af.svc_api
    sap.comtcloggingjavaimpl
    Regards,
    Raj

  • Object Oriented Programming concepts

    Hi Friends,
    I need your help to understand the Object Oriented Programming concepts.
    Please help me…
    Thanks,
    Fl4syed

    Hi,
    We can learn oops concepts very easily.Refering some books and search this concepts in some websites related to it.I think the author Robert lafore of oops is one of the best way to learn oops concepts.

  • I have a program that requires Java 6.  I am running 10.8.2, How do I remove Java 7 to run this program?

    I have a program that requires Java 6.  I am running 10.8.2, How do I remove Java 7 to run this program?

    Try going to the Oracle site - they did have a page showing how to remove Java 7 using the terminal program.
    I followed their instructions and it didn't work for me, but you may have better skills and luck than I.
    This was my starign point;
    http://www.java.com/en/download/help/mac_uninstall_java.xml
    Let us know if this works.

  • I want to create an app.  Can you tell me the difference between iOS developer program and the mac developer program?

    I want to create an app.  Can you tell me the difference between iOS developer program and the mac developer program?
    Is the difference the device you're creating your app on, or for?

    iOS Developer Program is only for those who wish to develop iDevice apps. Mac program is for those only developing Mac applications. If you wish to do both, then you need to enroll in both programs.

  • I have a program that requires cancel, details or continue. It appears to be stuck and will not let me slide to unlock or slide to close.  How do I restart the ipad?

    I have a program that requires cancel, details or continue. It appears to be stuck and will not let me slide to unlock or slide to close.  How do I restart the ipad?

    Hi there, welcome to the site,
    I have posted a link below which has instructions on how to do this. They are quite simple, so take a look.
    iPad not responding
    Regards,
    Nathan

  • Embedding a java program which requires one parameter to an applet

    I have a java program which requires one parameter for running it such as;
    "java program.java 34"
    .I must use this program as an applet. How can I send this parameter during running the applet.
    "appletviewer program.html"
    ???

    Now, for your specific problem - the likelihood of them actually having created / initialized the components in a constructor is 1 in about 10-ba-friggity-zillion. So - here is how you get around that: make a direct call to the init() method:
    import javax.swing.*;
         class Turd extends JApplet {
              private JTextArea jta;
              private JScrollPane jsp;
              public void init() {
                   jta = new JTextArea(10, 30);
                   jsp = new JScrollPane(jta);
                   this.add(jsp);
         public class Burglar extends JFrame {
              private Turd turd;
              public Burglar() {
                   turd = new Turd();
                   turd.init();
                   this.getContentPane().add(turd);
                   this.pack();
                   this.setTitle("Turd-->Burglar");
                   this.setDefaultCloseOperation(EXIT_ON_CLOSE);
                   this.setLocationRelativeTo(null);
              public static void main(String[] argv) { new Burglar().setVisible(true); }
         }See how I did that? Made a "Turd" object, then manually called the "init()" method. And - voila! See how purty?

  • Use of base table concept in form developer

    can i get any white paper on use of base table concept in form developer.

    have a look at the quick tours in the online help they will show you how to do it.

  • Please tell me the System Requirement for developing Iphone,Ipad,Ipod Apps ?

    Hi All,
    can anyone please tell me the system requirement for developing Iphone, Ipad, Ipod applications.
    Thanks in advance :-)

    Start with the iOS dev center  >  http://developer.apple.com/devcenter/ios/index.action

Maybe you are looking for

  • A question about WLAN and processor speed

    Hi there! i'm looking at replacing my "old" Nokia E5-00. I'm thinking of the newer Nokia E6 or the Samsung Galaxy Pro B7510 Android QWERTY phone. My stupid question is will a faster processor be of any help when it comes to opening/closing/downloadin

  • Help using asp includes in Dreamweaver

    I'm using asp includes ( <!--#include file="incl_menu.asp"--> ) in my website. When viewing the site in Dreamweaver sometimes I don't see the included page. Is there a way to always see the included page? I have version 7.01 of dreamweaver on a windo

  • Display isn't working

    my hp i3 isn't display any thing.. what should I do?

  • Why distribute Software Update Packages to DP's?

    I recently integrated WSUS with SCCM 2012 and deployed my first update package, I distributed it to our DP's at each of our facilities and then deployed the package. I am seeing results but it looks like all my clients are going directly to the Activ

  • I am unable to forward pictures . the wording goes through but not the pictures

    When forwarding an email from someone the wording is transmitted but not the pictures. This is a new problem and I'm not sure what has happened == This happened == Every time Firefox opened