Application Development and Automation 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: 
Read only

Problem with excel upload function

Former Member
0 Likes
308

Hello all,

I'm currently doing a modification in a program that uses this function:



  call function 'KCD_EXCEL_OLE_TO_INT_CONVERT'     

       exporting                                   

            filename    = p_file                   

            range_begin = 'A1'                     

            range_end   = 'I9999'                  

       tables                                      

            intern      = t_excel                  

       exceptions                                  

            others      = 1.                       

  if sy-subrc <> 0.                                

    berror = 'X'.                                  

    message i208(00) with 'Error Load Excel File'. 

    stop.                                          

  endif.                                           

instead of upload the content of the excel to internal table, its literally copying the content of my clipboard to it.

Someone know why this is happening?

My version of SAP is the 4.0b and I looked for the alsm_excel_to_internal_table function, but my version don't have it.

Thanks

1 REPLY 1
Read only

Former Member
0 Likes
265

Hi,

an excel sheet can be uploaded in to a internal table of similar sequence and type using the following FMs

TEXT_CONVERT_XLS_TO_SAP

ALSM_EXCEL_TO_INTERNAL_TABLE

I think you already checked with the FMs UPLOAD and WS_UPLOAD.

Thanks,

Teja.