<?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: RE : prob with select statment in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-prob-with-select-statment/m-p/2320352#M509334</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;add in whare caluse &lt;/P&gt;&lt;P&gt;and mara-matnr = coep-matnr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 May 2007 10:49:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-28T10:49:46Z</dc:date>
    <item>
      <title>RE : prob with select statment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-prob-with-select-statment/m-p/2320349#M509331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have written a code like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT &lt;/P&gt;&lt;P&gt;         AUFNR&lt;/P&gt;&lt;P&gt;         AEDAT&lt;/P&gt;&lt;P&gt;         WERKS&lt;/P&gt;&lt;P&gt;         GAMNG&lt;/P&gt;&lt;P&gt;         GMEIN&lt;/P&gt;&lt;P&gt;         PLNBEZ&lt;/P&gt;&lt;P&gt;         DISPO&lt;/P&gt;&lt;P&gt;        OBJNR&lt;/P&gt;&lt;P&gt;         FROM CAUFV&lt;/P&gt;&lt;P&gt;         INTO TABLE IT_CAUFV&lt;/P&gt;&lt;P&gt;         WHERE CAUFV~AEDAT IN S_AEDAT&lt;/P&gt;&lt;P&gt;         AND   CAUFV~AUFNR = '000001000932'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SORT IT_CAUFV BY OBJNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT coep~MATNR&lt;/P&gt;&lt;P&gt;         COEP~WTGBTR&lt;/P&gt;&lt;P&gt;         COEP~MEGBTR&lt;/P&gt;&lt;P&gt;         COEP~MEINH&lt;/P&gt;&lt;P&gt;         COEP~OBJNR&lt;/P&gt;&lt;P&gt;         MARA~MTART&lt;/P&gt;&lt;P&gt;         FROM COEP INNER JOIN MARA&lt;/P&gt;&lt;P&gt;         ON COEP&lt;SUB&gt;MATNR = MARA&lt;/SUB&gt;MATNR&lt;/P&gt;&lt;P&gt;         INTO TABLE IT_RESB&lt;/P&gt;&lt;P&gt;         FOR ALL ENTRIES IN IT_CAUFV&lt;/P&gt;&lt;P&gt;         WHERE&lt;/P&gt;&lt;P&gt;         coep~OBJNR = IT_CAUFV-OBJNR&lt;/P&gt;&lt;P&gt;         AND   MARA~MTART IN ('YFLM','YCHE','YRAW').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here my prob is in my 2nd select statement.&lt;/P&gt;&lt;P&gt;My 2nd select is not fetching all the records frm coep table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone explain y this happens and pls suggest me a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2007 10:41:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-prob-with-select-statment/m-p/2320349#M509331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-28T10:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: RE : prob with select statment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-prob-with-select-statment/m-p/2320350#M509332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT IT_CAUFV[] IS INITIAL.&lt;/P&gt;&lt;P&gt;SELECT coep~MATNR&lt;/P&gt;&lt;P&gt;COEP~WTGBTR&lt;/P&gt;&lt;P&gt;COEP~MEGBTR&lt;/P&gt;&lt;P&gt;COEP~MEINH&lt;/P&gt;&lt;P&gt;COEP~OBJNR&lt;/P&gt;&lt;P&gt;MARA~MTART&lt;/P&gt;&lt;P&gt;FROM COEP INNER JOIN MARA&lt;/P&gt;&lt;P&gt;ON COEP&lt;SUB&gt;MATNR = MARA&lt;/SUB&gt;MATNR&lt;/P&gt;&lt;P&gt;INTO &amp;lt;b&amp;gt;CORRESPONDING FIELDS OF&amp;lt;/b&amp;gt; TABLE IT_RESB&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN IT_CAUFV&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;coep~OBJNR = IT_CAUFV-OBJNR&lt;/P&gt;&lt;P&gt;AND MARA~MTART IN ('YFLM','YCHE','YRAW').&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Santosh Kumar Patha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2007 10:45:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-prob-with-select-statment/m-p/2320350#M509332</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-28T10:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: RE : prob with select statment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-prob-with-select-statment/m-p/2320351#M509333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your second select you need to fetch all the primary keys (data) also to get the exact data..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;give the primary key fields also in the select statement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See for eg: Take MARD.. you have three primary keys..(MATNR ,WERKS,LGORT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if you are fetching onlt matnr and werks some data would be missing when fetching them/.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the CODE INSPECTOR of your program you will know the problem..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rewards if useful,&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;nazeer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2007 10:48:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-prob-with-select-statment/m-p/2320351#M509333</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-28T10:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: RE : prob with select statment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-prob-with-select-statment/m-p/2320352#M509334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;add in whare caluse &lt;/P&gt;&lt;P&gt;and mara-matnr = coep-matnr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2007 10:49:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-prob-with-select-statment/m-p/2320352#M509334</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-28T10:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: RE : prob with select statment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-prob-with-select-statment/m-p/2320353#M509335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Actually if there are duplicate entries when comparing the fields that you are retreiving, the select statements will not retrieve tha duplicates entries but the first one!&lt;/P&gt;&lt;P&gt;Try by retreiving more fields like buzei , even if you are not using them!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that this helps you,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2007 10:50:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-prob-with-select-statment/m-p/2320353#M509335</guid>
      <dc:creator>dev_parbutteea</dc:creator>
      <dc:date>2007-05-28T10:50:26Z</dc:date>
    </item>
  </channel>
</rss>

