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

File Adapter : Sequence Check

Hello,

I'm facing the following issue: We receive files from a trade parter. These files have a sequence number in their file name. Eg. utilmd001.txt. We need to send these files as idocs to our SAP system. But we can only process a file if the previous file is already processed. Eg. utilmd003.txt can only be processed if utilmd002.txt is processed. Any idea on how to incorporate this in the file/FTP Adapter? Also note that we cannot assume that utilmd002.txt arrives before utilmd003.txt.

Any ideas?

Greetings,

Bart

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 05, 2005 at 12:22 PM

    Hi Bart,

    An option could be to store incoming messages on a intermediate folder, and have the file adapter of XI listening for incoming files at another folder where files are placed (by a custom written Java application or some FTP/Batch procedure..that keeps the sequence of received files in memory or a file) one by one in the correct sequence.

    In this way you are always sure that XI only process those files in the correct sequence.

    Cheers,

    Roberto

    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.