Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ws_upload obsolete

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

Tags:
Former Member
replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question