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

Hi Experts,

Former Member
0 Likes
938

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

7 REPLIES 7
Read only

former_member219762
Contributor
0 Likes
910

Hi Goutham,

Use function module  ARCHIVFILE_CLIENT_TO_SERVER

Regards,

Sreenivas.

Read only

0 Likes
910

thanks srinivasa

Read only

former_member202771
Contributor
0 Likes
910

transaction CG3Z.

Read only

0 Likes
910

thanks anil.. I used this

Read only

0 Likes
910

Hi Gautham,

Mark an answer as correct answer if your requirement is addressed. It will help other users.

Thank you,

Anil

Read only

Former Member
0 Likes
910

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.

Read only

0 Likes
910

thanks uday