<?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: Regarding sql query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-sql-query/m-p/6259093#M1384705</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check in SE16, if you have data for the given condition of the SELECT statement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Nov 2009 06:32:35 GMT</pubDate>
    <dc:creator>former_member222860</dc:creator>
    <dc:date>2009-11-03T06:32:35Z</dc:date>
    <item>
      <title>Regarding sql query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-sql-query/m-p/6259091#M1384703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guriji,s&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have written one sql query. In tis query iwe written some condition. but we are getting the output only for 261 movement .&lt;/P&gt;&lt;P&gt;but i need the output both '201' or '261' movement type .&lt;/P&gt;&lt;P&gt;Plz check my query and tell me the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF DAYS IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;  WB2_V_MKPF_MSEG2-BUDAT = SY-DATUM - DAYS.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;SELECT MATNR_I  WERKS_I BWART_I BUDAT FROM  WB2_V_MKPF_MSEG2 INTO CORRESPONDING FIELDS OF TABLE T_ITAB4&lt;/P&gt;&lt;P&gt;  WHERE WERKS_I IN PLANT AND  BWART_I IN ('201' , '261') AND BUDAT BETWEEN WB2_V_MKPF_MSEG2-BUDAT AND SY-DATUM.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2009 06:22:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-sql-query/m-p/6259091#M1384703</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-03T06:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding sql query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-sql-query/m-p/6259092#M1384704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sachin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just check whether all rest of the conditions are satisfying for Movement type '201'.&lt;/P&gt;&lt;P&gt;Because all the Where conditions are with 'AND' so all the conditions should be satisfied together.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nitin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2009 06:27:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-sql-query/m-p/6259092#M1384704</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-03T06:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding sql query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-sql-query/m-p/6259093#M1384705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check in SE16, if you have data for the given condition of the SELECT statement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2009 06:32:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-sql-query/m-p/6259093#M1384705</guid>
      <dc:creator>former_member222860</dc:creator>
      <dc:date>2009-11-03T06:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding sql query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-sql-query/m-p/6259094#M1384706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your Query:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT MATNR_I WERKS_I BWART_I BUDAT FROM WB2_V_MKPF_MSEG2 INTO CORRESPONDING FIELDS OF TABLE T_ITAB4&lt;/P&gt;&lt;P&gt;WHERE WERKS_I IN PLANT AND BWART_I IN ('201' , '261') AND BUDAT BETWEEN WB2_V_MKPF_MSEG2-BUDAT AND SY-DATUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do following check:-&lt;/P&gt;&lt;P&gt;In se11, open table WB2_V_MKPF_MSEG2, in BWART_I provide 201 and 261. Check whether your imput for plant and budat is same or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2009 06:42:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-sql-query/m-p/6259094#M1384706</guid>
      <dc:creator>raviprakash</dc:creator>
      <dc:date>2009-11-03T06:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding sql query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-sql-query/m-p/6259095#M1384707</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;Your query for movement types is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other where conditions are not getting satisfied.Just remove other where conditions and check if its working fine only for movement types where conditions.It will work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subhashini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2009 06:57:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-sql-query/m-p/6259095#M1384707</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-03T06:57:23Z</dc:date>
    </item>
  </channel>
</rss>

