<?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: selection-screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4322520#M1030033</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;&lt;/P&gt;&lt;P&gt;  Just use AND in your WHERE condition of your SELECT query, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Select * 
   from table 
    into table itab
 where field1 in s_field1
    and field2 in s_field2
    and field3 in s_field3
    and field4 in s_field4
    and field5 in s_field5.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With luck,&lt;/P&gt;&lt;P&gt;Pritam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Aug 2008 05:14:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-14T05:14:14Z</dc:date>
    <item>
      <title>selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4322517#M1030030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i have 5 select-options in the selection-screen...all are NOT mandatory fields...then how do i write the program so that if a user enter only one selction it should work properly and if he uses all fields then the program should show all correct values...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am writing the code as :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if a1 = ' ' and a2 NE ' ' a3 NE ' ' a4 NE ' ' a5 NE ' '.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;elseif a1 NE ' ' and a2 = ' ' a3 NE ' ' a4 NE ' ' a5 NE ' '.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;elseif....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;........&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;endif.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls help...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 05:06:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4322517#M1030030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T05:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4322518#M1030031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;please explain your req further ur saying in both cases it should work???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 05:10:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4322518#M1030031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T05:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4322519#M1030032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it should work for all selection options....either if i give 1 field or 2 fields or 5 fields...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 05:13:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4322519#M1030032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T05:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4322520#M1030033</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;&lt;/P&gt;&lt;P&gt;  Just use AND in your WHERE condition of your SELECT query, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Select * 
   from table 
    into table itab
 where field1 in s_field1
    and field2 in s_field2
    and field3 in s_field3
    and field4 in s_field4
    and field5 in s_field5.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With luck,&lt;/P&gt;&lt;P&gt;Pritam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 05:14:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4322520#M1030033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T05:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4322521#M1030034</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;insted of =,&lt;/P&gt;&lt;P&gt;use IN in the where condition ,&lt;/P&gt;&lt;P&gt;like date IN s_date and&lt;/P&gt;&lt;P&gt;      time IN s_time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then the system will take care about rest of things .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 05:17:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4322521#M1030034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T05:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4322522#M1030035</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;If all your select-option inputs are in same table, then u can code like..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM &amp;lt;TABLE&amp;gt;&lt;/P&gt;&lt;P&gt;INTO TABLE &amp;lt;ITAB&amp;gt;&lt;/P&gt;&lt;P&gt;WHERE &amp;lt;fld1&amp;gt; IN &amp;lt;input1&amp;gt; and&lt;/P&gt;&lt;P&gt;             &amp;lt;fld2&amp;gt; IN &amp;lt;input2&amp;gt; and&lt;/P&gt;&lt;P&gt;             &amp;lt;fld3&amp;gt; IN &amp;lt;input3&amp;gt; and&lt;/P&gt;&lt;P&gt;             &amp;lt;fld4&amp;gt; IN &amp;lt;input4&amp;gt; and&lt;/P&gt;&lt;P&gt;             &amp;lt;fld5&amp;gt; IN &amp;lt;input5&amp;gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else, u have to fetch the records from different tables and bring it into one final table.. Then u can delete the records based on user inputs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF &amp;lt;inp1&amp;gt; is not intial .&lt;/P&gt;&lt;P&gt;   DELETE itab WHERE &amp;lt;fld1&amp;gt; NOT IN &amp;lt;inp1&amp;gt; .&lt;/P&gt;&lt;P&gt;ELSEIF &amp;lt;inp2&amp;gt; is not intial .&lt;/P&gt;&lt;P&gt;   DELETE itab WHERE &amp;lt;fld2&amp;gt; NOT IN &amp;lt;inp2&amp;gt; .&lt;/P&gt;&lt;P&gt;ELSEIF &amp;lt;inp3&amp;gt; is not intial .&lt;/P&gt;&lt;P&gt;   DELETE itab WHERE &amp;lt;fld3&amp;gt; NOT IN &amp;lt;inp3&amp;gt; .&lt;/P&gt;&lt;P&gt;ELSEIF &amp;lt;inp4&amp;gt; is not intial .&lt;/P&gt;&lt;P&gt;   DELETE itab WHERE &amp;lt;fld4&amp;gt; NOT IN &amp;lt;inp4&amp;gt; .&lt;/P&gt;&lt;P&gt;ELSEIF &amp;lt;inp5&amp;gt; is not intial .&lt;/P&gt;&lt;P&gt;   DELETE itab WHERE &amp;lt;fld5&amp;gt; NOT IN &amp;lt;inp5&amp;gt; .&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 05:41:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4322522#M1030035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T05:41:18Z</dc:date>
    </item>
  </channel>
</rss>

