WS_UPLOAD,WS_DOWNLOAD and GUI_UPLOAD,GUI_DOWNLOAD.

Hi,
Any one Explain difference between WS_UPLOAD,WS_DOWNLOAD and GUI_UPLOAD,GUI_DOWNLOAD.
Regards,
Maya

hi maya,
   ws_upload and gui_upload, will do the same funtionality.
ws_download and gui_download will do the same functionality.
but ws* are obsolete.
Regards....
Arun.
Reward points if useful.

Similar Messages

  • What is ws_upload, upload and gui_upload?

    while i am doing recording sing fk01   in bdc when i am trying to upload .prn file one message is coming i.e. ws_upload is obsolete use gui_upload? then i used gui_upload but .prn file not uploading?why?

    Hi
    GUI_UPLOAD is the new fm has replaced the WS_UPLOAD, when u uses it u make sure the file is beeing loaded has to be closed in your pc.
    Anyway it's better u post the code where u call that fm.
    Max

  • What is the difference  between ws_upload and gui_upload

    what is the difference  between ws_upload and gui_upload
    what is the difference  between ws_download and gui_down load
    pls tell  briefly

    Hi Kuamr,
    UPLOAD and 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. UPLOAD and 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.
    Hope this resolves your query.
    Reward all the helpful answers.
    Regards

  • What is difference between WS_UPLOAD and GUI_UPLOAD

    Dear gurus,
    Because my office implement SAP for a long time ago so some programs contain WS_UPLOAD function and I find that is obsolete so I want to know what is different or benefit if I modify program to use GUI_UPLOAD function instead of WS_UPLOAD function
    If you have related document please give me the link.
    Thank you,

    Hi,
    WS_Download Function module is used in 4.6 c version  and it is obsolete.From 6 version u need to use
    GUI_Download.
    WS_DOWNLOAD is obsolete function module for storing SAP data in a file in the file system of the presentation server.
    CALL FUNCTION 'WS_DOWNLOAD'
    EXPORTING
      BIN_FILESIZE                  = ' '
      CODEPAGE                      = ' '
      FILENAME                      = ' '
      FILETYPE                      = 'ASC'
      MODE                          = ' '
      WK1_N_FORMAT                  = ' '
      WK1_N_SIZE                    = ' '
      WK1_T_FORMAT                  = ' '
      WK1_T_SIZE                    = ' '
      COL_SELECT                    = ' '
      COL_SELECTMASK                = ' '
      NO_AUTH_CHECK                 = ' '
    IMPORTING
      FILELENGTH                    =
    TABLES
    DATA_TAB                      = lt_datatab
      FIELDNAMES                    =
    EXCEPTIONS
      FILE_OPEN_ERROR               = 1
      FILE_WRITE_ERROR              = 2
      INVALID_FILESIZE              = 3
      INVALID_TYPE                  = 4
      NO_BATCH                      = 5
      UNKNOWN_ERROR                 = 6
      INVALID_TABLE_WIDTH           = 7
      GUI_REFUSE_FILETRANSFER       = 8
      CUSTOMER_ERROR                = 9
      NO_AUTHORITY                  = 10
      OTHERS                        = 11
    Now you ave to use method or function module GUI_DOWNLOAD
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
    EXPORTING
       BIN_FILESIZE              =
    FILENAME                  = lv_filename
       FILETYPE                  = 'ASC'
       APPEND                    = SPACE
       WRITE_FIELD_SEPARATOR     = SPACE
       HEADER                    = '00u2032
       TRUNC_TRAILING_BLANKS     = SPACE
       WRITE_LF                  = 'X'
       COL_SELECT                = SPACE
       COL_SELECT_MASK           = SPACE
       DAT_MODE                  = SPACE
       CONFIRM_OVERWRITE         = SPACE
       NO_AUTH_CHECK             = SPACE
       CODEPAGE                  = SPACE
       IGNORE_CERR               = ABAP_TRUE
       REPLACEMENT               = '#'
       WRITE_BOM                 = SPACE
       TRUNC_TRAILING_BLANKS_EOL = 'X'
       WK1_N_FORMAT              = SPACE
       WK1_N_SIZE                = SPACE
       WK1_T_FORMAT              = SPACE
       WK1_T_SIZE                = SPACE
    IMPORTING
       FILELENGTH                =
    CHANGING
    DATA_TAB                  = lt_datatab
    EXCEPTIONS
       FILE_WRITE_ERROR          = 1
       NO_BATCH                  = 2
       GUI_REFUSE_FILETRANSFER   = 3
       INVALID_TYPE              = 4
       NO_AUTHORITY              = 5
       UNKNOWN_ERROR             = 6
       HEADER_NOT_ALLOWED        = 7
       SEPARATOR_NOT_ALLOWED     = 8
       FILESIZE_NOT_ALLOWED      = 9
       HEADER_TOO_LONG           = 10
       DP_ERROR_CREATE           = 11
       DP_ERROR_SEND             = 12
       DP_ERROR_WRITE            = 13
       UNKNOWN_DP_ERROR          = 14
       ACCESS_DENIED             = 15
       DP_OUT_OF_MEMORY          = 16
       DISK_FULL                 = 17
       DP_TIMEOUT                = 18
       FILE_NOT_FOUND            = 19
       DATAPROVIDER_EXCEPTION    = 20
       CONTROL_FLUSH_ERROR       = 21
       NOT_SUPPORTED_BY_GUI      = 22
       ERROR_NO_GUI              = 23
       others                    = 24
    Thanks,
    Anitha

  • Differnece between ws_upload and gui_upload

    Hi
    can u plz tell me what is differnece between ws_upload and gui_upload.

    Hi,
    below information  is helpful to u.
    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 , 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.
    for each function module, available under SAP Easy Access " Development " Function Builder " Goto " Documentation.

  • DIFFERANCES BETWEEN WS_UPLOAD AND GUI_UPLOAD??

    HELLO ALL,
             CAN SOMEONE TELL ME THE DIFFERANCES BETWEEN WS_UPLOAD AND GUI_UPLOAD????
    REGARDS,
    SEENU

    Hi Seenu,
    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.
    Regards
    Naresh

  • Difference between ws_download and gui_download

    Hi
    Can anyone explain briefly the difference between ws_download and gui_download
    Thanks in advance
    sapien

    Hai,
    in ws_download is Obsolete in Higher Versions
    file type is as follows
    PARAMETERS: P_FILE LIKE RLGRAP-FILENAME.     "local file with contracts
      CALL FUNCTION 'DOWNLOAD'
         EXPORTING
             FILENAME                = ' '
              FILETYPE                = I_TYPE
         TABLES
              DATA_TAB                = T_DOWNLOAD
         EXCEPTIONS
              INVALID_FILESIZE        = 1
              INVALID_TABLE_WIDTH     = 2
              INVALID_TYPE            = 3
              NO_BATCH                = 4
              UNKNOWN_ERROR           = 5
              GUI_REFUSE_FILETRANSFER = 6
              OTHERS                  = 7.
    in gui_download -->is using instead of 'ws_upload'
    file type is as follows
    PARAMETERS: P_FILE LIKE STRING.     "local file with contracts
    DATA: D_FILENAME TYPE STRING,
          D_FILEPATH TYPE STRING,
          D_FULLPATH TYPE STRING,
          L_FILETYPE TYPE CHAR10.
    IF L_FILETYPE = 'ASC'.
    L_FILETYPE = 'ASC'.
    ELSE.
    L_FILETYPE = 'DAT'.
    ENDIF.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG
    EXPORTING
       WINDOW_TITLE         =
       DEFAULT_EXTENSION    =
       DEFAULT_FILE_NAME    =
       FILE_FILTER          =
       INITIAL_DIRECTORY    =
       WITH_ENCODING        =
       PROMPT_ON_OVERWRITE  = 'X'
       CHANGING
        FILENAME             = D_FILENAME
        PATH                 = D_FILEPATH
        FULLPATH             = D_FULLPATH
       USER_ACTION          =
       FILE_ENCODING        =
      EXCEPTIONS
        CNTL_ERROR           = 1
        ERROR_NO_GUI         = 2
        NOT_SUPPORTED_BY_GUI = 3
        others               = 4
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    IF NOT D_FULLPATH IS INITIAL.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
      BIN_FILESIZE                    =
        FILENAME                        = D_FULLPATH
        FILETYPE                        = L_FILETYPE
      APPEND                          = ' '
      WRITE_FIELD_SEPARATOR           = ' '
      HEADER                          = '00'
      TRUNC_TRAILING_BLANKS           = ' '
      WRITE_LF                        = 'X'
      COL_SELECT                      = ' '
      COL_SELECT_MASK                 = ' '
      DAT_MODE                        = ' '
      CONFIRM_OVERWRITE               = ' '
      NO_AUTH_CHECK                   = ' '
      CODEPAGE                        = ' '
      IGNORE_CERR                     = ABAP_TRUE
      REPLACEMENT                     = '#'
      WRITE_BOM                       = ' '
      TRUNC_TRAILING_BLANKS_EOL       = 'X'
      WK1_N_FORMAT                    = ' '
      WK1_N_SIZE                      = ' '
      WK1_T_FORMAT                    = ' '
      WK1_T_SIZE                      = ' '
    IMPORTING
      FILELENGTH                      =
      TABLES
        DATA_TAB                        = T_DOWNLOAD
      FIELDNAMES                      =
    EXCEPTIONS
       FILE_WRITE_ERROR                = 1
       NO_BATCH                        = 2
       GUI_REFUSE_FILETRANSFER         = 3
       INVALID_TYPE                    = 4
       NO_AUTHORITY                    = 5
       UNKNOWN_ERROR                   = 6
       HEADER_NOT_ALLOWED              = 7
       SEPARATOR_NOT_ALLOWED           = 8
       FILESIZE_NOT_ALLOWED            = 9
       HEADER_TOO_LONG                 = 10
       DP_ERROR_CREATE                 = 11
       DP_ERROR_SEND                   = 12
       DP_ERROR_WRITE                  = 13
       UNKNOWN_DP_ERROR                = 14
       ACCESS_DENIED                   = 15
       DP_OUT_OF_MEMORY                = 16
       DISK_FULL                       = 17
       DP_TIMEOUT                      = 18
       FILE_NOT_FOUND                  = 19
       DATAPROVIDER_EXCEPTION          = 20
       CONTROL_FLUSH_ERROR             = 21
       OTHERS                          = 22

  • Difference between ws_upload and gui_upload

    hi
    could anybody tell me
    what is the difference between ws_upload and gui_upload
    dont say ws_upload is 4.6c version and
    gui_upload is 4.7 version.
    there might be some difference na thats why they migrate it.
    could you plz tell me the differnce
    it ll very helpful to me
    thanx
    kals.

    Hi Kalyan,
    SAP 4.72 onwards system is unicode compliant.
    THE WS_DOWNLOAD and WS_UPLOAD function modules are not compatible for unicode systems.
    So it is replaced with this new FM GUI_UPLOAD.
    There is a SAP note on this issue  Note 992677 - FMs WS_DOWNLOAD & WS_UPLOAD incompatible for unicode systems
    regards,nishant
    please reward points if this helps.

  • How to get gui_download and gui_upload with popup filename?

    how to get gui_download and gui_upload with popup filename?

    Here is a short example.
    report zrich_0003 .
    data: ifiletab type filetable.
    data: xfiletab like line of ifiletab.
    data: xstring type string.
    data: rc type i.
    data: itab type table of string.
    data: xtab type string.
    start-of-selection.
      call method cl_gui_frontend_services=>file_open_dialog
        changing
          file_table              = ifiletab
          rc                      = rc.
      read table ifiletab into xfiletab index 1.
      xstring = xfiletab-filename.
      check not xstring is initial.
      call method cl_gui_frontend_services=>gui_upload
        exporting
          filename                = xstring
      changing
        data_tab                = itab.
      loop at itab into xtab.
        write:/ xtab.
      endloop.
    Regards,
    Rich Heilman

  • What is the main difference between ws_upload and gui_upload?

    Hi All,
    What is the main difference between ws_upload and gui_upload?
    In what contexts should we use these two function modules??
    Thanks,
    Creasy

    search the forum before posting.
    You can find lot of posts related.

  • Ws_upload and GUI_upload ....

    Hi Everyone,
    I got a query, I have tried  using ws_upload and gui_upload both in the program...... the codes are below, If I try using .xls it gives only garbage in the internal table.  .txt format is working fine. Can anyone help by haveing a look at the code piece where am I going wrong. i trid these piece of codes in both ECC6.0 and 4.6.
    **************CODES BELOW*******************
    FORM UPLOAD_PS_PRICE .
    DATA:L_CURR LIKE  EKPO-NETPR.
    CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                = p_local
          filetype                = 'DAT'
         has_field_separator     = 'X'
        TABLES
          data_tab                = t_ps_price
        exceptions
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          OTHERS                  = 17.
      IF sy-subrc <> 0.
      ENDIF.
    CALL FUNCTION 'WS_UPLOAD'
            EXPORTING
                 FILENAME                = P_LOCAL
                 FILETYPE                = 'DAT'
            TABLES
                 DATA_TAB                = T_PS_PRICE
            EXCEPTIONS
                 CONVERSION_ERROR        = 1
                 FILE_OPEN_ERROR         = 2
                 FILE_READ_ERROR         = 3
                 INVALID_TYPE            = 4
                 NO_BATCH                = 5
                 UNKNOWN_ERROR           = 6
                 INVALID_TABLE_WIDTH     = 7
                 GUI_REFUSE_FILETRANSFER = 8
                 CUSTOMER_ERROR          = 9
                 OTHERS                  = 10.
       IF SY-SUBRC <> 0.
         MESSAGE S002 WITH TEXT-007.
       ENDIF.

    hi
    good
    did you debug the code and try to find out where is the exact error is, because it is quite difficult to give you the correct reply with this bit of code.
    thanks
    mrutyun^

  • Replacing WS_DOWNLOAD with CL_GUI_FRONTEND_SERVICES= GUI_DOWNLOAD

    Hi Guys,
       I'm currently changing the programs that uses the obsolete function WS_DOWNLOAD with CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD, and I just want to ask what are the valid FILETYPE for GUI_DOWNLOAD and how can I use a WK1, XLS and DAT filetype in GUI_DOWNLOAD.

    Hi,
    PARAMETERS    p_file  LIKE rlgrap-filename.       
    DATA lv_file TYPE string.
    lv_file = p_file.
      CALL FUNCTION 'GUI_DOWNLOAD'
           EXPORTING
                filename                = lv_file
                filetype                = 'ASC'
                write_field_separator   = c_x
           TABLES
                data_tab                = i_download
           EXCEPTIONS
                file_write_error        = 1
                no_batch                = 2
                gui_refuse_filetransfer = 3
                invalid_type            = 4
                no_authority            = 5
                unknown_error           = 6
                header_not_allowed      = 7
                separator_not_allowed   = 8
                filesize_not_allowed    = 9
                header_too_long         = 10
                dp_error_create         = 11
                dp_error_send           = 12
                dp_error_write          = 13
                unknown_dp_error        = 14
                access_denied           = 15
                dp_out_of_memory        = 16
                disk_full               = 17
                dp_timeout              = 18
                file_not_found          = 19
                dataprovider_exception  = 20
                control_flush_error     = 21
                OTHERS                  = 22.
      IF sy-subrc ne 0.
        MESSAGE i000 WITH text-005. "Error in File downloded
       ENDIF.
    Instead of 'ASC', you can give 'WK1' or 'XLS' if you want.

  • WS_DOWNLOAD and line item with more than 1024 characters

    I want to download a file with line size greater than 1024. I am in version 40B and when i use function module ws_download and it creates two lines instead of one. Is there a solution with another function module or something else?

    Hi
    Are you trying to download in binary format(filetype BIN) ?. Only binary format has length constraint of 1023 characters. Download in 'ASC' or 'DAT' format.
    Also WS_DOWNLOAD is obsolete , use the methods of class CL_GUI_FRONTEND_SERVICES.
    Regards
    Pawan

  • GUI_UPLOAD/GUI_DOWNLOAD dump

    Using GUI_UPLOAD/GUI_DOWNLOAD in ECC 6.0 with Code page mentioned as 'IBM' gave short dump saying :
    The program attempted to interpret the value 'IBM ' as a number, but since the value contravenes the rules for correct number formats.
    Please provide wth explanation/solution to this.
    Regards,
    Abhishek.

    Hi
    Use parameter CODEPAGE to specify the desired target codepage. If this parameter is not set, the codepage of the SAP GUI is used as the target codepage.
    4-digit number of the SAP codepage. Function module SCP_CODEPAGE_BY_EXTERNAL_NAME returns the SAP codepage number for an external character set name such as "iso-8859-1". Function module NLS_GET_FRONTEND_CP returns the related non-Unicode frontend codepage for a language.
    You can specify the desired codepage interactively, if the parameter with_encoding of method file_save_dialog is set by cl_gui_frontend_services.
    Thanks
    Vijay
    PLZ reward points if helpful

  • Diff  ws_upload and gui_upload

    The difference is that the DataProvider is used for the upload instead of GMUX.
    waht is dataprovider and GMUX?
    regards

    Hi,
    WS_* Function modules are replaced by GUI_* FMs from 4.7 SAP version.
    GUI_* modules have additional parameters when compared with WS_* FMs.
    Both FM are used for uploading data .
    But ws_upload is obsolete now .
    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.
    WS_UPLOAD, GUI_UPLOAD FMs are used in BDCs.
    WS_UPLOAD loads files from the Presentation Server to Internal ABAP Tables.
    This is used upto SAP 4.6 version.
    GUI_UPLOAD is used to loads a file from the PC to the server. The data can be
    transferred in binary or text format. Numbers and data fields can be
    interpreted according to the user settings.
    You can check this for some info
    http://help.sap.com/saphelp_erp2005/helpdata/en/79/c554a3b3dc11d5993800508b6b8b11/frameset.htm
    http://www.sapdevelopment.co.uk/file/file_otherpc.htm
    Regards,
    Priyanka.

Maybe you are looking for

  • IMovie cannot import iPhoto at all

    I'm unable to import any iPhoto content at all into iMovie.  I'm running iMovie 11 (9.0.4) and iPhoto 11 (9.0.5) on an iMac running OS X 10.7.1.  The basic problem is that iMovie is not able to load iPhoto content into the photo panel.  It just hangs

  • How to call JSp from Servlet??

    Hello, I want to call JSP page from servlet.I am using Visual Age For java 3.4. What is wrong in my code?? if (userExists) { f.setErrors("userName","Duplicate User: Try a different username"); getServletConfig().getServletContext(). getRequestDispatc

  • Word Docs vs Notepad Docs

    I am unable to open notepad docs. The words are garbled...what does this mean and how can it be fixed?

  • Songs that I had in my iPhone appear now in grey / unplayable with iCloud

    Suddenly after upgrading my iPhone 4 to IOS5 with iCloud, I see that many of the songs that I had in my iPhone appear now in grey, and I cannot play them anymore. Anyone has a hint why is this? Thanks, Carlos.

  • Possible to make TM backup no matter what?

    Is it possible to tell Time Machine to backup a certain folder even if not all the files in that folder have been edited since the last backup?