on 12-02-2008 4:57 PM
Hi there,
My requirment:
I have created source DT/MT/MI in a namespace and target DT/MT/MI in another namespace.
and i have created graphical mapping between them in another namespace.
In my mapping i would like map NAMESPACE of the sender and NAMESPACE where i am doing the mapping to the target fields.
Is it possible to get the namespace inside a graphical mapping..??
Kindly help me out..
Thanks in advance.
hi,
use this simple UDF
java.util.Map map;
map = container.getTransformationParameters( );
String constant;
Constant = (String) map.get(StreamTransformationConstants.INTERFACE_NAMESPACE);
return constent;
this code will return the sender service namespace ,and map this udf with ur target node.
regards,
Navneet.
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,
in user defined functions or java mappings you could use the runtime constants:
http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/frameset.htm
Regards
Patrick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Harini,
just go to the message type of your inbound interface (target) and change the value of field XML namespace to a value you like to have the result.
Regards,
Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Harini,
Use the following link of sap help doc for the same:
http://help.sap.com/saphelp_nw04/helpdata/en/b3/9a2aeb24dc4ab6b1855c99157529e4/content.htm
It clearly explains the way to do the same. You have to create a user-defined function and use the method getTransformationParameters() of the container object or use the getParameters() method of the GlobalContainer object.
Thanks and Regards,
Sanjeev.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.