12-20-2007 4:16 AM
Hi,
I am creating files in the UNIX directory in the application server using :
CONCATENATE '/sapmnt/RD1/interfaces/client670/'
p_fname '.CSV' INTO w_filename.
OPEN DATASET w_filename FOR OUTPUT IN TEXT MODE.
LOOP AT t_output1.
TRANSFER t_output1 TO w_filename.
ENDLOOP.
CLOSE DATASET w_filename.
I am unable to check whether a file with the same name exists or not. How to check the duplicate state of the file.
12-20-2007 4:19 AM
You can use the following fm
RZL_READ_FILE
or
use OPEN DATASET FOR INPUT.