Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Backup files with date and time stamp

Former Member
0 Kudos

Hi All,

I am working with a report which coverts data and creates files, and also back these files.... can anybody tell me how can we backup files with date and time stamps into the application server....expecting in detail please

2. how can I update application log with error messages

Earliest solution will be appreciated.

Thanks in advance

Rajesh

Message was edited by: Rajesh Nittala

2 REPLIES 2

Former Member
0 Kudos

Hello Rajesh,

The best approach is to concatenate the data and the time into the name of the file itself.

Something like:

data: ws_filename(100) type c value '/usr/...'.


start-of-selection.

concatenate ws_filename
            sy-datum
            sy-uzeit
       into ws_filename.   

open dataset ws_filename for output....

Is that what you're looking for?

Regards,

Anand Mandalika.

Former Member
0 Kudos

Thank you Mandalika,

My situation is to backup files into bw server and also i have to write error message to application log

Thanks & Regards

Rajesh