Application Development 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: 

ws_upload

Former Member
0 Kudos

Hi Friends,

What is the use of attribute 'Mode' in Ws_upload?

Regards,

Anuradha.

6 REPLIES 6

Former Member
0 Kudos

HI,

Use the GUI_UPLOAD instead of WS_UPLOAD as it is obsolete.


F4 help for file name..
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
    EXPORTING
      static        = ' '
    CHANGING
      file_name     = p_filename
    EXCEPTIONS
      mask_too_long = 1
      OTHERS        = 2.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename                = l_filename
        filetype                = 'ASC'
        has_field_separator     = c_x
      TABLES
        data_tab                = p_input
      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.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
  ENDIF.

Edited by: Avinash Kodarapu on Feb 6, 2009 5:37 PM

Former Member
0 Kudos

Hi,

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

Thanks

Arun

ThomasZloch
Active Contributor
0 Kudos

WS_UPLOAD is obsolete, use GUI_UPLOAD. Almost every parameter is well explained in documentation.

Thomas

Former Member
0 Kudos

I couldn't find any attribute called as mode in WS_UPLOAD function module

Could you please be more specific

Former Member
0 Kudos

blank for overwrite and 'A' is for append the file ( in WS_DOWNLOAD)

Former Member
0 Kudos

thankyou friends.i got the solution.