09-05-2008 10:46 AM
Hi All
I have created one REPR using transaction zx02 which create one output file. I have also set this REPR to run at specific time of the day (everyday) as background job. I would like to include datetimestamp to the filename automatically when it runs everyday, so that it keep on creating everyday new file and should not overwrite previous days file.
Could you please me know how to add datetimestamp to filename?
currently filename is specified at in zx02 - Tab delimited output file
output file : path - xxxxxxxx
filename - xxxxxxxx
Thanks
Yogesh
09-05-2008 10:52 AM
09-05-2008 10:49 AM
09-05-2008 10:51 AM
Hi Vinod....
Concatenate but where to mention exactly? please explan in detail,
09-05-2008 10:52 AM
09-05-2008 11:06 AM
Hi Dzed,
i got that i need to concatenate but i think i need more exact details. Sorry about my ignorance.
currently filename is specified in zx02 - Tab delimited output file
output file : path - directory1
filename - filename.dat
So where should i concatenate or how to concatenate here?
Thanks
Yogesh
09-05-2008 11:42 AM
Hello
So, let
path = 'directory1'
filename = 'filename.dat'
data: file_name like rlgrap-filename.
concatenate path '\' sy-datum sy-uzeit filename into file_name.
In variable file_name will be full path with date, time and your filename.
For ex: 'directory1\20080905131400filename.dat'