You have opened the Process Development or Service Composer perspective in the SAP NetWeaver Developer Studio and have expanded your project in Project Explorer view.
You create a function to perform a complex data transformation. A function relates all of its inputs to exactly one output. In the function's signature, you define the names and types of the input parameters and the value type, which the function returns. Then you create your own implementation to define how the function does the data transformation.
Once you define a new function, you can reuse it in other projects in SAP NetWeaver Developer Studio.
When you create functions, you do the following:
Define the function type.
You define one of the following function types:
Expression function
You define how the function does the data transformation with an expression.
Mapping function
You define how the function does the data transformation with a mapping.
EJB function
You define how the function performs the data transformation with an Enterprise Java Beans (EJB) implementation. You specify the Java Naming Directory Interface (JNDI) name of the existing EJB. The EJB has a special method that executes the EJB function.
Define the function name.
Define the function return type.
The return type is the type of value that is produced after the data transformation.
Define the function input parameters.
Using AnyType in Functions
You can define functions for which the input and output parameters are of unknown type at design time. To do that, you use xsd:anyType (xsd is the prefix for namespace http://www.w3.org/2001/XMLSchema).
Using xsd:anyType when you create the function, means that you can provide every custom or base type as an actual parameter to the function. Using xsd:anyType is particularly useful when you define mapping functions, because it allows flexible behavior at runtime when the mapping is executed.
You have created a function and have defined its signature. You can change the function name and signature and you can define the function implementation of expression and mapping functions when you edit the function. For more information about editing functions, see Editing Functions .