Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8372

Re: FTP to RFC: transfering the pathname to the rfc-function

$
0
0

Hi Matthias,

 

Try this UDF to get file name

 

Best Regards,

Vladimir

 

 

 

public String Filename(Container container) throws StreamTransformationException{

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

String SourceFileName = "";

if (conf != null) {

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

SourceFileName = ""+conf.get(key);

}  else {SourceFileName = "no filename";}

return SourceFileName;

}

 

FinameJavaUDF.jpg

MappingFileNameUDF.jpg


Viewing all articles
Browse latest Browse all 8372

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>