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 obsolete

Former Member
0 Kudos

Hi Gurus,

I was performing unicode check on a program using t-code UCCHECK.It gives me error message saying FM WS_DOWNLOAD is obsolete.What does this mean

1 ACCEPTED SOLUTION

naimesh_patel
Active Contributor
0 Kudos

Obsoete means SAP is trying to remove the FM in upcoming versions. So, please use FM GUI_UPLOAD or method CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD


  CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD
    EXPORTING
      FILENAME            = L_FILE
      HAS_FIELD_SEPARATOR = 'X'
    CHANGING
      DATA_TAB            = IT_FILE
    EXCEPTIONS
      FILE_OPEN_ERROR     = 1
      FILE_READ_ERROR     = 2
      OTHERS              = 18.
  IF SY-SUBRC <> 0.
    MESSAGE E398(00) WITH 'Error while opening a file'.
  ENDIF.

Regards,

Naimesh Patel

2 REPLIES 2

Former Member
0 Kudos

Hi Divya,

FM ws_download and ws_upload are obsolete.Instead use gui_upload or gui_download.

naimesh_patel
Active Contributor
0 Kudos

Obsoete means SAP is trying to remove the FM in upcoming versions. So, please use FM GUI_UPLOAD or method CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD


  CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD
    EXPORTING
      FILENAME            = L_FILE
      HAS_FIELD_SEPARATOR = 'X'
    CHANGING
      DATA_TAB            = IT_FILE
    EXCEPTIONS
      FILE_OPEN_ERROR     = 1
      FILE_READ_ERROR     = 2
      OTHERS              = 18.
  IF SY-SUBRC <> 0.
    MESSAGE E398(00) WITH 'Error while opening a file'.
  ENDIF.

Regards,

Naimesh Patel