<?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 SELECT QUERY PROBLEM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/6932283#M1485933</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to fetch data from &lt;STRONG&gt;MSEG&lt;/STRONG&gt; table by passing eblen and  where movement type is 105, 106, 124, 125.&lt;/P&gt;&lt;P&gt;i use the select query like.&lt;/P&gt;&lt;P&gt;but here i am not geting all the data which is matched with 105 movement type. In the sence one record is missing.&lt;/P&gt;&lt;P&gt;please help me on this.........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF IT_EKKO IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;SELECT  MBLNR&lt;/P&gt;&lt;P&gt;        BWART&lt;/P&gt;&lt;P&gt;        MATNR&lt;/P&gt;&lt;P&gt;        WERKS&lt;/P&gt;&lt;P&gt;        LGORT&lt;/P&gt;&lt;P&gt;        CHARG&lt;/P&gt;&lt;P&gt;        SHKZG&lt;/P&gt;&lt;P&gt;        MENGE&lt;/P&gt;&lt;P&gt;        ERFME&lt;/P&gt;&lt;P&gt;  FROM MSEG&lt;/P&gt;&lt;P&gt;  INTO TABLE IT_MSEG&lt;/P&gt;&lt;P&gt;  FOR ALL ENTRIES IN IT_EKKO&lt;/P&gt;&lt;P&gt;  WHERE EBELN = IT_EKKO-EBELN&lt;/P&gt;&lt;P&gt;  AND BWART IN ('105', '106', '124', '125').&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;margani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 May 2010 11:12:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-20T11:12:49Z</dc:date>
    <item>
      <title>SELECT QUERY PROBLEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/6932283#M1485933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to fetch data from &lt;STRONG&gt;MSEG&lt;/STRONG&gt; table by passing eblen and  where movement type is 105, 106, 124, 125.&lt;/P&gt;&lt;P&gt;i use the select query like.&lt;/P&gt;&lt;P&gt;but here i am not geting all the data which is matched with 105 movement type. In the sence one record is missing.&lt;/P&gt;&lt;P&gt;please help me on this.........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF IT_EKKO IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;SELECT  MBLNR&lt;/P&gt;&lt;P&gt;        BWART&lt;/P&gt;&lt;P&gt;        MATNR&lt;/P&gt;&lt;P&gt;        WERKS&lt;/P&gt;&lt;P&gt;        LGORT&lt;/P&gt;&lt;P&gt;        CHARG&lt;/P&gt;&lt;P&gt;        SHKZG&lt;/P&gt;&lt;P&gt;        MENGE&lt;/P&gt;&lt;P&gt;        ERFME&lt;/P&gt;&lt;P&gt;  FROM MSEG&lt;/P&gt;&lt;P&gt;  INTO TABLE IT_MSEG&lt;/P&gt;&lt;P&gt;  FOR ALL ENTRIES IN IT_EKKO&lt;/P&gt;&lt;P&gt;  WHERE EBELN = IT_EKKO-EBELN&lt;/P&gt;&lt;P&gt;  AND BWART IN ('105', '106', '124', '125').&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;margani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 11:12:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/6932283#M1485933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-20T11:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT QUERY PROBLEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/6932284#M1485934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any logic for this select query other than this. or any modification is need for this select query..&lt;/P&gt;&lt;P&gt;plz help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;margani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 11:20:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/6932284#M1485934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-20T11:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT QUERY PROBLEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/6932285#M1485935</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;Select all key fields of the table MSEG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF IT_EKKO IS NOT INITIAL.
SELECT MBLNR
"add these two flds to ur query
MJAHR
ZEILE
"add 
BWART
MATNR
WERKS
LGORT
CHARG
SHKZG
MENGE
ERFME
FROM MSEG
INTO TABLE IT_MSEG
FOR ALL ENTRIES IN IT_EKKO
WHERE EBELN = IT_EKKO-EBELN
AND BWART IN ('105', '106', '124', '125').
ENDIF&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;- Always Learner&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 11:27:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/6932285#M1485935</guid>
      <dc:creator>Mohamed_Mukhtar</dc:creator>
      <dc:date>2010-05-20T11:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT QUERY PROBLEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/6932286#M1485936</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;I dont see a reason for the data to be selcted for all other values except for one, just that either there is no data for it in DB table, or is it that latter there is some delete statements.&lt;/P&gt;&lt;P&gt;Have you debug your select query?&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;Sana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 14:26:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/6932286#M1485936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-20T14:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT QUERY PROBLEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/6932287#M1485937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN my dev server MSEG table has data. i saw both in data base table and in my debug mode.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 14:34:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/6932287#M1485937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-20T14:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT QUERY PROBLEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/6932288#M1485938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a duplicate post - you have your answer in the other one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 14:49:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/6932288#M1485938</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-20T14:49:23Z</dc:date>
    </item>
  </channel>
</rss>

