<?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: Select-options in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1912709#M379834</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Repeate the same code for second select-option field also.&lt;/P&gt;&lt;P&gt;its same for each and every select-option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sarala.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Feb 2007 05:26:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-22T05:26:24Z</dc:date>
    <item>
      <title>Select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1912698#M379823</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;I have 2 select-options in my selection-screen.i have to vlaidate if user entered correct value or not for low and high values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plese give me the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thakns&amp;amp;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ramu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 04:28:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1912698#M379823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T04:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1912699#M379824</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;why dont u try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options: s_a for csks-kostl .&lt;/P&gt;&lt;P&gt;at selection-screen on s_a .&lt;/P&gt;&lt;P&gt;if s_[]is initial .&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;error message&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;else .&lt;/P&gt;&lt;P&gt;if s_a-low is initial and s_a-high is initial .&lt;/P&gt;&lt;P&gt;*error message&lt;/P&gt;&lt;P&gt;endif .&lt;/P&gt;&lt;P&gt;endif .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards useful points....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 04:32:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1912699#M379824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T04:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1912700#M379825</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;Make sure that u are validating against the header table.&lt;/P&gt;&lt;P&gt;say eg if u wnat t validate matnr in marc, then do as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT-OPTIONS: s_matnr FOR  marc-matnr.                  "Material No
AT SELECTION-SCREEN.

*Validate material no details
  PERFORM validate_matno.
FORM validate_matno.
DATA: v_matnr LIEK mara-matnr.
IF NOT s_matnr[] IS INITIAL.
LOOP AT s_matnr.
  SELECT SINGLE matnr INTO v_matnr
         FROM &amp;lt;b&amp;gt;mara&amp;lt;/b&amp;gt;
         WHERE matnr = s_matnr-low.

  IF sy-subrc NE 0.
    MESSAGE i128.
    LEAVE LIST-PROCESSING.
  ENDIF.
ENDLOOP.
ENDIF.
ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Dont select from marc.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Hope this is clear.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 04:33:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1912700#M379825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T04:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1912701#M379826</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;write the code in AT selection-screen to validate the same &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;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 04:34:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1912701#M379826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T04:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1912702#M379827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select-options : s1 for mara-matnr,&lt;/P&gt;&lt;P&gt;                        s2 for mard-lgort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-scree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if s1-low ne '1000'.&lt;/P&gt;&lt;P&gt;message 'error' type 'E'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if s1-high ne '1003'.&lt;/P&gt;&lt;P&gt;message 'error' type 'E'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like that for s2-low and s2-high...also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 04:34:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1912702#M379827</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T04:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1912703#M379828</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;for example you  have s_werks as selectoption.&lt;/P&gt;&lt;P&gt;we need to validate this from checktable,because check table contain all possible values of that perticular field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT WERKS&lt;/P&gt;&lt;P&gt;    FROM TOO1W&lt;/P&gt;&lt;P&gt;INTO LV_WERKS&lt;/P&gt;&lt;P&gt;WHERE  WERKS IN S_WERKS_LOW.&lt;/P&gt;&lt;P&gt;IF LV_WERKS IS INITIAL.&lt;/P&gt;&lt;P&gt;WRITE: 'ENTER VALID PLANT'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For validating high value do as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select werks&lt;/P&gt;&lt;P&gt;  from t001w&lt;/P&gt;&lt;P&gt;into lv_werks&lt;/P&gt;&lt;P&gt;where werks in s_werks_high.&lt;/P&gt;&lt;P&gt; if l_werks is initial.&lt;/P&gt;&lt;P&gt;write:'enter valid plant'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sarala.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Sarala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 04:35:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1912703#M379828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T04:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1912704#M379829</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;at selection-screen output.&lt;/P&gt;&lt;P&gt;if not s_1[] is initial.&lt;/P&gt;&lt;P&gt;loop at s_1.&lt;/P&gt;&lt;P&gt;if s_1-low = value1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;if s_1-high = value2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 04:43:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1912704#M379829</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2007-02-22T04:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1912705#M379830</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;here is the code for one of the select-options field..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options:s_phase  for QMEL-PHASE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON s_phase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM validate_phase_low USING s_phase-low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM validate_phase_high USING s_phase-high.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*************************************************************&lt;/P&gt;&lt;P&gt;FORM validate_phase_low USING    S_PHASE_LOW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF NOT s_phase_low IS INITIAL.&lt;/P&gt;&lt;P&gt;    SELECT phase&lt;/P&gt;&lt;P&gt;           FROM qmel INTO s_phase_low&lt;/P&gt;&lt;P&gt;               WHERE phase EQ s_phase_low.&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;    ENDSELECT.&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;      MESSAGE e897(qm) WITH text-002.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " validate_phase_low&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM validate_phase_high USING  S_PHASE_HIGH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF NOT s_phase_high IS INITIAL.&lt;/P&gt;&lt;P&gt;    SELECT phase&lt;/P&gt;&lt;P&gt;           FROM qmel INTO s_phase_high&lt;/P&gt;&lt;P&gt;               WHERE phase EQ s_phase_high.&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;    ENDSELECT.&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;      MESSAGE e897(qm) WITH text-002.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " validate_phase_high&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Manjunath MS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 04:43:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1912705#M379830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T04:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1912706#M379831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Am Having 2 select-options.i need to validate 2.&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;Ramu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 05:15:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1912706#M379831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T05:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1912707#M379832</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 given u the code for one say one is MaTNR and the other is userid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same way &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN ON s_user.
Perform validation_user&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know the two fields and table names.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 05:17:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1912707#M379832</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T05:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1912708#M379833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ramu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;say you have the below two Select-options:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_matnr for mara-matnr,&lt;/P&gt;&lt;P&gt;s_werks for marc-werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write check as below:&lt;/P&gt;&lt;P&gt;DATA: p_matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;p_werks like marc-werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;IF NOT s_matnr[] IS INITIAL.&lt;/P&gt;&lt;P&gt;select single matnr into p_matnr from mara where matnr in s_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;*ERROR MESSAGE&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT s_werks[] IS INITIAL.&lt;/P&gt;&lt;P&gt;select single werks into p_werks from too1w where werks in s_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;*ERROR MESSAGE&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 05:22:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1912708#M379833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T05:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1912709#M379834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Repeate the same code for second select-option field also.&lt;/P&gt;&lt;P&gt;its same for each and every select-option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sarala.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 05:26:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1912709#M379834</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T05:26:24Z</dc:date>
    </item>
  </channel>
</rss>

