<?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 workarea cannot be used as internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/workarea-cannot-be-used-as-internal-table/m-p/6787105#M1465405</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;data :
       wa_itab type zempmasternish,

       itab type table of zempmasternish,

       wa_itab_sec type zdepartnish,

        itab_sec type TABLE OF zdepartnish,

       fieldcatalog type slis_t_fieldcat_alv with header line,
       v_prog_name type sy-repid.

 select empno deptno deptname from zdepartnish into itab_sec where empno = itab-empno.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;      i am getting an error that work area cannot be used as an internal table with the above select statement can you please help me out with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Apr 6, 2010 2:43 PM -   tags added&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Apr 2010 12:39:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-06T12:39:07Z</dc:date>
    <item>
      <title>workarea cannot be used as internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/workarea-cannot-be-used-as-internal-table/m-p/6787105#M1465405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;data :
       wa_itab type zempmasternish,

       itab type table of zempmasternish,

       wa_itab_sec type zdepartnish,

        itab_sec type TABLE OF zdepartnish,

       fieldcatalog type slis_t_fieldcat_alv with header line,
       v_prog_name type sy-repid.

 select empno deptno deptname from zdepartnish into itab_sec where empno = itab-empno.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;      i am getting an error that work area cannot be used as an internal table with the above select statement can you please help me out with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Apr 6, 2010 2:43 PM -   tags added&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Apr 2010 12:39:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/workarea-cannot-be-used-as-internal-table/m-p/6787105#M1465405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-06T12:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: workarea cannot be used as internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/workarea-cannot-be-used-as-internal-table/m-p/6787106#M1465406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you want to do? Read into a workarea? Use ... INTO wa_itab_sec ...&lt;/P&gt;&lt;P&gt;Read into an internal table? Use ... INTO TABLE itab_sec ...&lt;/P&gt;&lt;P&gt;Also study online help for SELECT statement which explains everything.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Apr 2010 12:47:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/workarea-cannot-be-used-as-internal-table/m-p/6787106#M1465406</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2010-04-06T12:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: workarea cannot be used as internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/workarea-cannot-be-used-as-internal-table/m-p/6787107#M1465407</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;Either write &lt;/P&gt;&lt;P&gt;select empno deptno deptname from zdepartnish into table itab_sec where empno = wa_itab-empno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select empno deptno deptname from zdepartnish into wa_itab where empno = wa_itab-empno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Rocky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Apr 2010 12:47:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/workarea-cannot-be-used-as-internal-table/m-p/6787107#M1465407</guid>
      <dc:creator>Rocky1</dc:creator>
      <dc:date>2010-04-06T12:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: workarea cannot be used as internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/workarea-cannot-be-used-as-internal-table/m-p/6787108#M1465408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are trying to use a table field in your WHERE clause w/o using FOR ALL ENTRIES.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Apr 2010 12:47:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/workarea-cannot-be-used-as-internal-table/m-p/6787108#M1465408</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-04-06T12:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: workarea cannot be used as internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/workarea-cannot-be-used-as-internal-table/m-p/6787109#M1465409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THE CORRECT CODE IS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT EMPNO DEPTNO DEPTNAME FROM ZDEPARTNISH INTO TABLE  ITAB_SEC  WHERE  EMPNO = WA_ITAB-EMPNO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THE INCORRECT CODE IS :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT EMPNO DEPTNO DEPTNAME FROM ZDEPARTNISH INTO ITAB_SEC  WHERE  EMPNO = WA_ITAB-EMPNO&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Apr 2010 12:47:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/workarea-cannot-be-used-as-internal-table/m-p/6787109#M1465409</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-06T12:47:33Z</dc:date>
    </item>
  </channel>
</rss>

