<?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 problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/5944144#M1335095</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This requirement seems wierd if you are passing the vendor number in both the parameters as well as select-options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Incase you still want to use the same in your select query then make use of the select-options only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just pass the parameter value to the select-options before the select statement as follows:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; s_lifnr-sign = 'I'.&lt;/P&gt;&lt;P&gt; s_lifnr-OPTION = 'EQ'.&lt;/P&gt;&lt;P&gt;s_LIFNR-LOW = p_lifnr.&lt;/P&gt;&lt;P&gt;append S_LIFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now S_LIFNR will contain its original values as well as the parameter value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur Parab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 25 Jul 2009 11:54:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-25T11:54:05Z</dc:date>
    <item>
      <title>selection screen problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/5944143#M1335094</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;&lt;/P&gt;&lt;P&gt;I've to design the selection screen as shown below as per the requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters :  p_lifnr like lfa1-lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options : s_lifnr for lfa1-lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so could anyone let me know how to handle this situation while writing select query. if possible with sample select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;natasha ss.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jul 2009 11:48:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/5944143#M1335094</guid>
      <dc:creator>former_member423024</dc:creator>
      <dc:date>2009-07-25T11:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/5944144#M1335095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This requirement seems wierd if you are passing the vendor number in both the parameters as well as select-options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Incase you still want to use the same in your select query then make use of the select-options only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just pass the parameter value to the select-options before the select statement as follows:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; s_lifnr-sign = 'I'.&lt;/P&gt;&lt;P&gt; s_lifnr-OPTION = 'EQ'.&lt;/P&gt;&lt;P&gt;s_LIFNR-LOW = p_lifnr.&lt;/P&gt;&lt;P&gt;append S_LIFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now S_LIFNR will contain its original values as well as the parameter value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur Parab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jul 2009 11:54:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/5944144#M1335095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-25T11:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/5944145#M1335096</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;Check this code.. if p_r1 is selected it behaves like select option..if p_r2 is selected it behaves like parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES lfa1.

SELECT-OPTIONS : s_lifnr FOR lfa1-lifnr no-extension.
PARAMETERS : p_r1 TYPE c RADIOBUTTON GROUP gr1 user-command us1,
p_r2 TYPE c RADIOBUTTON GROUP gr1.


AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.
IF p_r2 EQ 'X'.
 IF screen-name CS 'S_LIFNR-HIGH'
    OR screen-name EQ '%_S_LIFNR_%_APP_%-TO_TEXT'.

    screen-output = '0'.
    screen-input = '0'.
    screen-active = '0'.

    modify screen. clear screen.
 ENDIF.
ENDIF.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jul 2009 12:34:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/5944145#M1335096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-25T12:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/5944146#M1335097</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 you are using parameter,you have to give the condition in "where" should be like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr makt&lt;/P&gt;&lt;P&gt;          from makt&lt;/P&gt;&lt;P&gt;          into table it_makt&lt;/P&gt;&lt;P&gt;          where matnr = matnr.&lt;/P&gt;&lt;P&gt;See,here you should use the "=,&amp;lt;&amp;gt;,&amp;lt;,&amp;gt;,&amp;lt;+,&amp;gt;=" logic,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       If you are using select-options,you have to code in "where" condition like ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr makt&lt;/P&gt;&lt;P&gt;         from makt&lt;/P&gt;&lt;P&gt;         into table it_makt&lt;/P&gt;&lt;P&gt;         where matnr in matnr.&lt;/P&gt;&lt;P&gt;See,here you can give any condition like =, EQ, &amp;lt;&amp;gt;, NE, &amp;lt;, LT, &amp;gt;, GT, &amp;lt;, LE, &amp;gt;=, GE, &amp;lt;=, LE ,BETWEEN &lt;/P&gt;&lt;P&gt;,LIKE ,IN,....,if you want to know these conditions,plz press 'F1' in "where" keyword,from this you can get all the conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Main difference is ,&lt;/P&gt;&lt;P&gt;Parameter --&amp;gt; it checks only single conitions from single value,&lt;/P&gt;&lt;P&gt;select-options --. it will check the logical conditions from the value range(ie.,between the Low and high value).....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope,It will help you...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;=&amp;lt;&amp;lt; Sharing Knowledge is a way to Innovative &amp;gt;=&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;By,&lt;/P&gt;&lt;P&gt;  Yoga&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jul 2009 13:22:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/5944146#M1335097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-25T13:22:45Z</dc:date>
    </item>
  </channel>
</rss>

