Hi all,
I have to create a file at targetside.But file name contains the timestampAAflowno+.gft like.
i am using below code but i get get the file name with the timestampAAflowno+.gft .
public String GetFileName(String CONST,String TID,String TIMESTAMP,String Filename,Container container){
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
String MyFileName = "";
DynamicConfigurationKey key = DynamicConfigurationKey.create( "http:/"+"/sap.com/xi/XI/System/File","FileName");
if(Filename == "F1")
MyFileName = TID + CONST+ "_""_"TIMESTAMP+ ".GFT";
if(Filename == "F2")
MyFileName = TID + CONST+ "_""_"TIMESTAMP+ ".GFT";
if(MyFileName !="")
conf.put(key, MyFileName);
key= null;
return MyFileName;
}