<?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 - Intervals in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-intervals/m-p/7126244#M1511850</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandeep,&lt;/P&gt;&lt;P&gt;I am doing all these in my own selection screen only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shalini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Jul 2010 10:58:01 GMT</pubDate>
    <dc:creator>Shky</dc:creator>
    <dc:date>2010-07-23T10:58:01Z</dc:date>
    <item>
      <title>SELECTION SCREEN - Intervals</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-intervals/m-p/7126239#M1511845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a selection screen field. I want to perform custom checks on that field.&lt;/P&gt;&lt;P&gt;For example I have a field as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Grade: _________    to ______&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I enter F and A in the above fields for LOW and HIGH respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per my application A is greater than F. But as per the selection screen, it compares the ASCII values and always gives the error "Lower limit is higher than upper limit" as F is greater than A. Hence I want to use a customized check for this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used my own fields and did a customized check, but if I add intervals it still allows ranges in the selection pop up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shalini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jul 2010 10:26:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-intervals/m-p/7126239#M1511845</guid>
      <dc:creator>Shky</dc:creator>
      <dc:date>2010-07-23T10:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: SELECTION SCREEN - Intervals</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-intervals/m-p/7126240#M1511846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well that's strange .. what is the problem is you pass A to F .. i think your o/p will stillbe the same ?&lt;/P&gt;&lt;P&gt;why you want to do so much of coding when you cna use the normal behavior of sap.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jul 2010 10:41:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-intervals/m-p/7126240#M1511846</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2010-07-23T10:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: SELECTION SCREEN - Intervals</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-intervals/m-p/7126241#M1511847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for the response&lt;/P&gt;&lt;P&gt;I understand it is the same. But the user input may keep varying. so we convert A and F to the internal values and do a check.&lt;/P&gt;&lt;P&gt;Also in the DB, the search would be done with (where value &amp;gt; A and value &amp;lt;F ) which would be empty. All entries in DB have grades &amp;lt;A and &amp;gt;F. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible that the results would swap automatically when low is greater than high.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not the only case. Grade could be A-F, 0-100, 0-10, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shalini.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Shalini Krishnamoorthy on Jul 23, 2010 4:15 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jul 2010 10:45:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-intervals/m-p/7126241#M1511847</guid>
      <dc:creator>Shky</dc:creator>
      <dc:date>2010-07-23T10:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: SELECTION SCREEN - Intervals</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-intervals/m-p/7126242#M1511848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmmm.... create your own screen (custom screen) and create select options on this screen using a subscreen. hope this will help,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jul 2010 10:49:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-intervals/m-p/7126242#M1511848</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2010-07-23T10:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: SELECTION SCREEN - Intervals</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-intervals/m-p/7126243#M1511849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    Try with the below function module in AT Selection-Screen events&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RS_SELOPT_NO_INTERVAL_CHECK&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and code your validations after that.&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;Bala Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jul 2010 10:57:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-intervals/m-p/7126243#M1511849</guid>
      <dc:creator>former_member585060</dc:creator>
      <dc:date>2010-07-23T10:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: SELECTION SCREEN - Intervals</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-intervals/m-p/7126244#M1511850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandeep,&lt;/P&gt;&lt;P&gt;I am doing all these in my own selection screen only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shalini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jul 2010 10:58:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-intervals/m-p/7126244#M1511850</guid>
      <dc:creator>Shky</dc:creator>
      <dc:date>2010-07-23T10:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: SELECTION SCREEN - Intervals</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-intervals/m-p/7126245#M1511851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bala Krishna,&lt;/P&gt;&lt;P&gt;I have added the function module in form pgrade:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON pgrade_h.&lt;/P&gt;&lt;P&gt;  PERFORM pgrade.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However if I enter the ranges, it still gives me error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shalini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jul 2010 11:07:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-intervals/m-p/7126245#M1511851</guid>
      <dc:creator>Shky</dc:creator>
      <dc:date>2010-07-23T11:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: SELECTION SCREEN - Intervals</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-intervals/m-p/7126246#M1511852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shalini&lt;/P&gt;&lt;P&gt;The grade field that you have built on the selection screen must be linked with any ddic table.I mean that garde field must be existing in DDic table in which u r working.If it is existing then in the domain of that field in the value check tab you can specify the lower and upper limit.&lt;/P&gt;&lt;P&gt;Hope its solves ur problem.&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jul 2010 11:13:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-intervals/m-p/7126246#M1511852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-23T11:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: SELECTION SCREEN - Intervals</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-intervals/m-p/7126247#M1511853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   Code that in AT SELECTION-SCREEN OUTPUT event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT-OPTIONS : s_var FOR lv_var.

AT SELECTION-SCREEN OUTPUT.

  PERFORM no_sel_option_check.

START-OF-SELECTION.


FORM no_sel_option_check .
  DATA: lt_s_option TYPE TABLE OF rsldbselop,
  lwa_s_option TYPE rsldbselop.

  lwa_s_option-name = 'S_VAR'.
  APPEND lwa_s_option TO lt_s_option.

  CALL FUNCTION 'RS_SELOPT_NO_INTERVAL_CHECK'
    EXPORTING
      program        = sy-repid
    TABLES
      selop          = lt_s_option
    EXCEPTIONS
      no_programname = 1
      OTHERS         = 2.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

ENDFORM. " NO_SEL_OPTION_CHECK&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bala Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jul 2010 11:19:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-intervals/m-p/7126247#M1511853</guid>
      <dc:creator>former_member585060</dc:creator>
      <dc:date>2010-07-23T11:19:08Z</dc:date>
    </item>
  </channel>
</rss>

