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: 

Need to copy file from application server and save it in contain server

Former Member
0 Kudos

Hi,,

I need to copy or cut document from application server (/tmp) and save it to dms server (Contain server za) so please any budy tell me which function module i should used for same.

Regards,

Gurprit Bhatia

5 REPLIES 5

GauthamV
Active Contributor
0 Kudos

hi,

use CG3Y,CG3Z transactions to upload and download files from application server.

once u get them to ur presentation server then u can send them to ur required server.

Former Member
0 Kudos

hi

Use Open dataset, Transfer, Close dataset commands for application server data access..

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

result TYPE string.

chk this sample code

OPEN DATASET file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.

TRANSFER `1234567890` TO file.

CLOSE DATASET file.

OPEN DATASET file FOR UPDATE IN TEXT MODE ENCODING DEFAULT

AT POSITION 2.

TRANSFER `ABCD` TO file.

CLOSE DATASET file.

OPEN DATASET file FOR INPUT IN TEXT MODE ENCODING DEFAULT.

WHILE sy-subrc = 0.

READ DATASET file INTO result.

WRITE / result.

ENDWHILE.

CLOSE DATASET file.

regards

deva

0 Kudos

use this program RC1TCG3Y or this FM with some code

C13Z_APPL_TO_FRONT_END

Edited by: Bala Krishna on Aug 22, 2008 11:08 AM

Former Member
0 Kudos

I have completed.

0 Kudos

How do you solve a problem please tellme and send code on mail id

Thanks