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: 

Data transfer from application server to sap system in binary mode

Former Member
0 Kudos

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

2 REPLIES 2

andreas_mann3
Active Contributor
0 Kudos

use sample report rsftp004

A.

Former Member
0 Kudos

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..