Hi SAP Guru's,
Can somebody please tell me how to create a file on conditional basis in FTP.
My requirement is that I have to create a file in different directory according to the sender port field.
> XI -
SNDPRN(DGE008,DGE006,..............) now I need to create the file according to the SNDPRN field.
> Target (DGE006/xyz/abc/filename.xml)
Also how do I send the data to the specific directory because I only get the SNDPRN(DGE008) from the idoc but how to send the data to /xyz/abc/ directory.
I have tried dynamic configuration but it is not working.
DynamicConfiguration conf = (DynamicConfiguration)
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","Directory");
String ourSourceFileName = conf.put(key,MyDirName);
Error in Adapter Monitoring
Could not process due to error: com.sap.aii.adapter.file.configuration.DynamicConfigurationException: The Adapter Message Property 'Directory' was configured as mandatory element, but was not supplied in the XI Message header
CAN SOMEBODY PLEASE HELP ME.
Edited by: Muhammad iqbal on Jul 12, 2010 3:04 PM