<?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 error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error/m-p/2723062#M631805</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;types: begin of t_xxx2,&lt;/P&gt;&lt;P&gt;         zxxx11  like  zxxx2-zxxx11,	&lt;/P&gt;&lt;P&gt;         zxxx01  like  zxxx2-zxxx01,&lt;/P&gt;&lt;P&gt;         zxxx02  like  zxxx2-zxxxp02,	&lt;/P&gt;&lt;P&gt;         zxxx03  like  zxxx2-zxxx03,	&lt;/P&gt;&lt;P&gt;         zxxx04  like  zxxx2-zxxx04,	&lt;/P&gt;&lt;P&gt;         zxxx05  like  zxxx2-zxxx05,	&lt;/P&gt;&lt;P&gt;         zxxx06  like  zxxx2-zxxx06,&lt;/P&gt;&lt;P&gt;       end of t_zxxx2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : i_Zxxx2 type t_zxxx2 occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of t_xxx1&lt;/P&gt;&lt;P&gt;         zxxx11  like  zxxx1-zxxx11,	&lt;/P&gt;&lt;P&gt;         zxxx01  like  zxxx1-zxxx01,&lt;/P&gt;&lt;P&gt;         zxxx02  like  zxxx1-zxxxp02,	&lt;/P&gt;&lt;P&gt;         zxxx03  like  zxxx1-zxxx03,	&lt;/P&gt;&lt;P&gt;         zxxx04  like  zxxx1-zxxx04,	&lt;/P&gt;&lt;P&gt;         zxxx05  like  zxxx1-zxxx05,	&lt;/P&gt;&lt;P&gt;         zxxx06  like  zxxx1-zxxx06,&lt;/P&gt;&lt;P&gt;       end of t_zxxx1&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;data : i_Zxxx1  type t_zxxx1 occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from Zxxx1&lt;/P&gt;&lt;P&gt;     into table I_Zxxx1&lt;/P&gt;&lt;P&gt;     where matnr = p_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while selecting the data into internal table i'm getting error like&lt;/P&gt;&lt;P&gt;"The work area i_zxxx1is not long enough"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz tell me why i'm getting error?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Aug 2007 13:09:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-13T13:09:13Z</dc:date>
    <item>
      <title>error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error/m-p/2723062#M631805</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;types: begin of t_xxx2,&lt;/P&gt;&lt;P&gt;         zxxx11  like  zxxx2-zxxx11,	&lt;/P&gt;&lt;P&gt;         zxxx01  like  zxxx2-zxxx01,&lt;/P&gt;&lt;P&gt;         zxxx02  like  zxxx2-zxxxp02,	&lt;/P&gt;&lt;P&gt;         zxxx03  like  zxxx2-zxxx03,	&lt;/P&gt;&lt;P&gt;         zxxx04  like  zxxx2-zxxx04,	&lt;/P&gt;&lt;P&gt;         zxxx05  like  zxxx2-zxxx05,	&lt;/P&gt;&lt;P&gt;         zxxx06  like  zxxx2-zxxx06,&lt;/P&gt;&lt;P&gt;       end of t_zxxx2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : i_Zxxx2 type t_zxxx2 occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of t_xxx1&lt;/P&gt;&lt;P&gt;         zxxx11  like  zxxx1-zxxx11,	&lt;/P&gt;&lt;P&gt;         zxxx01  like  zxxx1-zxxx01,&lt;/P&gt;&lt;P&gt;         zxxx02  like  zxxx1-zxxxp02,	&lt;/P&gt;&lt;P&gt;         zxxx03  like  zxxx1-zxxx03,	&lt;/P&gt;&lt;P&gt;         zxxx04  like  zxxx1-zxxx04,	&lt;/P&gt;&lt;P&gt;         zxxx05  like  zxxx1-zxxx05,	&lt;/P&gt;&lt;P&gt;         zxxx06  like  zxxx1-zxxx06,&lt;/P&gt;&lt;P&gt;       end of t_zxxx1&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;data : i_Zxxx1  type t_zxxx1 occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from Zxxx1&lt;/P&gt;&lt;P&gt;     into table I_Zxxx1&lt;/P&gt;&lt;P&gt;     where matnr = p_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while selecting the data into internal table i'm getting error like&lt;/P&gt;&lt;P&gt;"The work area i_zxxx1is not long enough"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz tell me why i'm getting error?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 13:09:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error/m-p/2723062#M631805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T13:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error/m-p/2723063#M631806</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;Change to Standard table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : i_Zxxx1 type STANDARD TABLE OF t_zxxx1.&lt;/P&gt;&lt;P&gt;&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; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 13:16:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error/m-p/2723063#M631806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T13:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error/m-p/2723064#M631807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tanq sudheer,&lt;/P&gt;&lt;P&gt;but i should use occurs 0 with header line r not?&lt;/P&gt;&lt;P&gt;if i don't use i'm getting error?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 13:39:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error/m-p/2723064#M631807</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T13:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error/m-p/2723065#M631808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Balu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your statement... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from Zxxx1&lt;/P&gt;&lt;P&gt;into table I_Zxxx1&lt;/P&gt;&lt;P&gt;where matnr = p_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are sending some records with all fields from table l_Zxxx1 to Zxxx1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why you got error means...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your internal table is having some fields of the that table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but you are passing all the fields of records to the internal table... thats the way u r getting error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to avoid this error...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make sure that the fields you are selection from select statement should present in the internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or use the following code....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : itab1 type standard table tab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where tab1 is the standard table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Using header line ( oocrs 0 ) concept is your wish. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But better way of coding is uinsg work area instead of header lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why because... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Header line concept is not supported by OOPS. where in future reports will be in OOPS Concept. And also In NETVIEWR also it won't work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So better to use Work area...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create work area as follows...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : itab1 type standard table tab1.&lt;/P&gt;&lt;P&gt;data : wa_itab1 like line of itab1.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward If Helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Sasidhar Reddy Matli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Sasidhar Reddy Matli&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Sasidhar Reddy Matli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 13:40:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error/m-p/2723065#M631808</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T13:40:21Z</dc:date>
    </item>
  </channel>
</rss>

