<?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 Select option for selection valid and invalid data. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-for-selection-valid-and-invalid-data/m-p/5692369#M1293391</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;Any one pleas help in validating following case :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the selection screen there is a select option for equipment number like EQUI-EQUNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if any user will give wrong equipment no. It will generate an error message from the  range of equipment no.&lt;/P&gt;&lt;P&gt; and put it to an internal table it error.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;and if any value in between the select option(equipment no) is correct then that value I need to proceed for some other logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iu2019d appreciate if some one help me in generation code for the above case or logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Jun 2009 06:05:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-04T06:05:04Z</dc:date>
    <item>
      <title>Select option for selection valid and invalid data.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-for-selection-valid-and-invalid-data/m-p/5692369#M1293391</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;Any one pleas help in validating following case :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the selection screen there is a select option for equipment number like EQUI-EQUNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if any user will give wrong equipment no. It will generate an error message from the  range of equipment no.&lt;/P&gt;&lt;P&gt; and put it to an internal table it error.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;and if any value in between the select option(equipment no) is correct then that value I need to proceed for some other logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iu2019d appreciate if some one help me in generation code for the above case or logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 06:05:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-for-selection-valid-and-invalid-data/m-p/5692369#M1293391</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-04T06:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Select option for selection valid and invalid data.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-for-selection-valid-and-invalid-data/m-p/5692370#M1293392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see the data you have input you can tht from the DATA DICTIONARY table its exist ot not .&lt;/P&gt;&lt;P&gt;if exist then &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Message 'equipment exist' . type 'E' .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else do the execution which u want .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds aryan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 06:17:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-for-selection-valid-and-invalid-data/m-p/5692370#M1293392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-04T06:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Select option for selection valid and invalid data.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-for-selection-valid-and-invalid-data/m-p/5692371#M1293393</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; Use FM 'RS_REFRESH_FROM_SELECTOPTIONS'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: RSPAR TYPE STANDARD TABLE OF RSPARAMS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      REFRESH RSPAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            CURR_REPORT           = 'prog name'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      SP                    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          TABLES&lt;/P&gt;&lt;P&gt;            SELECTION_TABLE       = RSPAR&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;           NOT_FOUND             = 1&lt;/P&gt;&lt;P&gt;           NO_REPORT             = 2&lt;/P&gt;&lt;P&gt;           OTHERS                = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MESSAGE I000.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In table parameter you ll get the all entries entered .&lt;/P&gt;&lt;P&gt;Check out the values with respective tables.If value is not correct tk it into internal table&lt;/P&gt;&lt;P&gt;else proceed ahead. You can Remove incorrect entries this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;ajit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 06:24:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-for-selection-valid-and-invalid-data/m-p/5692371#M1293393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-04T06:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Select option for selection valid and invalid data.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-for-selection-valid-and-invalid-data/m-p/5692372#M1293394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Loop at sel_ot_parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check for existance of equip_mber.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0 .&lt;/P&gt;&lt;P&gt;    message error. &lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    do_ur_processing.  &lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;Gives error mssage for wrong equip number...and processess correct equip numbrs..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at sel_ot_parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check for existance of equip_mber.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0 .&lt;/P&gt;&lt;P&gt;delete sele_opt_parameter.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;Finall u will have only the correct equip_numbers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 06:26:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-for-selection-valid-and-invalid-data/m-p/5692372#M1293394</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-04T06:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Select option for selection valid and invalid data.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-for-selection-valid-and-invalid-data/m-p/5692373#M1293395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check the below logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ranges: r_correct for EQUI-EQUNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at select-option.&lt;/P&gt;&lt;P&gt; if the value value selection-option-low is incorrect then append this value to error table.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;r_correct-sign = 'I'&lt;/P&gt;&lt;P&gt;r_correct-sign = 'Equi'&lt;/P&gt;&lt;P&gt;r_correct-low = selection-option-low.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;if selection-option-high is not initial.&lt;/P&gt;&lt;P&gt;if the value selection-option-high is incorrect then append this value to error table.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;r_correct-high = selection-option-high.&lt;/P&gt;&lt;P&gt;append r_correct.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;append r_correct.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sheelesh on Jun 4, 2009 12:15 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sheelesh on Jun 4, 2009 12:21 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 06:44:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-for-selection-valid-and-invalid-data/m-p/5692373#M1293395</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-04T06:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Select option for selection valid and invalid data.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-for-selection-valid-and-invalid-data/m-p/5692374#M1293396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the at selection screen event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write a logic like,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select field1&lt;/P&gt;&lt;P&gt; from table &lt;/P&gt;&lt;P&gt; into &lt;STRONG&gt;wa&lt;/STRONG&gt; where &amp;lt;fieldname&amp;gt; in [select=option].&lt;/P&gt;&lt;P&gt;if sy-subrc is not initial. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Append the work area entry into an internal table.&lt;/STRONG&gt;     &lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you move it into a work area, the select statement would execute for every single entry that is there in the select option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 06:54:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-for-selection-valid-and-invalid-data/m-p/5692374#M1293396</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-04T06:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Select option for selection valid and invalid data.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-for-selection-valid-and-invalid-data/m-p/5692375#M1293397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    The below logic works only if the EQUNR number contains numeric values, if it contains other character other than  number it may trigger endless loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES : equi.

TYPES : BEGIN OF ty_itab,
         equnr TYPE equnr,
        END OF ty_itab.

TYPES : BEGIN OF ty_err,
         equnr TYPE equnr,
         message(50) TYPE c,
        END OF ty_err.

DATA : it_itab TYPE TABLE OF ty_itab,
       it_err TYPE TABLE OF ty_err,
       ls_itab TYPE ty_itab,
       ls_err TYPE ty_err.

DATA : lv_equnr TYPE equnr.

SELECT-OPTIONS : s_equnr FOR equi-equnr.


AT SELECTION-SCREEN ON  s_equnr.

  SELECT equnr FROM equi INTO TABLE it_itab
                         WHERE equnr IN s_equnr.


  lv_equnr = s_equnr-low.

  WHILE lv_equnr LE s_equnr-low.

    READ TABLE it_itab INTO ls_itab WITH KEY equnr = lv_equnr.

    IF sy-subrc &amp;lt;&amp;gt; 0.

      ls_err-equnr = lv_equnr.
      ls_err-message = ' Number not forund'.

      APPEND ls_err TO it_err.

    ENDIF.
    CLEAR ls_err.

    ADD 1 TO lv_equnr.

  ENDWHILE.


START-OF-SELECTION.&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>Thu, 04 Jun 2009 07:06:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-for-selection-valid-and-invalid-data/m-p/5692375#M1293397</guid>
      <dc:creator>former_member585060</dc:creator>
      <dc:date>2009-06-04T07:06:18Z</dc:date>
    </item>
  </channel>
</rss>

