Hi,
Am using below code for Dynamic file name.
try{
String filename = "";
DynamicConfiguration conf1 = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key1 = DynamicConfigurationKey.create( "http:/"+"/sap.com/xi/XI/System/File","FileName");
filename = BUKRS+"GSBER"+Filename+".CSV";
conf1.put(key1,filename);
return filename;
}
catch(Exception e)
{
String exception = e.toString();
return exception;
}
Here, my requirement is GSBER value will have three combinations 9999,0201,1450. SO these 4 digit value should be converted to 1 digit and need ot send to filename in place of GSBER.
So with Fix values am trying to convert it to 1 digit in the following way..
9999 = A
0201 = B
0203 = C
So can any body help me with the piece of Java code which is needed to convert this 4 digit to 1 digit.
Thanks in Advance..!
--
Regards
Raj