Skip to Content

Need to wait for a flat file to be on a share drive so it can be loaded?

The following program can be integrated in your process chain. It will check if the file is there and once it has been created it will get loaded.

Should the file not arrive in x amount of time you can trigger an email informing the responsible person that the file is missing. This can be customized with a variant.

Here is how you built the process chain: At the ABAP programm with returncode. It will wait in this case for two files to be on a specific drive.

A.png

Once there the IP will load them.  If it is not there after x wait time it will send an email to the responsible person.

Create the Program ZBW_CHECK_FILE with the ABAP attached.

B.png

Create your variant.

C.png

Add the file directory and filename. The Wait sequence determines how many iterations the programm will do.

Sequence of wait time in minutes between each try for the file.

Use the program attached to this document in your process chain.

To report this post you need to login first.

62 Comments

You must be Logged on to comment or reply to a post.

  1. Kamal Mehta

    Thanks for sharing. Valuable.

    I have a doubt here :

    1. What is the frequency of checking the file at the application layer and how.

    2. Where do we need to maintain the wait time for the same.

    Thanks

    (0) 
    1. Martin Grob Post author

      Hi Kamal

      Thanks for your feedback.. Have a look at the last screenshot when you create the variant you have two parameters The Wait sequence determines how many iterations the programm will do and Sequence of wait time in minutes between each try for the file.

      hope that clarifies

      Martin

      (0) 
  2. NITUL JAIN

    Hi Martin,

    What varient should I put if I want the program to keep iterating until it finds a file.the wait time between each iteration could be every 10 minutes.?

    (0) 

Leave a Reply