<?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: How to form query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-form-query/m-p/3329332#M797512</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt; try like this in select stmt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select &amp;lt;Column List&amp;gt; from &amp;lt;DB tab&amp;gt; into table &amp;lt;itab&amp;gt;&lt;/P&gt;&lt;P&gt;where vbeln in ZSO and&lt;/P&gt;&lt;P&gt;         kdpos in ZLI and&lt;/P&gt;&lt;P&gt;        matnr in zmat and so on........... up to the last select option.&lt;/P&gt;&lt;P&gt;using Join conditions b4 where clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward points if useful&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Chandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jan 2008 05:00:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-22T05:00:10Z</dc:date>
    <item>
      <title>How to form query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-form-query/m-p/3329330#M797510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     How to form the query for data reading when i have multiple seleciton options as follow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK bk1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: zso FOR vbak-vbeln.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: zli FOR afpo-kdpos.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: zmat FOR mara-matnr.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: zwork FOR crhd-ARBPL.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: zdat FOR afru-BUDAT.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: zpl FOR afru-werks OBLIGATORY.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: zmrp FOR afko-DISPO.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: zauf FOR AFKO-AUFNR.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: zedat FOR AFRU-ISDD.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: zline FOR AFRU-GRUND.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK bk1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajaram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 04:30:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-form-query/m-p/3329330#M797510</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-22T04:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to form query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-form-query/m-p/3329331#M797511</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 can use use IN operator in WHERE cluase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options: s_kunnr FOR kna1-kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Query:&lt;/P&gt;&lt;P&gt;select * from kna1 into gt_kna1&lt;/P&gt;&lt;P&gt;where kunnr IN s_kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;awrd points if useful&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Ganesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 04:34:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-form-query/m-p/3329331#M797511</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-22T04:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to form query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-form-query/m-p/3329332#M797512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt; try like this in select stmt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select &amp;lt;Column List&amp;gt; from &amp;lt;DB tab&amp;gt; into table &amp;lt;itab&amp;gt;&lt;/P&gt;&lt;P&gt;where vbeln in ZSO and&lt;/P&gt;&lt;P&gt;         kdpos in ZLI and&lt;/P&gt;&lt;P&gt;        matnr in zmat and so on........... up to the last select option.&lt;/P&gt;&lt;P&gt;using Join conditions b4 where clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward points if useful&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Chandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 05:00:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-form-query/m-p/3329332#M797512</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-22T05:00:10Z</dc:date>
    </item>
  </channel>
</rss>

