Skip to Content
Author's profile photo Martin Grob

Waiting for a FlatFile to load once it exists

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.

Assigned tags

      62 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Suman Chakravarthy K
      Suman Chakravarthy K

      Helpful doc..

      Author's profile photo Martin Grob
      Martin Grob
      Blog Post Author

      thanks Suman!

      Author's profile photo CH Raman
      CH Raman

      Very useful Doc. Thanks for making and sharing Martin.

      Thanks

      Author's profile photo Martin Grob
      Martin Grob
      Blog Post Author

      Thanks and you are welcome

      Author's profile photo Former Member
      Former Member

      thanks a lot for sharing this Martin.

      Author's profile photo Martin Grob
      Martin Grob
      Blog Post Author

      you're welcome

      Author's profile photo SRIKANTH GARBHAM
      SRIKANTH GARBHAM

      Thanks for sharing useful information. Good Job Martin.

      Srikanth.

      Author's profile photo Martin Grob
      Martin Grob
      Blog Post Author

      thanks

      Author's profile photo HP pampana
      HP pampana

      Thanks for sharing the document Martin.Very Useful doc..

      Author's profile photo Martin Grob
      Martin Grob
      Blog Post Author

      you're welcome hope you can use it..

      Author's profile photo Martin Grob
      Martin Grob
      Blog Post Author

      glad it is useful

      Author's profile photo Benedict Venmani Felix
      Benedict Venmani Felix

      Good one Martin 🙂 . I like these kinds of solutions.

      Benedict

      Author's profile photo Martin Grob
      Martin Grob
      Blog Post Author

      thanks!

      Author's profile photo Former Member
      Former Member

      Great Job Martin !!!!

      Author's profile photo Martin Grob
      Martin Grob
      Blog Post Author

      thanks 🙂

      Author's profile photo Former Member
      Former Member

      reallu super

      Author's profile photo Martin Grob
      Martin Grob
      Blog Post Author

      tnx!

      Author's profile photo Former Member
      Former Member

      Wow... Simply the Great 

      Author's profile photo Martin Grob
      Martin Grob
      Blog Post Author

      thanks for the comments

      Author's profile photo Former Member
      Former Member

      Great !! Thanks for share

      Author's profile photo Martin Grob
      Martin Grob
      Blog Post Author

      thanks!

      Author's profile photo Umashankar Poojar
      Umashankar Poojar

      Really value added document! thanks for sharing.

      Author's profile photo Martin Grob
      Martin Grob
      Blog Post Author

      you're welcome hope you can use it

      Author's profile photo vinod bokade
      vinod bokade

      Thanks for sharing

      Author's profile photo Martin Grob
      Martin Grob
      Blog Post Author

      you're welcome

      Author's profile photo Former Member
      Former Member

      Valuable document..!! Thank You

      Author's profile photo Martin Grob
      Martin Grob
      Blog Post Author

      thanks for commenting on it hope you can use it..

      Author's profile photo Former Member
      Former Member

      Good document..!

      Author's profile photo Martin Grob
      Martin Grob
      Blog Post Author

      thnx!

      Author's profile photo Former Member
      Former Member

      Good Document Martin..thanks

      Author's profile photo Martin Grob
      Martin Grob
      Blog Post Author

      Thanks for your comment

      Author's profile photo Former Member
      Former Member

      veru helpful...

      Thanks for sharing..:)

      Author's profile photo Martin Grob
      Martin Grob
      Blog Post Author

      good hope you can use it..

      Author's profile photo Former Member
      Former Member

      Good one, thanks for sharing.

      Author's profile photo Martin Grob
      Martin Grob
      Blog Post Author

      Thanks for you  comment glad you like it

      Author's profile photo Krishna Chaitanya
      Krishna Chaitanya

      Helpful document...Nicely presented.

      Author's profile photo Martin Grob
      Martin Grob
      Blog Post Author

      thanks I appreciate it

      Author's profile photo Former Member
      Former Member

      valuable Documents...Great efforts..

      Thanks for sharing ur hard work will surely be helpful for us...:)

      Author's profile photo Martin Grob
      Martin Grob
      Blog Post Author

      hi prema

      thanks for your comments glad you like it..

      Author's profile photo Simon Willer
      Simon Willer

      Nice content, thanks for sharing!

      Author's profile photo Martin Grob
      Martin Grob
      Blog Post Author

      thanks you're welcome...

      Author's profile photo Former Member
      Former Member

      We can use the same as template every time its needed and can approach

      Martin Grobwhenever you need clarification 😀

      Author's profile photo Martin Grob
      Martin Grob
      Blog Post Author

      I'm around if you have a question on that 🙂

      Martin

      Author's profile photo Former Member
      Former Member

      Good document,thanks for sharing with us 🙂 🙂 🙂 🙂

      Regards,

      Giri

      Author's profile photo Martin Grob
      Martin Grob
      Blog Post Author

      thanks you're welcome

      Author's profile photo Former Member
      Former Member

      Hi,

      Nice document.

      Author's profile photo Abdullah Qureshi
      Abdullah Qureshi

      Nice Document Martin.

      Thanks for Sharing with us..

      Regards,

      Abdullah

      Author's profile photo Aby Jacob
      Aby Jacob

      Really Nice document  🙂

      Thanks Martin !!

      Author's profile photo Martin Grob
      Martin Grob
      Blog Post Author

      you're welcome

      Author's profile photo Kamal Mehta
      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

      Author's profile photo Martin Grob
      Martin Grob
      Blog 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

      Author's profile photo Former Member
      Former Member

      Nice Document...,Keep it up... 🙂

      Author's profile photo Martin Grob
      Martin Grob
      Blog Post Author

      thanks. I try 🙂

      Author's profile photo Former Member
      Former Member

      Nice document

      Author's profile photo Modadugu Hemanth Kumar
      Modadugu Hemanth Kumar

      Useful Document

      Author's profile photo abilash n
      abilash n

      Thanks for sharing wonderful blog.

      Author's profile photo Former Member
      Former Member

      Thanks for sharing Martin.. 🙂

      Regards,

      Poorna

      Author's profile photo Former Member
      Former Member

      Very helpful, thanks for sharing.

      Author's profile photo Former Member
      Former Member

      Thanks for sharing the doc. We need to create table ZRSPC_REP_STATUS, can you please elaborate on that.

      Author's profile photo Former Member
      Former Member

      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.?

      Author's profile photo Martin Grob
      Martin Grob
      Blog Post Author

      should be 3600 seconds

      Author's profile photo Former Member
      Former Member

      Hi Martin,

      I can't find the program attached to this document. Could you please share the program.

      Thank you very much.

      Praveen