Quantcast
Channel: SCN : Popular Discussions - SAP Process Orchestration
Viewing all articles
Browse latest Browse all 1306

Dynamic File name SFTP (SFTP ADAPTER 1.0)

$
0
0

Hello,

 

I am using simple SFTP (SFTP ADAPTER 1.0) to proxy scenario in our SAP PO.

 

I am trying to assign source file name using below UDF:

 

 

public String getFileName(Container container) throws StreamTransformationException{

try{

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

 

 

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

 

 

String SourceFileName = conf.get(key);

 

 

if( SourceFileName == " "  )

{

SourceFileName  =  " LTB_CBUR_MissingFile" ;

}

 

 

conf.put(key, SourceFileName);

 

 

}

catch  (Exception e)

{

String exception = e.toString(); 

return exception; 

 

 

return "1"; 

 

We are getting null pointer exception.. I have tick marked set adapter specific message attributes on sender CC.

 

Thank you

John


Viewing all articles
Browse latest Browse all 1306

Trending Articles



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