on 11-18-2005 2:17 PM
Suppose that for a number of different interfaces/mappings the same translation has to be done.
e.g. BUKRS A1 -> 0001
BUKRS A2 -> 0002
BUKRS B1 -> 0100
Is there some way to define the translation logic on a central place in stead of in every mapping where this translation has to be performed? The reason is easy maintenance when the translation has to change or extended.
Kind regards,
Léon.
Thanks for all the answers; I'm sure I can work it out now.
Kind regards,
Léon.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Here is a useful forum post on making the java functions global:
Basically, create a small user-defined function for mapping this with 'if' statements. To quote more from it:
"Then you have 2 options:
- put your jar to the boot class path of the J2EE server
- put this jar to every namespace where you going to use this function.
In the Message Mapping you'll need to create a wrapper for your function and that's a manual process for each mapping."
There is another option. If you are familiar with value mapping, you should be able to use it. Here is the help:
http://help.sap.com/saphelp_nw04/helpdata/en/13/ba20dd7beb14438bc7b04b5b6ca300/frameset.htm
Hope this helps,
Bhanu
hi,
In addition to reply by Bhanu above, you can use mapping templates once you have imported your user defined function in a jar file. This would avoid recreating same mapping each time & central java code would help reduce changes required incase mapping values change.
Hope this helps.
sachin kotalwar.
Hi Léon,
I would suggest to write your own mapping program, accessing the XML document using XSLT oder Java (SAX, DOM).
Cheers,
Heiko
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.