04-21-2006 1:18 PM
Hi,
I have to write a program which will extract few data from SAP and write it in a file in the SAP application server. This program will be run once every month.
I need to save 4 versions of the files, current and 3 prior. These versions should cycle off the oldest once a new version has been created.
Could anyone help me how to do this?
Thank you!
Regards,
Sunitha.
04-21-2006 1:21 PM
Hi Sunitha,
The best way is to write a unix script in the unix server to do the job for you. Once The file is written in the server then leave the job from the unix side to get this done.
This is the best option i think. Writing a script is not a big task. You can call the script from ABAP or from an external daemon in the unix server. We have many such programs in our org.
Hope this helps
Cheers
VJ
04-21-2006 1:40 PM
Hi,
Is it possible to do through ABAP programming itself? In my case I cannot go for a unix script.
Thanks you.
Sunitha.
04-21-2006 1:59 PM
Hi Sunitha,
I think it can be done by ABAP but its going to be complex for you to write as well as difficult for future maintenance.
You will have to call complex FM to delete or archive the files on the server from within the ABAP. I would really not suggest to do that from ABAP.
Cheers
VJ
04-21-2006 2:14 PM
Hi,
you can download the SAP data in to the application server using the Timestamp.....