on 08-07-2008 6:43 AM
Hi all,
while i am testing message mapping in IR i am getting an error like:
Source code has syntax error: /usr/sap/CXD/DVEBMGS44/j2ee/cluster/server0/./temp/classpath_resolver/Mapbd03cb90644011ddc6af000e7fede235/source/com/sap/xi/tf/_XXX_XXX_MM_.java:173: cannot resolve symbol symbol : variable fileName location: class com.sap.xi.tf._XXX_XXX_MM_ String subject = "SUCCESS: XXXXXX file "fileName" has been transferred"; ^
i am getting the fileName using Dynamic configuaration and the path it is shwoing in the error i am unable to trace that in al11..i guess they are the path in server...
any ideas how to resolve this....?
thanks.
Hi,
Inorder to test you should run the scenario ...
You will not be able to test from Msg Mapping Test Tab.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
U can't test it directly thru test tab. U need to configure the whole scenario first because the dynamic values are picked at runtime only.
Regards,
Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1. Do not test it using the test tab in the IR.
2. In the Sender File Communication Channel check the option Set Adapter-Specific Message Attribute and check the option Filename.
3. Use this UDF.
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String ourSourceFileName = conf.get(key);
return ourSourceFileName;
Thanks
SaNv...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kiran,
Could you please provide us with the source code you are using? If you use the UDF and want to test it from Test Tool - it wouldn't work - as there are no ASMA set in the message header in the test tool. Hence the get method of DynamicConfiguarion will return a Null. To run the test tool successfully you might choose to use a Condition Check, if the get method returns null then you pass any constant value.
Regards,
Suddha
User | Count |
---|---|
79 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
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.