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: 

Transaction zx02

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello

concatenate path sy-datum sy-uzeit '.' ext into filename.

5 REPLIES 5

Former Member
0 Kudos

concatenate the filename with sy-datum and st-uzeit

0 Kudos

Hi Vinod....

Concatenate but where to mention exactly? please explan in detail,

Former Member
0 Kudos

Hello

concatenate path sy-datum sy-uzeit '.' ext into filename.

0 Kudos

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

0 Kudos

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'