About UPLOAD, GUI_UPLOAD and WS_UPLOAD

Hello Experts,
         What is the difference between UPLOAD, GUI_UPLOAD and WS_UPLOAD function modules. Please send me brief answer about this on following mail id
"[email protected]"
Reward for useful answer
Thanx and regards,
Rahul Talele

I would suggest to always use the GUI_UPLOAD.  I say this because this is the function module which is used in the GUI_UPLOAD method of the class CL_GUI_FRONTEND_SERVICES.   Really, you should probably use the class/method instead of the function module.
  data: filename type string.
  filename = p_file.
  call method cl_gui_frontend_services=>gui_upload
         exporting
              filename                = filename
              filetype                = 'ASC'
         changing
              data_tab                = iflatf
         exceptions
              file_open_error         = 1
              file_read_error         = 2
              no_batch                = 3
              gui_refuse_filetransfer = 4
              no_authority            = 6
              unknown_error           = 7
              bad_data_format         = 8
              unknown_dp_error        = 12
              access_denied           = 13
              others                  = 17.
Regards,
Rich Heilman

Similar Messages

  • Difference between GUI_UPLOAD and WS_UPLOAD

    Hi,
    Please make me clear about the difference between GUI_UPLOAD and WS_UPLOAD. In which cases we need to use these modules...??
    Thanks,
    Satish

    I would suggest to always use the GUI_UPLOAD.  I say this because this is the function module which is used in the GUI_UPLOAD method of the class CL_GUI_FRONTEND_SERVICES.   Really, you should probably use the class/method instead of the function module.
      data: filename type string.
      filename = p_file.
      call method cl_gui_frontend_services=>gui_upload
             exporting
                  filename                = filename
                  filetype                = 'ASC'
             changing
                  data_tab                = iflatf
             exceptions
                  file_open_error         = 1
                  file_read_error         = 2
                  no_batch                = 3
                  gui_refuse_filetransfer = 4
                  no_authority            = 6
                  unknown_error           = 7
                  bad_data_format         = 8
                  unknown_dp_error        = 12
                  access_denied           = 13
                  others                  = 17.
    Regards,
    Rich Heilman

  • Gui_upload and  ws_upload

    hi friends,
    i have a small doubt i just want to know the difference betweeen
    GUI_UPLOAD and WS_UPLOAD which one i have to use.
    which function module is useful and  most preferred.
    regards
    srinivas

    WS_UPLOAD and WS_DOWNLOAD, the function modules used until now are not part of the standard set of ABAP commands. They are used to display the file interface on the presentation server. WS_UPLOAD and WS_DOWNLOAD are not compatible with USs and have been replaced by GUI_UPLOAD and GUI_DOWNLOAD.
    The new function modules, GUI_UPLOAD and GUI_DOWNLOAD, have an interface that also allows you to write Unicode format to the local hard drive. For a description of these interfaces, refer to the documentation for each function module, available under SAP Easy Access " Development " Function Builder " Goto " Documentation.

  • Diff between gui_upload &? ws_upload

    can any one tell me what is the difference between gui_upload and ws_upload.

    Hi harish
    WS_UPLOAD function module is now obsolete
    from 4.7 ,gui_upload is used., this supports OOPs.
    check this
    WS_UPLOAD and WS_DOWNLOAD, the function modules used until now are not part of the standard set of ABAP commands. They are used to display the file interface on the presentation server. WS_UPLOAD and WS_DOWNLOAD are not compatible with USs and have been replaced by GUI_UPLOAD and GUI_DOWNLOAD.
    The new function modules, GUI_UPLOAD and GUI_DOWNLOAD, have an interface that also allows you to write Unicode format to the local hard drive.
    Instead of using the function modules, you can use the static methods GUI_UPLOAD and GUI_DOWNLOAD of the global class CL_GUI_FRONTEND_SERVICES.
    These classes are used to convert ABAP data from the system format to external formats and vice versa. During this conversion process, character-type data may be converted to another character set, while numeric-type data may be converted to another byte order (or endian format). You must use a container of type X or XSTRING for data in an external format.
    Character sets and endian formats are also converted by the file interface (OPEN DATASET with new additions), RFCs, and the function modules GUI_DOWNLOAD and GUI_UPLOAD. The classes described below are available for those special cases where the possibilities offered by conversion are insufficient. Since these classes work with containers of types X and XSTRING, these containers can be copied unconverted by the file interface (OPEN DATASET with new additions), RFCs, and the function modules GUI_DOWNLOAD and GUI_UPLOAD. These classes replace the following two statements:
    TRANSLATE c ...FROM CODE PAGE     g1 ... TO CODE PAGE     g2
    TRANSLATE f ...FROM NUMBER FORMAT n1 ... TO NUMBER FORMAT n2
    For a detailed description, see the class documentation in the Class Builder. The following classes are available:
    CL_ABAP_CONV_IN_CE
    Reads data from a container and converts it to the system format. You can also fill structures with data.
    CL_ABAP_CONV_OUT_CE
    Converts data from the system format to an external format and writes it to a container.
    CL_ABAP_CONV_X2X_CE
    Converts data from one external format to another.
    These classes are used to convert ABAP data from the system format to external formats and vice versa. During this conversion process, character-type data may be converted to another character set, while numeric-type data may be converted to another byte order (or endian format). You must use a container of type X or XSTRING for data in an external format.
    Character sets and endian formats are also converted by the file interface (OPEN DATASET with new additions), RFCs, and the function modules GUI_DOWNLOAD and GUI_UPLOAD. The classes described below are available for those special cases where the possibilities offered by conversion are insufficient. Since these classes work with containers of types X and XSTRING, these containers can be copied unconverted by the file interface (OPEN DATASET with new additions), RFCs, and the function modules GUI_DOWNLOAD and GUI_UPLOAD. These classes replace the following two statements:
    TRANSLATE c ...FROM CODE PAGE     g1 ... TO CODE PAGE     g2
    TRANSLATE f ...FROM NUMBER FORMAT n1 ... TO NUMBER FORMAT n2
    For a detailed description, see the class documentation in the Class Builder. The following classes are available:
    CL_ABAP_CONV_IN_CE
    Reads data from a container and converts it to the system format. You can also fill structures with data.
    CL_ABAP_CONV_OUT_CE
    Converts data from the system format to an external format and writes it to a container.
    CL_ABAP_CONV_X2X_CE
    Converts data from one external format to another.
    Minimal demo report for Virus Scan Interface.
    For a functionally more complete example see report RSVSCANTEST.
    REPORT zvscandemo.
    Selection screen
    PARAMETERS:
      profile TYPE vscan_prof-profile,
      file    TYPE localfile.
    Events
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR file.
      PERFORM file_f4.
    START-OF-SELECTION.
      PERFORM main.
    Main program
    FORM main.
      IF file IS INITIAL.
        MESSAGE s058(vscan) DISPLAY LIKE 'E'.
        EXIT.           " =================== EXIT =====================
      ENDIF.
    Access file and create XSTRING
      TYPES:
        ty_xline(1024) TYPE x.
      DATA:
        lf_file       TYPE string,
        lf_filelength TYPE i,
        lt_datatab    TYPE STANDARD TABLE OF ty_xline.
      lf_file = file.
      CALL METHOD cl_gui_frontend_services=>gui_upload
        EXPORTING
          filename                = lf_file
          filetype                = 'BIN'
        IMPORTING
          filelength              = lf_filelength
        CHANGING
          data_tab                = lt_datatab
        EXCEPTIONS
          OTHERS                  = 1.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
                     DISPLAY LIKE 'E'
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          EXIT.           " =================== EXIT =====================
        ENDIF.
    Recombine binary data
      DATA:
        lf_tabline TYPE ty_xline,
        lf_data    TYPE xstring.
      LOOP AT lt_datatab INTO lf_tabline.
        CONCATENATE
            lf_data
            lf_tabline
          INTO
            lf_data
          IN BYTE MODE.
      ENDLOOP.
      lf_data = lf_data(lf_filelength).
    Get scanner instance
      DATA:
        lo_vsi TYPE REF TO cl_vsi.
      CALL METHOD cl_vsi=>get_instance
        EXPORTING
          if_profile          = profile
        IMPORTING
          eo_instance         = lo_vsi
        EXCEPTIONS
          configuration_error = 1
          profile_not_active  = 2
          internal_error      = 3
          OTHERS              = 4.
      CASE sy-subrc.
      No error.
        WHEN 0.
          " Nothing to do
      Profile not active. For this report, this is an information message.
        WHEN 2.
          MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
                     DISPLAY LIKE 'I'
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          EXIT.            " =================== EXIT =====================
      All other exceptions are issued as errors.
        WHEN OTHERS.
          MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
                     DISPLAY LIKE 'E'
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          EXIT.            " =================== EXIT =====================
      ENDCASE.
    Perform virus scan
      DATA:
        lf_scanrc    TYPE vscan_scanrc.
      CALL METHOD lo_vsi->scan_bytes
        EXPORTING
          if_data             = lf_data
        IMPORTING
          ef_scanrc           = lf_scanrc
        EXCEPTIONS
          not_available       = 1
          configuration_error = 2
          internal_error      = 3
          OTHERS              = 4.
    All exceptions here are errors
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
                   DISPLAY LIKE 'E'
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        EXIT.            " =================== EXIT =====================
      ENDIF.
    Print return code and text
      DATA:
        lf_text TYPE string.
      lf_text = cl_vsi=>get_scanrc_text( lf_scanrc ).
      WRITE: / 'Result of virus scan: ', lf_scanrc, '(', lf_text, ')'.
      IF lf_scanrc = cl_vsi=>con_scanrc_ok.
        WRITE: / 'File is clean'.
      ELSE.
        WRITE: / 'File was either infected',
                 'or could not be scanned',
                 'or was ignored'.
                 'Or another problem occurred'.
      ENDIF.
    ENDFORM.
    F4-help for filename
    FORM file_f4.
      DATA:
        lt_filetable TYPE filetable,
        lf_rc        TYPE i.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          multiselection          = abap_false
        CHANGING
          file_table              = lt_filetable
          rc                      = lf_rc
        EXCEPTIONS
          file_open_dialog_failed = 1
          cntl_error              = 2
          error_no_gui            = 3
          not_supported_by_gui    = 4
          OTHERS                  = 5.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
                   DISPLAY LIKE 'E'
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        EXIT.
      ENDIF.
    Number of selected filed must be equal to one.
      CHECK lf_rc = 1.
    Access selected file
      DATA:
        ls_file TYPE file_table.
      READ TABLE lt_filetable INTO ls_file INDEX 1.
      CHECK sy-subrc = 0.
      file = ls_file-filename.
    ENDFORM.

  • Difference of gui_upload and upload

    difference of <b>gui_upload</b> and <b>upload</b> and <b>ws_upload</b>

    hi
    good
    There is no difference from functionality point of view.
    But when the new versions of SAP comes into picture certain objects(fun modules,tables,fields etc) will become Obsolete and the new Objects will come into picture in the place of Obsolete Fun modules and other objects
    So GUI_Upload and GUI_DOWNLOAD are the newversion of function modules which are the replacement for the UPLOAD and DOWNLOAD fun modules
    So we should use the New one.
    So it depends on the SAP Version on which you are working
    If you are still working in the Older versions of SAP like 4.0 like thing then you can use the DOWNLOAD and UPLOAD.
    But if you are working on the latest versions like ECC5.0 and ECC6.0 you have to use GUI_download and GUI_UPLOAD fun modules only
    reward point if helpful.
    thanks
    mrutyun^

  • Purpose each of these is: Gui_upload and upload

    Hi Friends,
    Kindly let me know what the Exact Purpose each of these is: Gui_upload and upload
    What is the difference between those two?
    Akshitha.

    Hi,
    UPLOAD fm is the old function module which is now obsolete. From 4.6C onwards SAP has delivered new FM's for uploading and that is GUI_UPLOAD.
    the diff is  UPLOAD pops up a box during runtime to accept the file path the GUI_UPLOAD does not pop up any box during runtime instead takes the path as a paramter.
    This is what SAP HELP SAYS
    Files on the Presentation Server
    WS_UPLOAD and WS_DOWNLOAD, the function modules used until now are not part of the standard set of ABAP commands. They are used to display the file interface on the presentation server. WS_UPLOAD and WS_DOWNLOAD are not compatible with USs and have been replaced by GUI_UPLOAD and GUI_DOWNLOAD.
    The new function modules, GUI_UPLOAD and GUI_DOWNLOAD, have an interface that also allows you to write Unicode format to the local hard drive. For a description of these interfaces, refer to the documentation for each function module, available under SAP Easy Access " Development " Function Builder " Goto " Documentation.
    Instead of using the function modules, you can use the static methods GUI_UPLOAD and GUI_DOWNLOAD of the global class CL_GUI_FRONTEND_SERVICES.
    Cheers
    VJ
    Message was edited by:
            Vijayendra  Rao

  • What is the difference between UPLOAD and WS_UPLOAD?

    Hi,
    What is the difference between UPLOAD and WS_UPLOAD?
    Best Regards,
    Gopal

    Hi,
    Both upload and ws_upload does the same functionality, that is transfere data from presentation server to application server or from PC to SAP system(to an internal table).
    There are very few difference between the two.
    1 Upload requires a User Interaction for uploading i.e., user has to respond to the dialog boxes that appear WS_Upload does not. You just need to specify the file location in the function input parameters itself.
    2 upload - u can give the file in run time wsupload - u have to give in Function module
    3 upload is meant to be used by abappers. ws_upload is meant to be called by SAP. It is not a standard ABAP command.
    4 ws_upload is Obsolete : No longer supported by SAP. Use GUI_UPLOAD instead.
    The fm WS_UPLOAD was the first version of fm to get a file from presentation server, now from 4.6 it's obsolete, the new fm is GUI_UPLOAD.
    The fm UPLOAD is the fm used in several applications, like ABAP editor, to upload the file.
    In the some versions (it depends on patch level) UPLOAD can call WS_UPLOAD (or GUI_UPLOAD).
    Last but not the least, 'upload' internally calls 'ws_upload', that's the difference.
    Hope this would be helpful.
    regards,
    Varun.

  • Do I have to be concerned about optimizing graphics and photos before uploading to Muse?

    Do I have to be concerned about optimizing graphics and photos before uploading to Muse?

    Yes and no.
    Muse optimizes images for output and reduces unnecessary file sizes.
    Just test it
    • Place a rather big image
    • Export the site as HTML to your computer.
    • Compare the original image with that one Muse exported to the "image" folder.
    If you want to make sure, that you achieve best possible quality, use images in exactly the pixel dimensions, which are needed in your layout. In this case, Muse will not touch the picture at all and export it as is.

  • New Mac user. On a website the "Browse" button/link to upload pics and files is not showing, but shows up when I check from another computer. Why is it not showing on my MacBook Pro?

    I just got my new MacBook Pro over the weekend, and was sooo excited. I wanted it to take back and forh to work with me. However on a website I use for work, I need to be able to upload files and pictures. but the area where the link/button "Browse" is normally at to add the pics or files, it is not showing up on my Mac. I thought maybe the site was messed up, but when I helped another coworker, I noticed on her screen (an HP computer) the link/button to browse files and upload is there. I came back to my MacBook Pro thinking maybe the website was working correctly again, but its still not showing up on mine. So I'm thinking its Mac related. MAybe theres a certain function I need to turn on for this?
    I tried to unblock pop ups, even though its not a pop up screen, but this didn't do anything. HELP!!!!!

    If the modem is also a router, either use the modem in bridge and run pppoe client on the TC.. that is assuming ADSL or similar eg vdsl. If it is cable service.. and the modem is a router, then bridge the TC.. go to internet page and select connect by ethernet and below that set connection sharing to bridge.
    Please tell us more about the modem if the above gives you issues.

  • When I connect my iPod to the computer, it connects for only about 5 seconds and then disconnects on its own before synching. How do I fix this?

    I had my iTunes and library on my home computer.  The computer crapped out along with the hard drive.  I have my library on my iPod and want to put it on my new computer, but any time I connect the iPod to my home computer (and work computer for that matter), it only connects for about 5 seconds and then disconnects on its own.  I go to look at the iPod as a hard drive and I have nothing but empty folders (contacts, calendar, recordings and something else), but nothing is in them.
    1) How do I get my iPod to connect to my computer?
    2) How do I get my iPod to connect to iTunes?
    3) Why don't my music files on my iPod show up on my computer?
    I have uninstalled iTunes and reinstalled iTunes.  I have done the "trick" of hitting the 'Menu and Center' buttons at the same time unitl the Apple icon appears.  I have tried going into Disk Mode.  I don't know what to do now.  The word "Resetting" scares me because this is where I have my 150 GB of music stored and I'd rather not have to upload my CD's again.............will resetting affect that?  The word "Restore" is even scarier!!!
    Help!

    i am using a cable connector like this one.. it works with audio when pluged into a stereo but not a TV.i am trying to display video from ipod, also from other apps.. i also want to know why it does not work.
    i use the video app on the iPod and video stored on other aps.

  • The problem is with the new operating system  and sending photo via email when used in my iPad.   From photo I selected 3 photos to send via email. I choose the upload key and choose to send by email. Typing text on the email is very slow.

    The problem is with the new operating system  and sending photo via email when used in my iPad.
    From photo I selected 3 photos to send via email. I choose the upload key and choose to send by email. Typing text on the email is very slow. This is solved by saving the email as a draft and opening the email again from mail.
    Can you amend he system to allow emails to be sent from photo as previously.

    Have you tried restarting or resetting your iPad?
    Restart: Press On/Off button until the Slide to Power Off slider appears, select Slide to Power Off and, after the iPad shuts down, then press the On/Off button until the Apple logo appears.
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10 seconds). Ignore the "Slide to power off"

  • Question about upload file to sever in jsp.

    i found some articles about upload file in jsp, and most of suggested that the third party classes will be used.
    but i want to know the basic technology behind them, for example what kind of class needed ( using java.io.* as usual)
    and what the process for writing a file to sever.
    any document or url link useful will be very welcomed.
    best regards

    Uploading a file is similar to sending any other kind of data, except that it must be encoded differently than a standard HTML form... Typically you will set up your form like this:
    <form action="/upload" enctype="multipart/form-data" method="POST">
    <input type="file" name="myFile">
    </form>
    The enctype declaration is necessary -- your file won't arrive intact any other way. However, the JSP/Servlet specs don't provide any code to deal with forms which are encoded this way, so things like request.getParameter() don't work. You will either have to roll your own code, or use a third party library.
    For more information, see RFC 1867, File upload in HTTP:
    http://www.faqs.org/rfcs/rfc1867.html

  • General question about uploading web apps

    i have my site completed and it works on the testing server
    without a glitch. i've uploaded static sites before without a
    hitch, but i'm not so certain about web apps. seems when you upload
    the site with dw, it uploads the html and php . . . but then there
    are the tables from the db. uploading them and getting them to hook
    up all over again . . . how do you do that? can someone review the
    steps please. thanks.

    something like this:
    1. check your remote server has phpMyAdmin installed and the
    URL to
    access it (phpMyAdmin is a web app written in PHP and you
    access it
    through a browser)
    2. download and install phpMyAdmin locally
    3. run phpMyAdmin, usually
    http://localhost/phpMyAdmin,
    but the url will
    vary depending the installation and your development
    platform.
    export your local DB; phpMyAdmin will create a file named by
    default
    "localhost.sql". depending your browser configuratioon you
    can change
    the file name/choose where to save
    4. run phpMyAdmin in the remote server and import your DB
    just choosing
    the file in step 3
    later you can export/import tables instead the full DB. if
    you're
    reimporting the DB remember to check the "Add DROP DATABASE"
    checkbox
    when exporting
    you can't see any files in the server with phpMyAdmin, it's
    only a
    visual interface to the MySQL server. keep using DW to
    create/modify/upload html, js and php files
    hconnorjr wrote:
    > so the steps go something like this:
    > 1. find db to upload from testing server
    > 2. go to new server. find the directory that is used for
    databases (presumably
    > one that the admin has already set up for apache/php to
    look for db tables.
    > make a db of the same name as in your testing server.
    > 3. use phpMyadmin on the testing server and make backup
    of your db. since its
    > new for the production server use the default values. in
    this step the db can
    > also be backed up by tables if its large and upload time
    might be an issue.
    > 4. go the the new server. with the phpMyadmin on that
    server, name a database
    > with the same name as the one on the testing server. use
    IMPORT. go to the
    > browse button and find the db on your testing server and
    IMPORT it.
    >
    > small question: i can see the files on the remote server
    from dw when its
    > properly set up, but does phpMyadmin allow me to see
    files on my testing server
    > without some configuration?
    >

  • Upload PDFs and attach to mail

    Is it possible to create a program that can be used to upload a PDF document and then attach that PDF document to an email?  I am aware that you can attch PDF's to an email, but not so aware of uploading the doucments from a PC.

    For upload PDFs try with fm GUI_UPLOAD and use FILETYPE as 'BIN'.

  • Upload PDF and Mail that

    Hi all ,
    My requirement is to upload a PDF file from desktop and mail that to some address ... how this can be achieved ...
    Thanks in advance ,
    Ganesh

    use GUI_UPLOAD and upload the pdf to internal table and then use below f.m to covert it to 255 character
    CALL FUNCTION 'QCE1_CONVERT'
            TABLES
              t_source_tab         = i_tline
              t_target_tab         = so_ali[]
            EXCEPTIONS
              convert_not_possible = 1
              OTHERS               = 2.
    then use below f.m to send mail..
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
          EXPORTING
          document_data = doc_chng
          put_in_outbox = 'X'
          commit_work = 'X'
          TABLES
          packing_list = objpack
          contents_txt = objtxt[]
          contents_bin = so_ali[]
    *contents_hex = so_ali[]
          receivers = reclist[]
          EXCEPTIONS
          too_many_receivers = 1
          document_not_sent = 2
          document_type_not_exist = 3
          operation_no_authorization = 4
          parameter_error = 5
          x_error = 6
          enqueue_error = 7
          OTHERS = 8.
          IF sy-subrc = 0.
            PERFORM mail.
            MESSAGE 'Mail sent successfully' TYPE 'S'.
    *SUBMIT RSCONN01 WITH MODE = MODE.
          ENDIF.

Maybe you are looking for

  • Does anyone know if it is possible to change the display in week view to show 24 hours per day for those of us that work irregular hours

    Does anyone know if it is possible to change the display in week view to show all 24 hours per day for those of us that work irregular hours. Also is it possible to have all of the 'all day' entries showing, not just 3.5 of them. The app Week Cal HD

  • This thing is not working!! i need help please!!!

    i picked up a ipod nano today figureing that its a pretty good mp3 player for my needs... i get home turn the thing on mess with it for a few mins turn it off plug it in to charge and it still turns on and off so im figureing okay cool ill install my

  • Web Services with JBuilder

    I've created a web service with jbuilder.I've deployed it in weblogic server 7. Jbuilder also creates a client jar file necessary where I want to call my web service. Imagine I want to call my webservice from a .NET platform. How I have to do it? I d

  • Sun's JDK 1.3.0_02 hangs on RedHat 7.1

    I am trying to install Oracle 8.1.7 on Linux RedHat 7.1. This time, my problem is that the script runInstaller freezes and nothing happens. I am using JDK 1.3.0_02 from Sun. What version of Java should I use? Did Anyone install Oracle on RedHat 7.1?

  • Opening URL

    Hi, How do we open URLs in a browser from a java application? I know that it can be done if is an applet by calling showDocument method of appletContext. But how to do it from an application? Thank You.