<?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 Conditional Select  - How to retrieve data based on different cond. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/conditional-select-how-to-retrieve-data-based-on-different-cond/m-p/2203683#M471137</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;I have a requirement to retrieve Equipments for Sales orders. But the selection criteria includes that if an Equipment with a EQTYp = 0 exists, only that record needs to be retrieved. And if no such equipment (Eqtyp = 0) exists, then retrieve any equipment from the Sales Order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have for this reason selected a process as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First collect all sales orders, collect Equipments for them from SER02 and OBJK. And then look for a EQtyp = 0 equipment for each sales order line item. If no such one is found, then one of the other equipments is selected. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the report needs to be run open (without specifying any sales orders) at times, the amount of sales orders that are to be checked becomes huge and so retrieving the equipmets also becomes hectic in my current process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, is there any other way to retrieve this information? or can a select be formulated in such a way that it can decide to pick a EQTYP &amp;lt;&amp;gt; 0  equipment when a EQTYP = 0 equipment is not found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Jr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Jr Abaper&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Apr 2007 18:30:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-25T18:30:54Z</dc:date>
    <item>
      <title>Conditional Select  - How to retrieve data based on different cond.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conditional-select-how-to-retrieve-data-based-on-different-cond/m-p/2203683#M471137</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;I have a requirement to retrieve Equipments for Sales orders. But the selection criteria includes that if an Equipment with a EQTYp = 0 exists, only that record needs to be retrieved. And if no such equipment (Eqtyp = 0) exists, then retrieve any equipment from the Sales Order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have for this reason selected a process as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First collect all sales orders, collect Equipments for them from SER02 and OBJK. And then look for a EQtyp = 0 equipment for each sales order line item. If no such one is found, then one of the other equipments is selected. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the report needs to be run open (without specifying any sales orders) at times, the amount of sales orders that are to be checked becomes huge and so retrieving the equipmets also becomes hectic in my current process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, is there any other way to retrieve this information? or can a select be formulated in such a way that it can decide to pick a EQTYP &amp;lt;&amp;gt; 0  equipment when a EQTYP = 0 equipment is not found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Jr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Jr Abaper&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2007 18:30:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conditional-select-how-to-retrieve-data-based-on-different-cond/m-p/2203683#M471137</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-25T18:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Select  - How to retrieve data based on different cond.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conditional-select-how-to-retrieve-data-based-on-different-cond/m-p/2203684#M471138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;  Is Equipment is an selection-screen field?&lt;/P&gt;&lt;P&gt;If so give Equipment value = o and # in the selection-screen while executing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that is not an selection-screen field in the select query in the where condition you can mention Equipment = 0 or&lt;/P&gt;&lt;P&gt;                         equipment # 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This can optimize the code some what.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sreeram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2007 18:38:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conditional-select-how-to-retrieve-data-based-on-different-cond/m-p/2203684#M471138</guid>
      <dc:creator>sreeramkumar_madisetty</dc:creator>
      <dc:date>2007-04-25T18:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Select  - How to retrieve data based on different cond.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conditional-select-how-to-retrieve-data-based-on-different-cond/m-p/2203685#M471139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answer sree ram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2007 18:47:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conditional-select-how-to-retrieve-data-based-on-different-cond/m-p/2203685#M471139</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-25T18:47:14Z</dc:date>
    </item>
  </channel>
</rss>

