cancel
Showing results for 
Search instead for 
Did you mean: 

File to proxy dont get the file name from UDF

Former Member
0 Kudos

Hi Pi gurus,

when i try to get the name of the file from the mapping by using the code above in a UDF i simply get a null in place of the real name of the file.

here the code that i used:

=============================

String SourceFileName = "";

String context ="http"+":" +"/" +"/" + "sap.com/xi/XI/System/File";

try {

DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey key = DynamicConfigurationKey.create("http"+":" + "/" +"/" + "sap.com/xi/XI/System/File","filename");

SourceFileName = conf.get(key);

}

catch(Exception e)

{

SourceFileName = context;

}

return SourceFileName;

=================================

thank you

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hey

In the sender File communication channel,did you check the Checkbox.

"Set adapter specific message attrbiutes" and "Filename"

if not,please do that first and test again.

Thanks

Aamir

Answers (0)