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: 

save file in application server

Former Member
0 Kudos

hi all,

how we save file in application server

please provide the code

thanks rahul

6 REPLIES 6

Former Member
0 Kudos

Hi,

Execute a function module in SE37

From client(work station or desktop) to Application server execute this function module:

ARCHIVFILE_CLIENT_TO_SERVER

provide source file path (ie client workstation or desktop file path)

provide target file path (in application server)

Hope it helps.

Regards

KK

0 Kudos

Hi Kishore,

There is no need to write a code. You just go to CG3Z tcode and give the source file on front end and target file on application server and press shift+f2.That is enough.

Reward points if useful.

Thanks,

Khan.

Former Member

Former Member
0 Kudos

Hi,

There are 2 ways for saving the file on application server.

One is using datasets as one of our friends suggested.

second one is using function module ''C13Z_FRONT_END_TO_APPL''

Reward points if helpful.

Thanks and regards.

Former Member
0 Kudos

hi check this..

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0901cba-f49e-2910-748c-d7ce4c0c...

DATA: file TYPE string VALUE `test.dat`.

OPEN DATASET file FOR OUTPUT IN TEXT MODE

ENCODING DEFAULT

WITH SMART LINEFEED.

TRANSFER `1234567890` TO file.

CLOSE DATASET file.

regards,

venkat .

Former Member
0 Kudos

Hi,

We can save a file in Application server using following steps.

1. Open dataset <datasetname>

2. Transfer file

3. Close dataset

for syntax or any sample program see f1 help on open dataset.

Regards

Ganesh