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

Re: UDF to read a file name and use some of its contents to map fields in target.

$
0
0

try

{

String filename    = "";

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

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

filename = conf.get(key);

 

 

return filename;

}

catch(Exception e)

 

 

{

 

 

     String exception = e.toString();

 

 

      return exception;

 

 

}

 

But you won't be able to test the dynamic file name here unless you do E2E


Viewing all articles
Browse latest Browse all 8950

Trending Articles



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