<?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: getting error in select statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-select-statement/m-p/6150756#M1368524</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is how FOR ALL ENTRIES behaves.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you check field OBJKT is 40 character long but MATNR is 18 character only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to try a workaround for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Sep 2009 07:37:05 GMT</pubDate>
    <dc:creator>SuhaSaha</dc:creator>
    <dc:date>2009-09-14T07:37:05Z</dc:date>
    <item>
      <title>getting error in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-select-statement/m-p/6150755#M1368523</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 am getting an error in below select query .&lt;/P&gt;&lt;P&gt;when using the addition for all entries in itab,the fields objkt and gt_fin-matnr must have the same type and length.&lt;/P&gt;&lt;P&gt;why please tell me??everything is perfect matching here ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT   aennr&lt;/P&gt;&lt;P&gt;         objkt&lt;/P&gt;&lt;P&gt;         cclck&lt;/P&gt;&lt;P&gt;         FROM aeoi&lt;/P&gt;&lt;P&gt;              INTO  TABLE gt_aeoi1&lt;/P&gt;&lt;P&gt;              FOR ALL ENTRIES IN gt_fin&lt;/P&gt;&lt;P&gt;              WHERE objkt = gt_fin-matnr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 07:31:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-select-statement/m-p/6150755#M1368523</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-14T07:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: getting error in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-select-statement/m-p/6150756#M1368524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is how FOR ALL ENTRIES behaves.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you check field OBJKT is 40 character long but MATNR is 18 character only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to try a workaround for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 07:37:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-select-statement/m-p/6150756#M1368524</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-09-14T07:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: getting error in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-select-statement/m-p/6150757#M1368525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use "corresponding fields of" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT aennr&lt;/P&gt;&lt;P&gt;objkt&lt;/P&gt;&lt;P&gt;cclck&lt;/P&gt;&lt;P&gt;FROM aeoi&lt;/P&gt;&lt;P&gt;INTO  corresponding fields of TABLE gt_aeoi1&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN gt_fin&lt;/P&gt;&lt;P&gt;WHERE objkt = gt_fin-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 07:38:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-select-statement/m-p/6150757#M1368525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-14T07:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: getting error in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-select-statement/m-p/6150758#M1368526</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;What you can do is go to the type declaration for the intenal table gt_fin and change the matnr length to same as that of objkt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ansari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 07:39:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-select-statement/m-p/6150758#M1368526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-14T07:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: getting error in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-select-statement/m-p/6150759#M1368527</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;how to material length 18 to 40 ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help me..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 07:42:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-select-statement/m-p/6150759#M1368527</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-14T07:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: getting error in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-select-statement/m-p/6150760#M1368528</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;You will have a type declaration for the intenal table . there you would have given matnr type matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of that give matnr type AEOBJEKT. Since AEOBJEKT is of char40 which is greater than matnr(char18) it will not be a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ansari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 07:44:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-select-statement/m-p/6150760#M1368528</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-14T07:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: getting error in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-select-statement/m-p/6150761#M1368529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt; remember while using for all entries , in the logical expression the two field length should be same  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sachhidananda Tripathy on Sep 14, 2009 9:47 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 07:47:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-select-statement/m-p/6150761#M1368529</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-14T07:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: getting error in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-select-statement/m-p/6150762#M1368530</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;u r absolutely right.&lt;/P&gt;&lt;P&gt;but if i do like ur suggestion , the it again gives probleam because in my program some another select statement is used the matnr length(18) ..so again the probleam will come.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for ur reply..if any othen alternative help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 07:51:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-select-statement/m-p/6150762#M1368530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-14T07:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: getting error in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-select-statement/m-p/6150763#M1368531</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;This is a common scenario. Usually if you are not able adjust it by changing the data type then you will have to create a new internal table with the desired length for the field and then using loop you have to move the values to this new internal table. This new table can be used for for all entries. But this will require additional loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One doubt: You told u hve another select statemnt where u use matnr. Is that also a for all entries. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ansar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 07:54:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-select-statement/m-p/6150763#M1368531</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-14T07:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: getting error in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-select-statement/m-p/6150764#M1368532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; hi,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; how to material length 18 to 40 ??&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; please help me..&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make the field matnr of internal table gt_fin as 40 characters. Thats the easiest way &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 08:02:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-in-select-statement/m-p/6150764#M1368532</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-09-14T08:02:40Z</dc:date>
    </item>
  </channel>
</rss>

