Skip to Content
0
Former Member
Dec 01, 2009 at 02:29 PM

Excel File Uplaod

295 Views

Hi Everyone,

I am unable to upload the excel file (.xls).

Its uploading in different format like this ## ࡱ #.

May be this the problem of conversion from XSTRING to STRING.

I am able to upload tab separeted TEXT (.txt) file but not excel file.

For conversion purpose i tried.

TRY.
      CALL METHOD cl_abap_conv_in_ce=>create
        EXPORTING
          input    = l_xstring
        RECEIVING
          conv     = l_convin.

      CALL METHOD l_convin->read
        IMPORTING
          data = l_string.
    CATCH cx_root.
  ENDTRY.

and

CALL FUNCTION 'HR_KR_XSTRING_TO_STRING'
    EXPORTING
      in_xstring = l_xstring
    IMPORTING
      out_string = l_string.

and

LXE_COMMON_XSTRING_TO_STRING

if any one have solution other than above .

please reply

Regards,

Sandeep Patel