<?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-option field leveln validation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-field-leveln-validation/m-p/1427152#M204689</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt; you can validate it as follows for for the whole range of values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON C_CTLPC.&lt;/P&gt;&lt;P&gt;  SELECT CTLPC FROM (VALUE TABLE OF CTLPC) &lt;/P&gt;&lt;P&gt;                       WHERE CTLPC IN C_CTLPC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Jul 2006 09:00:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-19T09:00:17Z</dc:date>
    <item>
      <title>select-option field leveln validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-field-leveln-validation/m-p/1427146#M204683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please tell me how to do a select-option field leveln validation, i know how to do incase the filed is defined as parameter. here my field is defined as select-option.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: C_CTLPC FOR KNKK-CTLPC.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here i need to check for both low, high intervals?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help me, thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;priya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 08:51:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-field-leveln-validation/m-p/1427146#M204683</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T08:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: select-option field leveln validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-field-leveln-validation/m-p/1427147#M204684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi priya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. one way is u can do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If c_ctlpc-low = 'xyz'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If c_ctlpc-high = 'xyz'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 08:52:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-field-leveln-validation/m-p/1427147#M204684</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T08:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: select-option field leveln validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-field-leveln-validation/m-p/1427148#M204685</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;try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; at selection-screen on fld_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if fld_name-low is initial.&lt;/P&gt;&lt;P&gt;  message.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if fld_name-high is initial.&lt;/P&gt;&lt;P&gt;  message.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;reward if useful..&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Madan..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 08:56:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-field-leveln-validation/m-p/1427148#M204685</guid>
      <dc:creator>madan_ullasa</dc:creator>
      <dc:date>2006-07-19T08:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: select-option field leveln validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-field-leveln-validation/m-p/1427149#M204686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select option is an internal table of four fields-&lt;/P&gt;&lt;P&gt;SIGN&lt;/P&gt;&lt;P&gt;OPTION&lt;/P&gt;&lt;P&gt;LOW&lt;/P&gt;&lt;P&gt;HIGH&lt;/P&gt;&lt;P&gt;So u can use these fields as C_CTLPC-LOW and C_CTLPC-HIGH using at selection screen event...&lt;/P&gt;&lt;P&gt;At selection-screen on C_CTLPC-low.&lt;/P&gt;&lt;P&gt;and do the validation. U can see these fields even in debugging mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps u.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Seema.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 08:57:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-field-leveln-validation/m-p/1427149#M204686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T08:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: select-option field leveln validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-field-leveln-validation/m-p/1427150#M204687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At selection-screen on C_CTLPC-low.&lt;/P&gt;&lt;P&gt;if not C_CTLPC-LOW is initial.&lt;/P&gt;&lt;P&gt;select singl * from KNKK where CTLPC = C_CTLPC -LOW.&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;&lt;/P&gt;&lt;P&gt;At selection-screen on C_CTLPC-HIGH.&lt;/P&gt;&lt;P&gt;if not C_CTLPC-HIGH is initial.&lt;/P&gt;&lt;P&gt;select singl * from T691A where CTLPC = C_CTLPC -HIGH.&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;&lt;/P&gt;&lt;P&gt;If useful reward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 08:57:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-field-leveln-validation/m-p/1427150#M204687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T08:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: select-option field leveln validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-field-leveln-validation/m-p/1427151#M204688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt; you can do like this&lt;/P&gt;&lt;P&gt; AT SELECTION-SCREEN on c_CTLPC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        IF c_Ctplc-Low &lt;/P&gt;&lt;P&gt;          Conditions&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;              IF  C_ctplc-high.&lt;/P&gt;&lt;P&gt;                   coniditons&lt;/P&gt;&lt;P&gt;                   endif.&lt;/P&gt;&lt;P&gt;Reward if helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 08:59:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-field-leveln-validation/m-p/1427151#M204688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T08:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: select-option field leveln validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-field-leveln-validation/m-p/1427152#M204689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt; you can validate it as follows for for the whole range of values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON C_CTLPC.&lt;/P&gt;&lt;P&gt;  SELECT CTLPC FROM (VALUE TABLE OF CTLPC) &lt;/P&gt;&lt;P&gt;                       WHERE CTLPC IN C_CTLPC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 09:00:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-field-leveln-validation/m-p/1427152#M204689</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T09:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: select-option field leveln validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-field-leveln-validation/m-p/1427153#M204690</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;Thanks for your reply , my req is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options C_CTLPC FOR KNKK-CTLPC. &lt;/P&gt;&lt;P&gt;here the field may contain values from '01' to '11'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but incase the user mistaken passed the vlues '1' to '11'&lt;/P&gt;&lt;P&gt;in this case report displaying the wrong data, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i need to validate that filed should contatin '01' not '1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so plese tell me more clearly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;priya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 09:00:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-field-leveln-validation/m-p/1427153#M204690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T09:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: select-option field leveln validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-field-leveln-validation/m-p/1427154#M204691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. so i need to validate that filed should contatin '01' not '1'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can validate like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Data : myval like knkk-ctlpc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   myval = '01'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   if myval in c_ctlpc.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   *----- code for error message&lt;/P&gt;&lt;P&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 09:02:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-field-leveln-validation/m-p/1427154#M204691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T09:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: select-option field leveln validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-field-leveln-validation/m-p/1427155#M204692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u can try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;length = strlen( c_ctlpc-low ).
if length Ne 2.
  error meassage.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Chandrasekhar Jagarlamudi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 09:03:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-field-leveln-validation/m-p/1427155#M204692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T09:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: select-option field leveln validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-field-leveln-validation/m-p/1427156#M204693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for select-options,&lt;/P&gt;&lt;P&gt; VALIDATIONS :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IF C_CTLPC[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;*--Validations,only if select-options is NOT initial.&lt;/P&gt;&lt;P&gt;  SELECT CTLPC &lt;/P&gt;&lt;P&gt;         INTO V_CTLPC&lt;/P&gt;&lt;P&gt;         FROM KNKK&lt;/P&gt;&lt;P&gt;         UP T0 1 ROWS&lt;/P&gt;&lt;P&gt;         WHERE CTLPC IN C_CTLPC.&lt;/P&gt;&lt;P&gt;   IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;*--No valid value given by user for this field,display err&lt;/P&gt;&lt;P&gt;     MESSAGE E000 WITH 'Invalid CTLPC values'.&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;here the intention is, to check whether user entered atleast 1 valid value for that field or not, if we found atleast 1 valid entry,we can proceed further, else we will display error message,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 09:06:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-field-leveln-validation/m-p/1427156#M204693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T09:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: select-option field leveln validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-field-leveln-validation/m-p/1427157#M204694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Best option is use CONVERSION_EXIT_ALPHA_INPUT,&lt;/P&gt;&lt;P&gt; this will convert 1 to 01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select-options C_CTLPC FOR KNKK-CTLPC. 
INITIALIZATION.

loop at c_ctlpc.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
  EXPORTING
    INPUT         = C_CTLPC-LOW
 IMPORTING
   OUTPUT        = C_CTLPC-LOW.
          

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
  EXPORTING
    INPUT         = C_CTLPC-HIGH
 IMPORTING
   OUTPUT        = C_CTLPC-HIGH.

modify c_ctlpc index sy-tabix.
clear c_ctlpc.
          
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 09:09:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-field-leveln-validation/m-p/1427157#M204694</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T09:09:05Z</dc:date>
    </item>
  </channel>
</rss>

