Skip to Content
author's profile photo Former Member
Former Member

Picking files from FTP server with dynamic Filename.

Hello Experts,

I want to pick some files from a FTP server in a File to Idoc scenario. The files in the Ftp Server are created with the filenames as timestamp of the file when it was created. How do I pick up these files?

Thanks,

Merrilly

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Jan 18, 2008 at 06:42 AM

    The file name that is getting generated is only the timestamp or is it suffixed/prefixed by any other string?

    Lets assume its only the timestamp .

    Write follwoing your file name : * 2008 *.xml. As the time stamp starts with year. In this case this scenario will work only for this year(2008).

    Revert back if you need any more help.

    Regards.

    Jeet.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 18, 2008 at 07:00 AM

    Hi,

    The above masking concept (*.txt, . etc) will be applicable for the files with NFS only,

    See the below link to apply it

    /people/mickael.huchet/blog/2006/09/18/xipi-how-to-exclude-files-in-a-sender-file-adapter

    The below link will help you to build up the adapter module to read the dynamic file name

    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/da5675d1-0301-0010-9584-f6cb18c04805

    This could be applicable for FTP ...

    Thanks

    Swarup

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 18, 2008 at 07:02 AM

    For example your file name is "TestFile_20080118_12:30". So what you need to do in your CC is just write "TestFile_*.txt"

    or "TestFile_*.xml". It will pick all the files.

    Regards,

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 18, 2008 at 06:39 AM

    Hi,

    If you just mention *.extension (ex: *.txt) in your channel, the file will be picked up.

    Regards,

    Divija.

    Edited by: Divija KN on Jan 18, 2008 7:51 AM

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.