on 2006 Aug 09 12:41 PM
Hi Experts,
I would like learn how to use a user defined function in Xi during mapping . Is there any step by step on that.
Besides during when me make communcaton channels I see the following tabs...Paramters ..Identifiers ...Module...
The module that is given here ...where and how it is used.
Hi Deepak,
This is a simple user defined function to create in sap xi mapping editor.
Go to message mapping editor (left-bottom)
Select simple function
Single return value is of type java.lang.String
Then you can see a window ( User-Defined Translate value )
//Wirte your code here
if(a.equals(private))
return p;
else if(a.equals(Business))
return b;
else
return x;
import java packages if required.
then save the function.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can write UDFs in java in Graphical mapping to enhance your XI Graphical mapping functionality
The steps for doing it would be:
1. Click on Create New function Button found on Bottom left corner on your XI Mapping window.
2. Write your java code.
3. Run the Mapping Test as usual.
>>The module that is given here ...where and how it is used.
The adapters in the Adapter Framework convert XI messages to the protocols of connected external systems and the other way around. When doing so, some
functionality might need to be added specific to a situation which is possible with the use of custom modules.
Typical example would be validation of file content when using a File Adapter or modification of the message payload to a common content structure which is not supported by any of the standard SAP modules.
An Adapter module is developed as an Enterprise Java Bean and is called locally by the Adapter.
An example on modules :
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/da5675d1-0301-0010-9584-f6cb18c04805">How to develop a module for reading file name in a sender file adapter XI 3.0</a>
Cheers,
Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
UDF in XI ...
http://help.sap.com/saphelp_nw04/helpdata/en/22/e127f28b572243b4324879c6bf05a0/content.htm
Have a look at that this sud be a good start and if u have more queries do get back
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The module tab that is given is used to specify the adapter modules if you are using any.
This is used when there is no standard adapter module that meets your requirements. In the module tab, you can add custom modules to default module chains. Also additional configuration parameters can be specified for module.
Regards,
Divija.
Hi,
>>>Is there any step by step on that.
in this document you'll find how to use
both simple and advanced user defined fucntions in the mappings
https://websmp102.sap-ag.de/~sapdownload/011000358700003604872004E/MappingXI30.pdf
Regards,
michal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
71 | |
10 | |
8 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.