Hi Sap Gurus,
I have to do document archving. I have specified my requirement here.
1.The program should provide a parameter field (screen field) for entering the path to the source directory, this ensures that the code must not be changed if the file location changes.
2.The program will be executed in a batch mode, so in order to do that, an interval must be specified which basically populates the source directory name in the function call.
3.Generate a file list of every file available in this directory, SAP provides low-level system calls to perform UNIX commands like ls u2013ld <source dir>
4.Extract the relevant information from the file list, UNIX usually returns directory specific information, which is not needed.
5.Error handling, implementing a reasonable error handling in case a file cannot be read or archived, renaming the source file to something like <filename>.error might be helpful to identify any faulty documents in the input directory.
I have to write an ABAP program for the above specified requirement. To simply say have to retrieve the file from from the UNIX paath and have to archive and store in sap and have to delete the file from UNIX path.
Can any one done this already. Could you help me .