<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Function module to get data into internal table from Excel file sheets in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-data-into-internal-table-from-excel-file-sheets/m-p/6715272#M1454458</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dear Firends, Thanks a lot for you replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By all the function modules like TEXT_CONVERT_XLS_TO_SAP, FILE_READ_AND_CONVERT_SAP_DATA,GUI_UPLOAD etc&lt;/P&gt;&lt;P&gt;are to read data from excel file if you have one sheet. My requirement is to read multipul sheets in just one excel file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any function module with which we can read just one excel file with multipul sheets init.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 06 Mar 2010 10:42:09 GMT</pubDate>
    <dc:creator>Noorie</dc:creator>
    <dc:date>2010-03-06T10:42:09Z</dc:date>
    <item>
      <title>Function module to get data into internal table from Excel file sheets</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-data-into-internal-table-from-excel-file-sheets/m-p/6715261#M1454447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to upload customers from excel file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we are donloading customer data excel file sheets.&lt;/P&gt;&lt;P&gt;Customer data in 1 sheet, tax data the other sheet of same excel file, Customer master-Credit data in other sheet of same excel file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i have 3-4 sheet in one excel file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now my requirement is to get the data from excel file into internal table.&lt;/P&gt;&lt;P&gt;is there any function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 10:23:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-data-into-internal-table-from-excel-file-sheets/m-p/6715261#M1454447</guid>
      <dc:creator>Noorie</dc:creator>
      <dc:date>2010-03-04T10:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to get data into internal table from Excel file sheets</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-data-into-internal-table-from-excel-file-sheets/m-p/6715262#M1454448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using the function module ALSM_EXCEL_TO_INTERNAL_TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sharin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 10:26:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-data-into-internal-table-from-excel-file-sheets/m-p/6715262#M1454448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-04T10:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to get data into internal table from Excel file sheets</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-data-into-internal-table-from-excel-file-sheets/m-p/6715263#M1454449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey are you uploading the file from presentation or application server??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 10:50:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-data-into-internal-table-from-excel-file-sheets/m-p/6715263#M1454449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-04T10:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to get data into internal table from Excel file sheets</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-data-into-internal-table-from-excel-file-sheets/m-p/6715264#M1454450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the  class &lt;STRONG&gt;CL_UA_EXCEL_TOOLS&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get a lot if you search in SCN wiki and article section&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 11:23:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-data-into-internal-table-from-excel-file-sheets/m-p/6715264#M1454450</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-03-04T11:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to get data into internal table from Excel file sheets</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-data-into-internal-table-from-excel-file-sheets/m-p/6715265#M1454451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am sending you the idea with an example how you can upload data from an EXCEL file into an internal table. I am not sure if you can take data from different sheet in the same EXCEL file. I think that this is not possible (try it &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Upload the data into an internal table, like the way that I am describing in the above:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: L_MAX_COL_NB TYPE I.&lt;/P&gt;&lt;P&gt;  DATA: l_file_name LIKE RLGRAP-FILENAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Just to be sure that is the correct type for the FM.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  l_file_name = P_FILE_NAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  L_MAX_COL_NB = 58.  "Maximum nb of colums that the FM can read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            FILENAME                = l_file_name&lt;/P&gt;&lt;P&gt;            I_BEGIN_COL             = 1&lt;/P&gt;&lt;P&gt;            I_BEGIN_ROW             = 2&lt;/P&gt;&lt;P&gt;            I_END_COL               = L_MAX_COL_NB&lt;/P&gt;&lt;P&gt;            I_END_ROW               = 9999&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            INTERN                  = PT_EXCEL&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            INCONSISTENT_PARAMETERS = 1&lt;/P&gt;&lt;P&gt;            UPLOAD_OLE              = 2&lt;/P&gt;&lt;P&gt;            OTHERS                  = 3.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you should upload the data into your own itab. The Function Module will return to you all the an itab&lt;/P&gt;&lt;P&gt;from all fields and columns. Define the structure of the uploading file into SE11 - Data Dictionary. Then read the fieldcatalog of this structure. In the code that I am sending to you, I am insearting an empty line into the internal table and then I am assigning this line into a corresponding field-symbol. Then I am able to change the working area - so and the line of the itab. Propably you could you the statement APPEND INITIAL LINE TO (your_table_name) ASSIGNING &amp;lt;your_field_symbol&amp;gt;, but the example was written in an old SAP version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS:&lt;/P&gt;&lt;P&gt;                 &amp;lt;F_REC&amp;gt; LIKE WA_UPLOAD_FILE,      "working are of the uploading file&lt;/P&gt;&lt;P&gt;                 &amp;lt;F_FIELD&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: COLUMN_INT TYPE I,&lt;/P&gt;&lt;P&gt;        C_FIELDNAME(30) TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM GET_FIELDCATOLG TABLES FIELDCAT&lt;/P&gt;&lt;P&gt;                           USING 'ZECO_CHARALAMBOUS_FILE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT PT_EXCEL.&lt;/P&gt;&lt;P&gt;    AT NEW ROW.&lt;/P&gt;&lt;P&gt;      ASSIGN WA_UPLOAD_FILE TO &amp;lt;F_REC&amp;gt;.&lt;/P&gt;&lt;P&gt;    ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    COLUMN_INT = PT_EXCEL-COL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    READ TABLE FIELDCAT INTO WA_FIELDCAT INDEX COLUMN_INT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CONCATENATE '&amp;lt;F_REC&amp;gt;-' WA_FIELDCAT-FIELDNAME INTO C_FIELDNAME.&lt;/P&gt;&lt;P&gt;    ASSIGN (C_FIELDNAME) TO &amp;lt;F_FIELD&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;F_FIELD&amp;gt; = PT_EXCEL-VALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    AT END OF ROW.&lt;/P&gt;&lt;P&gt;      APPEND WA_UPLOAD_FILE TO GT_UPLOAD_FILE.&lt;/P&gt;&lt;P&gt;      CLEAR WA_UPLOAD_FILE.&lt;/P&gt;&lt;P&gt;    ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards &lt;/P&gt;&lt;P&gt;George&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: giorgos michaelaris on Mar 4, 2010 3:44 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 13:43:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-data-into-internal-table-from-excel-file-sheets/m-p/6715265#M1454451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-04T13:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to get data into internal table from Excel file sheets</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-data-into-internal-table-from-excel-file-sheets/m-p/6715266#M1454452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with fm " GUI_UPLOAD".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lokeswari.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Mar 2010 05:29:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-data-into-internal-table-from-excel-file-sheets/m-p/6715266#M1454452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-05T05:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to get data into internal table from Excel file sheets</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-data-into-internal-table-from-excel-file-sheets/m-p/6715267#M1454453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Mar 2010 09:16:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-data-into-internal-table-from-excel-file-sheets/m-p/6715267#M1454453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-05T09:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to get data into internal table from Excel file sheets</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-data-into-internal-table-from-excel-file-sheets/m-p/6715268#M1454454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Use one of these function modules&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename                = p_file&lt;/P&gt;&lt;P&gt;      i_begin_col             = p_bcol    "1&lt;/P&gt;&lt;P&gt;      i_begin_row             = p_brow&lt;/P&gt;&lt;P&gt;      i_end_col               = p_ecol    "3&lt;/P&gt;&lt;P&gt;      i_end_row               = p_erow&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      intern                  = it_exload&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      inconsistent_parameters = 1&lt;/P&gt;&lt;P&gt;      upload_ole              = 2&lt;/P&gt;&lt;P&gt;      OTHERS                  = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT it_exload INTO wa_exload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CASE wa_exload-col.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        WHEN '0001'.&lt;/P&gt;&lt;P&gt;          wa_final-abc = wa_exload-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        WHEN '0002'.&lt;/P&gt;&lt;P&gt;          wa_final-xyz = wa_exload-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        WHEN '0003'.&lt;/P&gt;&lt;P&gt;          wa_final-pqh = wa_exload-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      AT END OF row.&lt;/P&gt;&lt;P&gt;        APPEND wa_final TO it_final.&lt;/P&gt;&lt;P&gt;        CLEAR wa_final.&lt;/P&gt;&lt;P&gt;      ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it_raw TYPE truxs_t_text_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FM : TEXT_CONVERT_XLS_TO_SAP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    I_FIELD_SEPERATOR        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      i_line_header            =  'X'&lt;/P&gt;&lt;P&gt;      i_tab_raw_data           =  it_raw       " WORK TABLE&lt;/P&gt;&lt;P&gt;      i_filename               =  p_file&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      i_tab_converted_data     = record    "ACTUAL DATA&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;      conversion_failed        = 1&lt;/P&gt;&lt;P&gt;      OTHERS                   = 2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Mar 2010 09:39:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-data-into-internal-table-from-excel-file-sheets/m-p/6715268#M1454454</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-05T09:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to get data into internal table from Excel file sheets</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-data-into-internal-table-from-excel-file-sheets/m-p/6715269#M1454455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: itab LIKE alsmex_tabline OCCURS 0 WITH HEADER LINE. 

*get the data into first internal table 
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE' 
EXPORTING 
filename = p_excel "excel file name 
i_begin_col = '1' 
i_begin_row = '1' 
i_end_col = '9' 
i_end_row = '850' 
TABLES 
intern = itab "internal table where u need to load the data 
EXCEPTIONS 
inconsistent_parameters = 1 
upload_ole = 2 
OTHERS = 3. 
IF sy-subrc &amp;lt;&amp;gt; 0. 
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno 
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. 
ENDIF. 

*put the data into proper columns 

CLEAR g_maxrow. 
CLEAR g_maxcol. 
CLEAR itab. 
CLEAR g_currow. 
CLEAR g_curcol. 

LOOP AT itab. 

DESCRIBE TABLE itab LINES g_n. 
g_maxrow = g_n / 9. 

IF itab-col GT g_maxcol. 
g_maxcol = itab-col. 
ENDIF. 

CLEAR itab. 

ENDLOOP. 

g_currow = 0001. 
g_curcol = 0001. 


LOOP AT itab. 
IF itab-row NE g_currow. 
APPEND wa_temp TO it_temp. 
CLEAR wa_temp. 
g_currow = g_currow + c_one. 
ENDIF. 

CASE itab-col. 
WHEN '0001'. 
wa_temp-follow_up = itab-value. 
WHEN '0002'. 
wa_temp-plant = itab-value. 
WHEN '0003'. 
wa_temp-iss_st_loc = itab-value. 
WHEN '0004'. 
wa_temp-mrp_type = itab-value. 
WHEN '0005'. 
wa_temp-minlotsize = itab-value. 
WHEN '0006'. 
wa_temp-maxlotsize = itab-value. 
WHEN '0007'. 
wa_temp-lotsizekey = itab-value. 
WHEN '0008'. 
wa_temp-reorder_pt = itab-value. 
WHEN '0009'. 
wa_temp-inhseprodt = itab-value. 
ENDCASE. 

ENDLOOP. 

IF itab-row EQ g_maxrow. 
APPEND wa_temp TO it_temp. 
ENDIF.
 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Mar 2010 09:42:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-data-into-internal-table-from-excel-file-sheets/m-p/6715269#M1454455</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-05T09:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to get data into internal table from Excel file sheets</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-data-into-internal-table-from-excel-file-sheets/m-p/6715270#M1454456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Function module FILE_READ_AND_CONVERT_SAP_DATA uploads into internal table.&lt;/P&gt;&lt;P&gt;or u can use the following function module:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename                = p_infile&lt;/P&gt;&lt;P&gt;      i_begin_col             = 1&lt;/P&gt;&lt;P&gt;      i_begin_row             = 2&lt;/P&gt;&lt;P&gt;      i_end_col               = 10&lt;/P&gt;&lt;P&gt;      i_end_row               = 64000&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      intern                  = i_excel&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      inconsistent_parameters = 1&lt;/P&gt;&lt;P&gt;      upload_ole              = 2&lt;/P&gt;&lt;P&gt;      OTHERS                  = 3.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: divya@ritam on Mar 5, 2010 11:30 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Mar 2010 10:24:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-data-into-internal-table-from-excel-file-sheets/m-p/6715270#M1454456</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-05T10:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to get data into internal table from Excel file sheets</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-data-into-internal-table-from-excel-file-sheets/m-p/6715271#M1454457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this snippet according to your requirement ::&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

TYPE-POOLS : truxs.


DATA : w_filename(128).

DATA :  git_raw TYPE truxs_t_text_data.

 CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
    EXPORTING
*      I_FIELD_SEPERATOR          =
*     i_line_header               = 'X'
      i_tab_raw_data             = git_raw
      i_filename                 = w_filename
    TABLES
      i_tab_converted_data       = gt_upldcoep
*    EXCEPTIONS
*      CONVERSION_FAILED          = 1
*      OTHERS                     = 2
            .
  IF sy-subrc &amp;lt;&amp;gt; 0.

    MESSAGE 'EXCEL was not read' TYPE 'E' DISPLAY LIKE 'I'.

  ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mishra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Mar 2010 11:17:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-data-into-internal-table-from-excel-file-sheets/m-p/6715271#M1454457</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-05T11:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to get data into internal table from Excel file sheets</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-data-into-internal-table-from-excel-file-sheets/m-p/6715272#M1454458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dear Firends, Thanks a lot for you replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By all the function modules like TEXT_CONVERT_XLS_TO_SAP, FILE_READ_AND_CONVERT_SAP_DATA,GUI_UPLOAD etc&lt;/P&gt;&lt;P&gt;are to read data from excel file if you have one sheet. My requirement is to read multipul sheets in just one excel file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any function module with which we can read just one excel file with multipul sheets init.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Mar 2010 10:42:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-data-into-internal-table-from-excel-file-sheets/m-p/6715272#M1454458</guid>
      <dc:creator>Noorie</dc:creator>
      <dc:date>2010-03-06T10:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to get data into internal table from Excel file sheets</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-data-into-internal-table-from-excel-file-sheets/m-p/6715273#M1454459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably u can check a few of the below links &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/uploading-multiple-multitab-excel-sheets-or-ranges.htm" target="test_blank"&gt;http://www.sap-img.com/abap/uploading-multiple-multitab-excel-sheets-or-ranges.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/abap-object-oriented-spreadsheet-with-unlimited-power.htm" target="test_blank"&gt;http://www.sap-img.com/abap/abap-object-oriented-spreadsheet-with-unlimited-power.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this is the one that is required.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Mar 2010 13:05:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-data-into-internal-table-from-excel-file-sheets/m-p/6715273#M1454459</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-06T13:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to get data into internal table from Excel file sheets</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-data-into-internal-table-from-excel-file-sheets/m-p/6715274#M1454460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Noorie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to use &lt;STRONG&gt;OLE technique&lt;/STRONG&gt; to read multiple excelsheets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check below link :&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="257245"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nisha Vengal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Mar 2010 13:13:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-data-into-internal-table-from-excel-file-sheets/m-p/6715274#M1454460</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-06T13:13:05Z</dc:date>
    </item>
  </channel>
</rss>

