Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to send file to FTP on conditional basis.

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.

Interface

IDOC -


> XI -


> File

SNDPRN(DGE008,DGE006,..............) now I need to create the file according to the SNDPRN field.

Example

SNDPRN (DGE006)----


> Target (DGE006/xyz/abc/filename.xml)

SNDPRN (DGE008)----


> Target(DGE008/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)

container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

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

String MyDirName=DirName;

String ourSourceFileName = conf.put(key,MyDirName);

return "";

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

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question