<?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: error while removing endselect in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-removing-endselect/m-p/3124721#M742133</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT kunnr name1 name2 name3 name4 stras ort01 regio land1 pstlz pstl2 erdat&lt;/P&gt;&lt;P&gt;FROM kna1&lt;/P&gt;&lt;P&gt;into CORRESPONDING FIELDS OF TABLE  a1rec&lt;/P&gt;&lt;P&gt;for all entries in gt_cdhdr&lt;/P&gt;&lt;P&gt;WHERE kunnr = gt_cdhdr-objectid&lt;/P&gt;&lt;P&gt;AND ktokd = gc_ktokd&lt;/P&gt;&lt;P&gt;AND loevm = gc_space.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Nov 2007 10:37:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-28T10:37:41Z</dc:date>
    <item>
      <title>error while removing endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-removing-endselect/m-p/3124719#M742131</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 wanted to remove END SELECT instead i'm using FOR ALL ENTRIES also instead of select * i'm declearing the fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have declared a headerline itab for cdhdr and kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;earlier no itab was used for both cdhdr and kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now its showing syntax error that in for entries condition type kunnr is not matching with type OBJECTID. where as if no itab is been delared for both CDHDR and KNA1 and for all entries is not used its not showing me any error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have pasted code below, i wud be very thankful if any of u gud help me &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ram&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SELECT * FROM cdhdr&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; WHERE tcode = gc_tcode&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; AND   objectclas = gc_objcl AND&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       udate = chngdat.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT objectclas objectid changenr&lt;/P&gt;&lt;P&gt;  INTO TABLE gt_cdhdr&lt;/P&gt;&lt;P&gt;  FROM cdhdr&lt;/P&gt;&lt;P&gt;  WHERE tcode = gc_tcode&lt;/P&gt;&lt;P&gt;  AND   objectclas = gc_objcl AND&lt;/P&gt;&lt;P&gt;        udate = chngdat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IF cdhdr-objectid &amp;lt;&amp;gt; hold_cust.&lt;/P&gt;&lt;P&gt;        MOVE cdhdr-objectid TO hold_cust.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       SELECT * FROM kna1 WHERE kunnr = cdhdr-objectid&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                           AND  ktokd = gc_ktokd&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                           AND  loevm = gc_space.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    SELECT kunnr name1 name2 name3 name4 stras ort01 regio land1 pstlz pstl2 erdat&lt;/P&gt;&lt;P&gt;    FROM kna1&lt;/P&gt;&lt;P&gt;    into table a1rec&lt;/P&gt;&lt;P&gt;    for all entries in gt_cdhdr&lt;/P&gt;&lt;P&gt;    WHERE kunnr = gt_cdhdr-objectid&lt;/P&gt;&lt;P&gt;                            AND  ktokd = gc_ktokd&lt;/P&gt;&lt;P&gt;                            AND  loevm = gc_space.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2007 10:32:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-removing-endselect/m-p/3124719#M742131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-28T10:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: error while removing endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-removing-endselect/m-p/3124720#M742132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ram, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, it will throw a sytax error only, if you use a for all entries option. Here the variables used for comparing should have the same attributes. If you still want to retrive the values with for all entries, please declare an additional field in the internal table gt_cdhdr similat to object id and pass the kunnr value to it and do the selection&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2007 10:37:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-removing-endselect/m-p/3124720#M742132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-28T10:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: error while removing endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-removing-endselect/m-p/3124721#M742133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT kunnr name1 name2 name3 name4 stras ort01 regio land1 pstlz pstl2 erdat&lt;/P&gt;&lt;P&gt;FROM kna1&lt;/P&gt;&lt;P&gt;into CORRESPONDING FIELDS OF TABLE  a1rec&lt;/P&gt;&lt;P&gt;for all entries in gt_cdhdr&lt;/P&gt;&lt;P&gt;WHERE kunnr = gt_cdhdr-objectid&lt;/P&gt;&lt;P&gt;AND ktokd = gc_ktokd&lt;/P&gt;&lt;P&gt;AND loevm = gc_space.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2007 10:37:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-removing-endselect/m-p/3124721#M742133</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-28T10:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: error while removing endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-removing-endselect/m-p/3124722#M742134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ram&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think You are referring to the wrong field in CDHDR. The field OBJECTID has a length of 90 and it is no where compared to KUNNR of KNA1..Please look at your specificationjs...It must be CHANGENR or some other field which needs to be compared to KUNNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shakir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2007 10:38:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-removing-endselect/m-p/3124722#M742134</guid>
      <dc:creator>abdulazeez12</dc:creator>
      <dc:date>2007-11-28T10:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: error while removing endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-removing-endselect/m-p/3124723#M742135</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;&lt;/P&gt;&lt;P&gt;   The data element of KUNNR and OBJECTID should be same .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2007 10:40:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-removing-endselect/m-p/3124723#M742135</guid>
      <dc:creator>former_member386202</dc:creator>
      <dc:date>2007-11-28T10:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: error while removing endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-removing-endselect/m-p/3124724#M742136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As &amp;lt;i&amp;gt;objectid&amp;lt;/i&amp;gt; is a generic field it has not the same type and length that &amp;lt;i&amp;gt;kunnr&amp;lt;/i&amp;gt; so use a syntax like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT kunnr name1 name2 name3 name4 stras ort01 regio land1 pstlz pstl2 erdat
  FROM kna1
  into table a1rec
  for all entries in gt_cdhdr
  WHERE kunnr = gt_cdhdr-objectid+0(10)
    AND ktokd = gc_ktokd
    AND loevm = gc_space.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2007 12:13:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-removing-endselect/m-p/3124724#M742136</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2007-11-28T12:13:54Z</dc:date>
    </item>
  </channel>
</rss>

