<?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: excel to itab in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-to-itab/m-p/2420404#M540305</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;Pls check the file name, u need to mention full path with extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls reward points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ameet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jul 2007 09:40:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-05T09:40:48Z</dc:date>
    <item>
      <title>excel to itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-to-itab/m-p/2420399#M540300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;i got 14000 records in excel sheet, 1st row is headers(i wanna skip this row)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'F4_FILENAME'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;PROGRAM_NAME = 'ZMAMASS_MATERIAL_DISC_UPADTION'&lt;/P&gt;&lt;P&gt;DYNPRO_NUMBER = '1000'&lt;/P&gt;&lt;P&gt;FIELD_NAME = 'p_file'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;FILE_NAME = p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM download_file .&lt;/P&gt;&lt;P&gt;data: fname type localfile.&lt;/P&gt;&lt;P&gt;fname = p_file.&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                      = fname&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                     = 2&lt;/P&gt;&lt;P&gt;    I_END_ROW                     = 14000&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    INTERN                        = IT_MAKT&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;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " download_file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it's giving dump...&lt;/P&gt;&lt;P&gt;whats the problem..plz respond fast&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2007 08:57:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-to-itab/m-p/2420399#M540300</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-05T08:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: excel to itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-to-itab/m-p/2420400#M540301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CALL FUNCTION 'F4_FILENAME'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;PROGRAM_NAME = 'ZMAMASS_MATERIAL_DISC_UPADTION'&lt;/P&gt;&lt;P&gt;DYNPRO_NUMBER = '1000'&lt;/P&gt;&lt;P&gt;FIELD_NAME = 'P_FILE'    "&amp;lt;----&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt;give the name in upper case&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;FILE_NAME = p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare fname type RLGRAP-FILENAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and declare  IT_MAKT  of type ALSMEX_TABLINE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : IT_MAKT TYPE TABLE OF ALSMEX_TABLINE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2007 09:00:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-to-itab/m-p/2420400#M540301</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-05T09:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: excel to itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-to-itab/m-p/2420401#M540302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;fname should be of type  - RLGRAP-FILENAME&lt;/P&gt;&lt;P&gt;and IT_MAKT should be of type - ALSMEX_TABLINE&lt;/P&gt;&lt;P&gt;In I_END_COL put the last number of columns you want to read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all helpful replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2007 09:00:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-to-itab/m-p/2420401#M540302</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-07-05T09:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: excel to itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-to-itab/m-p/2420402#M540303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see the following ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of excel_tab occurs 0.&lt;/P&gt;&lt;P&gt;        include structure alsmex_tabline.&lt;/P&gt;&lt;P&gt;data: end of excel_tab .&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;        bldat like bkpf-bldat,&lt;/P&gt;&lt;P&gt;        blart like bkpf-blart,&lt;/P&gt;&lt;P&gt;        bukrs like bkpf-bukrs,&lt;/P&gt;&lt;P&gt;        budat like bkpf-budat,&lt;/P&gt;&lt;P&gt;        waers like bkpf-waers,&lt;/P&gt;&lt;P&gt;        bschl like bseg-bschl,&lt;/P&gt;&lt;P&gt;        hkont like bseg-hkont,&lt;/P&gt;&lt;P&gt;        sgtxt like bseg-sgtxt,&lt;/P&gt;&lt;P&gt;      end of itab.&lt;/P&gt;&lt;P&gt;data: process_tab_struct_tmp like itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;fs1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen: begin of block blk.&lt;/P&gt;&lt;P&gt;parameters: fname type rlgrap-filename.&lt;/P&gt;&lt;P&gt;selection-screen: end of block blk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for fname.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'F4_FILENAME'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;         PROGRAM_NAME        = 'ZFI_EXCEL'&lt;/P&gt;&lt;P&gt;         DYNPRO_NUMBER       = '1000'&lt;/P&gt;&lt;P&gt;         FIELD_NAME          = 'FNAME'&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;         FILE_NAME           = FNAME.&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&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                      = FNAME&lt;/P&gt;&lt;P&gt;      i_begin_col                   = 1&lt;/P&gt;&lt;P&gt;      i_begin_row                   = 1&lt;/P&gt;&lt;P&gt;      i_end_col                     = 24&lt;/P&gt;&lt;P&gt;      i_end_row                     = 60000&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      intern                        = EXCEL_TAB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT EXCEL_TAB.&lt;/P&gt;&lt;P&gt;assign component excel_tab-col of structure&lt;/P&gt;&lt;P&gt;                                      process_tab_struct_tmp to &amp;lt;fs1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;fs1&amp;gt; = excel_tab-value.&lt;/P&gt;&lt;P&gt; at end of row.&lt;/P&gt;&lt;P&gt; move-corresponding: process_tab_struct_tmp to itab.  &amp;#147;Move values to itab&lt;/P&gt;&lt;P&gt; append itab.&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;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;  WRITE:/2 ITAB-BLDAT,14(8) ITAB-BLART,20(10) ITAB-BUDAT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2007 09:01:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-to-itab/m-p/2420402#M540303</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-05T09:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: excel to itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-to-itab/m-p/2420403#M540304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;              you can use the fm also  'TEXT_CONVERT_XLS_TO_SAP' Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; TYPE-POOLS: truxs.&lt;/P&gt;&lt;P&gt;data: begin of it_datatab1,&lt;/P&gt;&lt;P&gt;          col01(60) TYPE c,&lt;/P&gt;&lt;P&gt;       col02(60) TYPE c,&lt;/P&gt;&lt;P&gt;      end of it_datatab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : it_datatab   like it_datatab1 occurs 0,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      wa_datatab  type it_datatab1.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      it_raw        TYPE truxs_t_text_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_file LIKE  ibipparms-path OBLIGATORY.       "Input file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'F4_FILENAME'                             "For upload of the program&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      field_name = 'P_FILE'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      file_name  = p_file.&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;LI level="1" type="ul"&gt;&lt;P&gt;  I_LINE_HEADER              =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    I_TAB_RAW_DATA             = it_raw&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       = it_datatab&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CONVERSION_FAILED          = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                     = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Rewrad points&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2007 09:11:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-to-itab/m-p/2420403#M540304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-05T09:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: excel to itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-to-itab/m-p/2420404#M540305</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;Pls check the file name, u need to mention full path with extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls reward points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ameet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2007 09:40:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-to-itab/m-p/2420404#M540305</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-05T09:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: excel to itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-to-itab/m-p/2420405#M540306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thx u all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2007 09:57:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-to-itab/m-p/2420405#M540306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-05T09:57:58Z</dc:date>
    </item>
  </channel>
</rss>

