‎2008 Jul 25 3:31 PM
Hi ,
Requirment is i want to create a file in the application server.So the file name should be in the following format.
0XX-XXXX-YYYYMMDDHH.format.
in this HH-hours.I need to take current date and time.so is there any function module to convert into this format.If it is not there how to create file name in this format.
Thanks,
MR
‎2008 Jul 25 3:33 PM
Take current date sy-datum and time sy-uzeit, and concatenate these to other field.
Regards,
Rajasekhar Reddy.
‎2008 Jul 25 3:33 PM
hi use the concatenate statement ..
data: filename(60) type c .
concatenate 'XXXXXXX' sy-datum sy-uzeit+0(2) into filename .
‎2008 Jul 25 3:34 PM
why not just concatenate sy-datum and sy-uziet to the file name.
If you want to change the order use offsets.
‎2008 Jul 25 3:34 PM
Concatenate '0XX-XXXX-' sy-datum sy-uzeit+0(2) into filename.
‎2008 Jul 25 3:35 PM
REPORT ZTEST_CONV.
data: time_stamp TYPE timestampl.
GET TIME STAMP FIELD time_stamp.You can try with GET TIME STAMP
But it will be in Different format.
‎2008 Jul 25 3:35 PM
Just concatenate the file name ...
concatenate v_filename '0XX-XXXX-' sy-datum sy-uzeit+0(2) into
v_file.
‎2008 Jul 25 3:39 PM
You can Try the Function module to Build the path using the Logical path
FILE_GET_NAME_AND_LOGICAL_PATH