Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9159

Re: Excel file not getting uploaded in the internal table

$
0
0

Hi Ajinkya,

 

I used the ALSM_EXCEL_TO_INTERNAL_TABLE like this and I can retrieve values.

See if it works for you too.

 

 

 

(Top Include)

TYPES:  gy_raw_data   TYPE STANDARD TABLE OF alsmex_tabline,

 

FORM f_get_data  CHANGING ct_data TYPE gy_raw_data.

   IF sy-batch NE abap_true.
     CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
       EXPORTING
         filename                = p_file
         i_begin_col             = 1
         i_begin_row             = 1
         i_end_col               = 99
         i_end_row               = 999
       TABLES
         intern                  = ct_data
       EXCEPTIONS
         inconsistent_parameters = 1
         upload_ole              = 2
         OTHERS                  = 3.
     IF sy-subrc <> 0.
           MESSAGE 'Error in reading file'(009)
           TYPE c_information.
           LEAVE LIST-PROCESSING.
     ENDIF.
   ENDIF.

ENDFORM.


Viewing all articles
Browse latest Browse all 9159

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>