10-10-2007 2:29 PM
hi friends,
can any one help me out in
how to read,open the dataset (syntax) while transfering the file from application server in binary mode ?
how to move the file to differrent location in the same server?
regards,
mohan
Message was edited by:
mohan kumard
10-10-2007 2:46 PM
10-11-2007 8:36 AM
HI,
Syntax for reading the file
OPEN DATASET file FOR INPUT IN BINARY MODE
if sy-subrc = 0.
DO.
READ DATASET file INTO wa_record.
ENDDO.
CLOSE DATASET file.
endif.
syntax for writing file.
OPEN DATASET file FOR OUTPUT IN BINARY MODE .
if sy-subrc = 0.
transfer wa_record to file.
CLOSE DATASET file.
endif.
You can also transfer file from application server to presentation server using transaction CG3Y by specifying source path(app ser),destination path(presentation ser) and tranfer format (BIN).
To copy the file from one location to other location in application server
use the FM 'ARCHIVFILE_SERVER_TO_SERVER'
reward points if needful..