<?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: internal table error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/4391593#M1044243</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EMPNO LIKE ZTABLE2-DEPTNO,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END OF IT_ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM ZTABLE1 INTO TABLE IT_ITAB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*you are defining internal table for only dept-no field in the table ztable2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;so your itab space can only have space to occupy deptno field.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;but in select stmt you are selecting all the fields from ztable2,which has no space to occupy in your internal table. so you better remove * from your select stmtand specify deptno.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;manju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Sep 2008 13:35:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-02T13:35:12Z</dc:date>
    <item>
      <title>internal table error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/4391584#M1044234</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 started learning sap abap recently.&lt;/P&gt;&lt;P&gt;i have written a report but at the time of activating it is showing &lt;/P&gt;&lt;P&gt;error &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"the work area it_itab is not long enough".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and my report is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZPROG2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: ZTABLE2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:BEGIN OF IT_ITAB OCCURS 0,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        EMPNO LIKE ZTABLE2-DEPTNO,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      END OF IT_ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT * FROM ZTABLE1 INTO TABLE IT_ITAB.&lt;/P&gt;&lt;P&gt; END SELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT IT_ITAB.&lt;/P&gt;&lt;P&gt; WRITE:/ IT_ITAB .&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;please give me the solution i will be thankfull.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Aug 2008 13:15:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/4391584#M1044234</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-31T13:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: internal table error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/4391585#M1044235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;YOU NEED TO SELECT DATA ACCORDING TO YOUR INTERNAL TABLE DESIGN,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ZPROG2.

TABLES: ZTABLE2.

DATA:BEGIN OF IT_ITAB OCCURS 0,

EMPNO LIKE ZTABLE2-DEPTNO,

END OF IT_ITAB.

SELECT DEPTNO  FROM ZTABLE1 INTO TABLE IT_ITAB. "&amp;lt;===CORRECTION
END SELECT.

LOOP AT IT_ITAB.
WRITE:/ IT_ITAB-EMPNO .
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Aug 2008 13:20:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/4391585#M1044235</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-31T13:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: internal table error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/4391586#M1044236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dev Kumar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't use endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u will get the proper result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Aug 2008 13:44:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/4391586#M1044236</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-31T13:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: internal table error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/4391587#M1044237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kumar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using an itab to select data you must not used the ENDSELECT statement (exception: APPENDING itab).&lt;/P&gt;&lt;P&gt;In addition, if you only want to select specific fields then add the following option to the select statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT * FROM ZTABLE1 INTO CORRESPONDING FIELDS OF TABLE IT_ITAB.
""END SELECT.  " =&amp;gt; not required because you make an array fetch&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Aug 2008 16:59:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/4391587#M1044237</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2008-08-31T16:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: internal table error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/4391588#M1044238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;YOu cannot pour 10 cups of cofee into a single cup...&lt;/P&gt;&lt;P&gt;Its the same situation here....select only the needed fields....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2008 04:19:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/4391588#M1044238</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2008-09-01T04:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: internal table error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/4391589#M1044239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  First remove * from your select query. Select only empno into your internal table because you have declared your internal table that way. Second thing your target area is an internal table(INTO TABLE it_tab), so don't use ENDSELECT. &lt;/P&gt;&lt;P&gt;SELECT-----ENDSELECT is only used in situation when your target firls is a workarea.&lt;/P&gt;&lt;P&gt;when you select data from a ztable into an internal table, data comes into your internal table in one go this is called array fetch. So no need to use ENDSELECT.&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;Abhijeet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2008 04:23:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/4391589#M1044239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-01T04:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: internal table error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/4391590#M1044240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select only the field EMP_NO from the table IT_ITAB, because your ZTABLE1 might be containing more than one fields. In your select statement you are selecting *, ie., all fields into table IT_ITAB which has only one field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do not use ENDSELECT and always try to use WHERE condition in a Select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandra Sekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2008 04:25:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/4391590#M1044240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-01T04:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: internal table error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/4391591#M1044241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;ur select querry should be like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select EMPNO&lt;/P&gt;&lt;P&gt;from ztable1 &lt;/P&gt;&lt;P&gt;into table it_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no need of endselect....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or u can use into corresponding fields ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that is like..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;from ztable1 &lt;/P&gt;&lt;P&gt;into corresponding fields of table it_tab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2008 04:29:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/4391591#M1044241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-01T04:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: internal table error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/4391592#M1044242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EMPNO LIKE ZTABLE2-DEPTNO,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END OF IT_ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM ZTABLE1 INTO TABLE IT_ITAB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*you are defining internal table for only dept-no field in the table ztable2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;so your itab space can only have space to occupy deptno field.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;but in select stmt you are selecting all the fields from ztable2,which has no space to occupy in your internal table. so you better removw * from your select stmtand specify deptno.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;manju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2008 13:34:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/4391592#M1044242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-02T13:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: internal table error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/4391593#M1044243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EMPNO LIKE ZTABLE2-DEPTNO,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END OF IT_ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM ZTABLE1 INTO TABLE IT_ITAB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*you are defining internal table for only dept-no field in the table ztable2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;so your itab space can only have space to occupy deptno field.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;but in select stmt you are selecting all the fields from ztable2,which has no space to occupy in your internal table. so you better remove * from your select stmtand specify deptno.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;manju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2008 13:35:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/4391593#M1044243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-02T13:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: internal table error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/4391594#M1044244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*you are defining internal table for only dept-no field in the table ztable2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;so your itab space can only have space to occupy deptno field.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;but in select stmt you are selecting all the fields from ztable2,which has no space to occupy in your internal table. so you better remove * from your select stmtand specify deptno.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;manju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2008 13:35:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/4391594#M1044244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-02T13:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: internal table error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/4391595#M1044245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*you are defining internal table for only dept-no field in the table ztable2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;so your itab space can only have space to occupy deptno field.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;but in select stmt you are selecting all the fields from ztable2,which has no space to occupy in your internal table. &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*so you better remove * from your select stmtand specify deptno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;manju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2008 13:36:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/4391595#M1044245</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-02T13:36:12Z</dc:date>
    </item>
  </channel>
</rss>

