2007 Dec 17 10:51 AM
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.
2007 Dec 17 10:59 AM
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
2007 Dec 17 11:25 AM
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
2007 Dec 17 12:03 PM
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.
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |