When creating User Defined Functions (UDFs) in SAP XI, the editor for entering the Java source code is merely a plain text box. Being used to develop Java code using Eclipse, this feels like being back in the Dark Ages, missing simple things like code completion etc.
Also, simple syntax and programming errors takes a fair number of editing/saving/executing/wondering/editing/... cycles in SAP XI to get a working function in place, and the runtime errors reported by SAP XI may not always lead you on the right path, as the code you enter is compiled together in a class resulting in severely misaligned line numbers.
A much more joyful approach is to develop the UDFs using the SAP NetWeaver Development Infrastructure, or to use the freely available Eclipse IDE to do development and testing before pasting the final result into the plain text box of SAP XI. Also, if you are developing UDFs that are more than a couple of lines, a better approach will be to build a complete JAR file with your UDF and reference it from within SAP XI.
This article describes a small foundation for a SAP XI UDF Workbench that can be used to develop, test, and build SAP XI User Defined Functions using Eclipse.