<?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: query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/query/m-p/4040232#M965656</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sophie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just look into this Query...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT  vbeln
        vbtyp
        trvog
        auart
   INTO TABLE lt_vbak
   FROM vbak
  WHERE vkorg = '1000'
    AND vtweg = '10'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we are selecting the fields ( vbeln, vbtyp, trvog, auart) into table IT_VBAK from database table VBAK depending on the condition where VKORG field is 1000 and VTWEG is 10.&lt;/P&gt;&lt;P&gt;It select only the records which meets the condition in the WHERE clause.&lt;/P&gt;&lt;P&gt;if the database table VBAK contains the record with VKORG value as 1000 and VTWEG value as 10, then they are selected into the table IT_VBAK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT  vbeln
        vbtyp
        trvog
        auart
   INTO TABLE lt_vbak
   FROM vbak
  WHERE vkorg IN s_vkorg
    AND vtweg IN s_vtweg.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;raam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jun 2008 16:53:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-12T16:53:15Z</dc:date>
    <item>
      <title>query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query/m-p/4040226#M965650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how to write a query sentence to make one field fit for multi-condition synchronously?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 10:53:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query/m-p/4040226#M965650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T10:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query/m-p/4040227#M965651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u can use IN operator like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select &amp;lt;field&amp;gt; from &amp;lt;table&amp;gt; &lt;/P&gt;&lt;P&gt;          into &amp;lt;itab-field&amp;gt;&lt;/P&gt;&lt;P&gt;                      where &amp;lt;table-field&amp;gt; IN ( var )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ankesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 10:55:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query/m-p/4040227#M965651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T10:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query/m-p/4040228#M965652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"in" couldn't  achieve the logic relation "and" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i mean that there are more than one condition with one field ,and must fit for all of this condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 10:59:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query/m-p/4040228#M965652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T10:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query/m-p/4040229#M965653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT matnr                       " Material Number
           werks                       " Plants
           prctr                       " Profit Center
      FROM marc
      INTO TABLE i_marc
       FOR ALL ENTRIES IN i_mara
     WHERE matnr = i_mara-matnr
       AND werks IN s_werks.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for multiple condition we can use this type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;P&gt;twinkal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Jun 12, 2008 12:53 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 11:01:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query/m-p/4040229#M965653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T11:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query/m-p/4040230#M965654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tks twinkal patel , but ,could you explain this query briefly , tks for your kind !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 11:15:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query/m-p/4040230#M965654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T11:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query/m-p/4040231#M965655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;where the condition setting  ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 11:55:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query/m-p/4040231#M965655</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T11:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query/m-p/4040232#M965656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sophie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just look into this Query...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT  vbeln
        vbtyp
        trvog
        auart
   INTO TABLE lt_vbak
   FROM vbak
  WHERE vkorg = '1000'
    AND vtweg = '10'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we are selecting the fields ( vbeln, vbtyp, trvog, auart) into table IT_VBAK from database table VBAK depending on the condition where VKORG field is 1000 and VTWEG is 10.&lt;/P&gt;&lt;P&gt;It select only the records which meets the condition in the WHERE clause.&lt;/P&gt;&lt;P&gt;if the database table VBAK contains the record with VKORG value as 1000 and VTWEG value as 10, then they are selected into the table IT_VBAK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT  vbeln
        vbtyp
        trvog
        auart
   INTO TABLE lt_vbak
   FROM vbak
  WHERE vkorg IN s_vkorg
    AND vtweg IN s_vtweg.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;raam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 16:53:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query/m-p/4040232#M965656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T16:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query/m-p/4040233#M965657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sophie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just look into this Query...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT  vbeln
        vbtyp
        trvog
        auart
   INTO TABLE lt_vbak
   FROM vbak
  WHERE vkorg = '1000'
    AND vtweg = '10'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we are selecting the fields ( vbeln, vbtyp, trvog, auart) into table IT_VBAK from database table VBAK depending on the condition where VKORG field is 1000 and VTWEG is 10.&lt;/P&gt;&lt;P&gt;It select only the records which meets the condition in the WHERE clause.&lt;/P&gt;&lt;P&gt;if the database table VBAK contains the record with VKORG value as 1000 and VTWEG value as 10, then they are selected into the table IT_VBAK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT  vbeln
        vbtyp
        trvog
        auart
   INTO TABLE lt_vbak
   FROM vbak
  WHERE vkorg IN s_vkorg
    AND vtweg  = '10'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here S_VKORG is select option. Select options contain a range of values like 1000 to 3000. In selection screen we mention the range of values we want to fetch from the databas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;raam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 01:12:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query/m-p/4040233#M965657</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-13T01:12:53Z</dc:date>
    </item>
  </channel>
</rss>

