on 08-19-2009 8:30 AM
Hi,
Is there any way of getting business service name in mapping?
Regards,
Vishal
Use this UDF:
String service;
java.util.Map map;
map = container.getTransformationParameters();
service = (String) map.get(StreamTransformationConstants.SENDER_SERVICE);
return service;
If you want to get the receiver service then use RECEIVER_SERVICE instead of SENDER_SERVICE.
Regards,
Abhishek.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Vishal,
In your UDF you can use StreamTransformationConstants interface's static constants via Container. For instance
String sender_service=(String)map.get(StreamTransformationConstants.SENDER_SERVICE).
Information on other constants refer this link
Regards,
Prasanna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
access the mapping runtime constants in udf
String headerField;
String key ="SenderService"
java.util.Map map;
map = container.getTransformationParameters();
headerField = (String) map.get(key);
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 get Runtime Constants in UDFs. Please see the below link.
http://help.sap.com/saphelp_nw04/helpdata/en/b3/9a2aeb24dc4ab6b1855c99157529e4/content.htm
Shweta.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In the mapping you have access to the XI Header part where these information are stored.
For example the standard functions sender and receiver are available under category Constants.
Regards,
Volker
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You may access the following Runtime Constants.
http://help.sap.com/saphelp_nw04/helpdata/en/b3/9a2aeb24dc4ab6b1855c99157529e4/frameset.htm
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.