<?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: select data with select option in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-with-select-option/m-p/719027#M33451</link>
    <description>&lt;P&gt;The problem comes from the &lt;A href="https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/abenlogexp_boole.htm"&gt;OR operators&lt;/A&gt; in the where clause. Do you guess how the system interpret your clause?&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jul 2018 06:46:46 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2018-07-10T06:46:46Z</dc:date>
    <item>
      <title>select data with select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-with-select-option/m-p/719024#M33448</link>
      <description>&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/171429-1.png" /&gt;&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;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/171430-2.png" /&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Hi Experts,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;I am trying to call the selected data that I am entering in the selecting screen but the program call all the data without taking the entering data in to consideration like e.g.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;When I enter a company code in the field &lt;STRONG&gt;p_bukrs2&lt;/STRONG&gt; I receive all the company codes.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Can you guide me to receive a specific data for a selected company code and supplier number?&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;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;your help well be appreciated.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Jenie&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jul 2018 15:33:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-with-select-option/m-p/719024#M33448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-07-09T15:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: select data with select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-with-select-option/m-p/719025#M33449</link>
      <description>&lt;P&gt;If using prefixes, I'd strongly encourage to use different ones for parameters (p_...) and select options (s_...). &lt;/P&gt;
  &lt;P&gt;As to the question - from the top of my head, you are not JOINing by all the key fields, so could that be part of the problem? There is also a mix of AND and OR that could be problematic.&lt;/P&gt;
  &lt;P&gt;You can always run ST05 (SQL Trace) and then use Explain button there to see how exactly the DB interprets your SELECT. Also when I get strange results in JOIN I usually try to separate it into multiple SELECTs or change WHERE conditions to pinpoint the problem. &lt;/P&gt;</description>
      <pubDate>Mon, 09 Jul 2018 21:49:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-with-select-option/m-p/719025#M33449</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2018-07-09T21:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: select data with select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-with-select-option/m-p/719026#M33450</link>
      <description>&lt;P&gt;I tried your SQL on my system and it work as expected. How did you input into selection option? You can try to build a quick view in SQVI to check your join first.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2018 00:31:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-with-select-option/m-p/719026#M33450</guid>
      <dc:creator>DoanManhQuynh</dc:creator>
      <dc:date>2018-07-10T00:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: select data with select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-with-select-option/m-p/719027#M33451</link>
      <description>&lt;P&gt;The problem comes from the &lt;A href="https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/abenlogexp_boole.htm"&gt;OR operators&lt;/A&gt; in the where clause. Do you guess how the system interpret your clause?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2018 06:46:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-with-select-option/m-p/719027#M33451</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2018-07-10T06:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: select data with select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-with-select-option/m-p/719028#M33452</link>
      <description>&lt;P&gt;You didn't copy his where clause, I suppose you added some parentheses, else the statement wont respect the criteria for the select-option when ... &lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2018 06:48:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-with-select-option/m-p/719028#M33452</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2018-07-10T06:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: select data with select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-with-select-option/m-p/719029#M33453</link>
      <description>&lt;P&gt;Yes, sorry. I didnt copy his OR. The problem is because his OR need to be inside ( ).&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2018 07:03:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-with-select-option/m-p/719029#M33453</guid>
      <dc:creator>DoanManhQuynh</dc:creator>
      <dc:date>2018-07-10T07:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: select data with select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-with-select-option/m-p/719030#M33454</link>
      <description>&lt;P&gt;Providing the name is real, it's "her", not "his". &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2018 21:37:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-with-select-option/m-p/719030#M33454</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2018-07-10T21:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: select data with select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-with-select-option/m-p/719031#M33455</link>
      <description>&lt;P&gt;Those ORs should in &lt;STRONG&gt;IN (&lt;/STRONG&gt;&lt;B&gt;'KM', 'KV', ..., 'SD')&lt;/B&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 06:43:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-with-select-option/m-p/719031#M33455</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2018-07-11T06:43:33Z</dc:date>
    </item>
  </channel>
</rss>

