on 12-05-2008 10:59 AM
Hi All,
how can i access the DynamicConfiguration for reading the adapter specific message attributes in a user defined mapping in PI7.1.
when trying to do it like in PI7.0 i get an exception that the parameter with the key StreamTransformationConstants.DYNAMIC_CONFIGURATION doesn't exist.
br,
martin
I use the following Coding:
InputParameters params = container.getInputParameters();
DynamicConfiguration conf = (DynamicConfiguration) params.getValue(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "Directory");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try this code
DynamicConfiguration conf = (DynamicConfiguration) container
.getTransformationParameters()
.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create(
u201Chttp://sap.com/xi/XI/System/Fileu201D,
u201CFileNameu201D);
String valueOld = conf.get(key);
if (valueOld != null) {
String valueNew = valueOld.replaceAll(u201Cinputu201D,u201Doutputu201D);
conf.put(key, valueNew);
}
in Sap docs they havespecified this method only for PI7.1
http://help.sap.com/saphelp_nwpi71/helpdata/en/49/1ebc6111ea2f45a9946c702b685299/frameset.htm
Edited by: Progirl Progirl on Dec 5, 2008 5:35 PM
Hi,
http://help.sap.com/saphelp_nwpi71/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm
Use the avove link
Regards.
sreenivas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
sorry but this code is just copied from the documentation.
As i mentioned, the method is deprecated in 7.1 even if it is in the documentation with the old (PI7.0 and XI3.0) version.
br,
martin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This method is deprecated in PI7.1
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you sure? Check this link for PI 7.1
http://help.sap.com/saphelp_nwpi71/helpdata/en/43/03612cdecc6e76e10000000a422035/content.htm
Regards,
Prateek
Hi,
It should exist
see the javadoc
http://help.sap.com/javadocs/pi/SP3/xpi/index.html
Please post the code
Edited by: Progirl Progirl on Dec 5, 2008 4:35 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You need to check the adapter specific message attributes in Communication Channel.
- Gujjeti.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
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.