Skip to Content

How to read a file with File volume/date modified column in sap bods

Hi,

I have a file reading from source path and loading into finish folder everyday with same file name.

Eg: file name is filename.mdb (everyday file name will be same) suppose today, if I haven't receive a file, how do I find that using script?

Is that through date modified/data volume? If yes, then how do l proceed for there! Let me know, if your not clear on the requirements. Keep me updated

Please suggest!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jun 27, 2019 at 06:57 AM

    Hello Prasad,

    You can check the existence of file using file_exists() function in bods before executing a job in script level.

    IF (file_exists(filename_variable) = 0)

    BEGIN

    PRINT('file not found);
    raise_exception('file not received for today' || sysdate());
    END

    Please give a try.

    Best Regards,

    Iswarya S

    Add a comment
    10|10000 characters needed characters exceeded

    • Thanks for the reply iswarya,

      Here the problem file name never change, it will be same name override the existing file. In that case how do we find if file not updated in that location.

      Eg: File.txt is my file name it will be same and everyday it'll override. If file not updated, I should not process the file. How do we proceed in this case.

      Thanks in advance!

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.