on 02-05-2010 1:09 PM
I got the below code. It returns the FileName from File sender adapter. Works fine when running the complete scenario, but when running it from the mapping test utility it FAILS. Obviously because there is no filename since I am testing in my mapping but how to code it so I can run it during my testing of the graphical mapping?
-
UDF ->
String tomstreng = ingenting[0];
//write your code here
DynamicConfiguration attrib =
(DynamicConfiguration)container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
//to create key
DynamicConfigurationKey fileKey = DynamicConfigurationKey.create("http:/"+"/sap.com/xi/XI/System/File","FileName");
String navnpaafil = attrib.get(fileKey);
if (navnpaafil |= null)
{
result.addValue(navnpaafil);
}
result.addValue("");
You can't test it independently in test tab. Need to run the full scenario for testing the mapping.
Regards,
Sunil Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
/people/shabarish.vijayakumar/blog/2009/03/26/dynamic-configuration-vs-variable-substitution--the-ultimate-battle-for-the-file-name
do refer the code in this blog to help you.
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 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.