2013 Nov 10 8:11 AM
Could you please help me in uploading a mp3 file to an application server
Moderator message - FAQ, thread locked.
Message was edited by: Suhas Saha
Could you please help me in uploading a mp3 file to an application server
Moderator message - FAQ, thread locked.
Message was edited by: Suhas Saha
2013 Nov 10 9:58 AM
Hi Goutham,
Use function module ARCHIVFILE_CLIENT_TO_SERVER
Regards,
Sreenivas.
2013 Nov 11 4:22 AM
2013 Nov 10 5:03 PM
2013 Nov 11 4:23 AM
2013 Nov 11 7:53 AM
Hi Gautham,
Mark an answer as correct answer if your requirement is addressed. It will help other users.
Thank you,
Anil
2013 Nov 10 5:31 PM
Hi Goutham,
Tcodes CG3y, CG3Z to upload presentation file to application server and download the same.
Below you can find sample code:-
data: ls_outfile type char2000,
lt_infile type table of char2000.
* Selection screen
parameters: p_input type char255 obligatory.
p_output type char255 obligatory.
start-of-selection.
open dataset p_output for output in text mode.
if sy-subrc ne 0.
Write 'Unable to open the specifield application server file', p_output.
stop.
Endif.
call function 'WS_UPLOAD'
exporting
filename = p_input
filetype = 'ASC'
tables
data_tab = lt_infile
exceptions
conversion_error = 01
file_open_error = 02
file_read_error = 03
invalid_table_width = 04
invalid_type = 05
no_batch = 06
unknown_error = 07.
if sy-subrc NE 0.
write: /'Unable to upload', p_input.
stop.
endif.
loop at lt_infile into ls_outfile.
transfer ls_outfile to p_output.
endloop.
describe table lt_infile lines lv_lines.
write: / lv_lines, 'records transfered.'.
close dataset p_output.
Thanks,
Uday.
2013 Nov 11 4:23 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |