<?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: Ad hoc Query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ad-hoc-query/m-p/1339765#M172057</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You mean with programming but if I use an standard sap transaction which is S_PH0_48000513 which corresponds to Ad_hoc_query how can I do the OR with different fields if the transaction shows me one select option for each input field chosen and is joining the options in both fields with a supposed AND?. The results make me think there is an AND. &lt;/P&gt;&lt;P&gt;Example  ; I chose first surname in the query and the second. The system propose me two select options in which I introduce for surname_1 (first select option) 'PEREZ' and for surname (second select option) 'GUTIERREZ'. I want the Personal numbers whose surname_1 were 'PEREZ' OR surname_2 were 'GUTIERREZ'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Jun 2006 10:47:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-15T10:47:29Z</dc:date>
    <item>
      <title>Ad hoc Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ad-hoc-query/m-p/1339760#M172052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone know if it is possible to make an ad_hoc_query with some OR restrictions instead of AND?&lt;/P&gt;&lt;P&gt;With an ad_hoc_query all parameters used are followed by and, I mean, the results should fullfills ALL the restrictions imposed. &lt;/P&gt;&lt;P&gt;For example, I need to do an ad_hoc_query in which the first surname fullfills the restriction "PEREZ" OR "GUTIERREZ". How can I do it?&lt;/P&gt;&lt;P&gt;Thanks in advanced.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 09:18:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ad-hoc-query/m-p/1339760#M172052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T09:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Ad hoc Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ad-hoc-query/m-p/1339761#M172053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If i understood your question, instead of parameters if you have select-options in your ad_hoc_query, you can specify in your single Value options "PEREZ" OR "GUTIERREZ" and it should bring either "PEREZ" or &lt;/P&gt;&lt;P&gt;"GUTIERREZ" right !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jun 2006 14:13:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ad-hoc-query/m-p/1339761#M172053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-07T14:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Ad hoc Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ad-hoc-query/m-p/1339762#M172054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I mean different fields. Perhaps I have'n found the rigth words to explain the problem. If I want to make an ad-hoc-query in which the results were the number of pernrs available in which the first surname was 'PEREZ' OR the second surname was 'GUTIERREZ' how can I do it? &lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2006 09:59:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ad-hoc-query/m-p/1339762#M172054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-15T09:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Ad hoc Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ad-hoc-query/m-p/1339763#M172055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;query with a where condition. say first and second surnames go in fields s1 and s2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;query&amp;gt; where s1 CS 'REZ' or s2 CS 'REZ'. Because both names that you gave me both have 'REZ' common. you might want to modify that and query. CS means contains string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2006 10:07:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ad-hoc-query/m-p/1339763#M172055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-15T10:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: Ad hoc Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ad-hoc-query/m-p/1339764#M172056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Maria,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u want to make a query on the fly then u can use select stmt with where clause supplied with internal table which is popluated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from mara &lt;/P&gt;&lt;P&gt; where (t_itab).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The content of t_tab is built in the program. If u want to generically search u can use OR or u can use LIKE with %.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2006 10:11:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ad-hoc-query/m-p/1339764#M172056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-15T10:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Ad hoc Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ad-hoc-query/m-p/1339765#M172057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You mean with programming but if I use an standard sap transaction which is S_PH0_48000513 which corresponds to Ad_hoc_query how can I do the OR with different fields if the transaction shows me one select option for each input field chosen and is joining the options in both fields with a supposed AND?. The results make me think there is an AND. &lt;/P&gt;&lt;P&gt;Example  ; I chose first surname in the query and the second. The system propose me two select options in which I introduce for surname_1 (first select option) 'PEREZ' and for surname (second select option) 'GUTIERREZ'. I want the Personal numbers whose surname_1 were 'PEREZ' OR surname_2 were 'GUTIERREZ'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2006 10:47:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ad-hoc-query/m-p/1339765#M172057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-15T10:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Ad hoc Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ad-hoc-query/m-p/1339766#M172058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you can change the infoset, there is provision Under Extras button to add custom code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the custom code can look something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHECK parameter1 = 'PEREZ' or parameter2 = 'GUTIERREZ'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2006 14:48:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ad-hoc-query/m-p/1339766#M172058</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-15T14:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Ad hoc Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ad-hoc-query/m-p/1339767#M172059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you explain me a little more? Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2006 06:26:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ad-hoc-query/m-p/1339767#M172059</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-16T06:26:18Z</dc:date>
    </item>
  </channel>
</rss>

