cancel
Showing results for 
Search instead for 
Did you mean: 

Alternate function module or classes upload the notepad file

sai_b
Explorer
0 Kudos

Hi,  

My program calling the standard FM CRM_ERMS_CAT_CA_UPDATE_UI, which seems to be obsolete.   And it has only one mesg statement as below.  So we need to look for an alternative FM or any classes.

1) i removed CRM_ERMS_CAT_CA_UPDATE_UI instead i used this fm CRM_ERMS_CAT_CA_UPDATE. but notepad data is not uploaded in webui level .service business role --->categorization schemas... i checked our data is not uploaded..

after which function modules or classes i will calll update the data in the webui level.

Please send me what procedure i will follow i upload the notepad file.

Regards,

Sai

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member191572
Contributor
0 Kudos

Hi,

Direct upload  from ui using FM or classes will always fail.

If you want upload any file in web ui you have to use the html tag- file upload, Use the component GS_FILE_UPLOAD to upload any document in to CRM web UI,

former_member191572
Contributor
0 Kudos

**Local variables

  DATA : lv_filename TYPE string.



  lv_filename = iv_filename.



  CALL METHOD cl_gui_frontend_services=>gui_upload

    EXPORTING

      filename            = lv_filename

      has_field_separator = gc_on

    CHANGING

      data_tab            = lt_data

    EXCEPTIONS

      file_open_error     = 1

      file_read_error     = 2

      invalid_type        = 3

      no_batch            = 4

      unknown_error       = 5

      OTHERS              = 6.

  IF sy-subrc <> 0.

    MESSAGE i722(ad) WITH lv_filename.

    LEAVE LIST-PROCESSING.

  ENDIF.