Application Development and Automation 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: 
Read only

Uploading file in Application Server

Former Member
0 Likes
489

Hi Floks,

How to uplaod file (plain text) INTO an application server?

Please provide some sample codes.

Thanks & Regards,

Praveen.

Hi Floks,

How to uplaod file (plain text) INTO an application server?

Please provide some sample codes.

Thanks & Regards,

Praveen.

3 REPLIES 3
Read only

Former Member
0 Likes
467

hi

just goto transaction CG3Z and give the file name and execute. it ll go to appln serevr. then goto AL11 and see the file in appln server.

Regards

karthik

Read only

former_member386202
Active Contributor
0 Likes
467

Hi,

Use TCode CG3Z .

Refer code

&----


*& Form open_file

&----


form open_file.

if p_aserv eq 'X'.

open dataset p_path for output in text mode encoding default.

if sy-subrc ne 0.

  • WRITE 😕 'Download Failed'.

message e000(8i) with 'Error in File opening for download'.

endif.

endif.

endform. " open_file

Loop at it_bkpof into wa_bkpf.

transfer wa_bkpf to p_path.

endloop.

Close dataset .

Regards,

Prashant

Read only

Former Member
0 Likes
467

DATA: file TYPE string VALUE `flights.dat`, 
      wa   TYPE spfli. 

FIELD-SYMBOLS TYPE x. 

OPEN DATASET file FOR OUTPUT IN BINARY MODE. 

SELECT * 
       FROM spfli 
       INTO wa. 
  ASSIGN wa TO CASTING. 
  TRANSFER TO file. 
ENDSELECT. 

CLOSE DATASET file.