<?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: about selection screen validation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-selection-screen-validation/m-p/2302150#M503226</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there are diffrent  validation,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to get f4 value &lt;/P&gt;&lt;P&gt;then you need to write :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to validate selection-screen values..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on p_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to get dynamic validation like set up password,invisible,disable..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use at selection-screen output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 May 2007 04:33:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-22T04:33:19Z</dc:date>
    <item>
      <title>about selection screen validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-selection-screen-validation/m-p/2302147#M503223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guru&lt;/P&gt;&lt;P&gt;please tell me about selection screen validation&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;subhasis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 04:24:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-selection-screen-validation/m-p/2302147#M503223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T04:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: about selection screen validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-selection-screen-validation/m-p/2302148#M503224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Subhasis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selection Screen is validated at the event&lt;/P&gt;&lt;P&gt;AT SELECTION SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this event you check the input parameters with the values in DB and if they are not matching you can give an error message to the error of the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 04:28:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-selection-screen-validation/m-p/2302148#M503224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T04:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: about selection screen validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-selection-screen-validation/m-p/2302149#M503225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Based on the input parameter validations can be takes place. Let us take some example u take company code on ur selection screen, then user should enter that company code then instead of using obligatory u can do some validataion like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF P_BUKRS IS INITIAL.&lt;/P&gt;&lt;P&gt;MESSAGE E001(ZFE) WITH 'PLEASE ENTER COMPANY CODE'.&lt;/P&gt;&lt;P&gt;LEAVE TO SCREEN 1000.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;this is the validation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you. Reply for queries, shall post the updates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.  &lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 04:30:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-selection-screen-validation/m-p/2302149#M503225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T04:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: about selection screen validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-selection-screen-validation/m-p/2302150#M503226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there are diffrent  validation,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to get f4 value &lt;/P&gt;&lt;P&gt;then you need to write :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to validate selection-screen values..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on p_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to get dynamic validation like set up password,invisible,disable..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use at selection-screen output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 04:33:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-selection-screen-validation/m-p/2302150#M503226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T04:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: about selection screen validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-selection-screen-validation/m-p/2302151#M503227</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;Chk this sample progra. here we are checking the check box is ticked or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report zchk.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;tables: sscrfields.
 
PARAMETERS: p_hold AS CHECKBOX DEFAULT 'X' USER-COMMAND hold.
 
at selection-screen.
 
  PERFORM sscr_user_commands.
*---------------------------------------------------------------------*
*       FORM sscr_user_commands                                       *
*---------------------------------------------------------------------*
FORM sscr_user_commands.
  CASE sscrfields-ucomm.
    WHEN 'HOLD'.            " Make this uppercase.
 
      break-point.
 
  ENDCASE.
ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Reshma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 04:33:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-selection-screen-validation/m-p/2302151#M503227</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T04:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: about selection screen validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-selection-screen-validation/m-p/2302152#M503228</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 need to validata a material number s_matnr.. which is your sel;ect option in selection screen,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;At selection-screen on s_matnr.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;data lv_matnr type matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single matnr from mara&lt;/P&gt;&lt;P&gt;       into lv_matnr&lt;/P&gt;&lt;P&gt;where matnr in s_matnr. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;since matnr is the only primary key in mara we are using select single..&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;*if for some other field which is a part of primary key in that table then use select upto 1 rows..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;Message i001."enter valid material number..&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;At selection-screen on s_matnr.&amp;lt;/b&amp;gt; , if you use this and if error occured for invalid material number then all the other parametersa in selection screen will be disabled point to only s_matnr enable in your selection screen..&lt;/P&gt;&lt;P&gt;if you use just At selection-screen then the cursor will not point to matnr but only to the first parameter in the selection screen..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope you understood&lt;/P&gt;&lt;P&gt;rewards if useful,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;nazeer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 04:44:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-selection-screen-validation/m-p/2302152#M503228</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T04:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: about selection screen validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-selection-screen-validation/m-p/2302153#M503229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;at selection-scren is basically used to check the input s in the selection screen via a logic, if the inputs are not according to that logic we will raise an error message through which the system will take back the user to the selection screen.&lt;/P&gt;&lt;P&gt;there are some more at selection-screen&lt;/P&gt;&lt;P&gt;like &lt;/P&gt;&lt;P&gt;At selection-screen on field - If ilogic is related to only a particular field&lt;/P&gt;&lt;P&gt;at selection-screen on value help  - for writing F4  logic&lt;/P&gt;&lt;P&gt;at selection-screen on  help  - for writing F1  &lt;/P&gt;&lt;P&gt;etc.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go through the below underlined programs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selection Screen Events - &amp;lt;u&amp;gt;demo_selection_screen_events&amp;lt;/u&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PBO of selection Screen - &amp;lt;u&amp;gt;demo_at_selection_screen_pbo&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will solve ur problem..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;u&amp;gt;Dont forget to reward all the useful replies&amp;lt;/u&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 04:46:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-selection-screen-validation/m-p/2302153#M503229</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T04:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: about selection screen validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-selection-screen-validation/m-p/2302154#M503230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi subhasis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these two events can help you for the selection screen validations&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at slection-screen on field,&lt;/P&gt;&lt;P&gt;and at slection-screen .&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;seshu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 05:20:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-selection-screen-validation/m-p/2302154#M503230</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T05:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: about selection screen validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-selection-screen-validation/m-p/2302155#M503231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;     selection-screen validation is nothing but getting the proper values as input at selction screen level.means checking the values which you are passing at selection screen values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for this u can use AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose u need u validate MATNR on u r selection screen.in this case we can validate the MATNR is there in the table MVKE or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can write  like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options: s_matnr for mvke-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : v_matnr type mvke-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single matnr &lt;/P&gt;&lt;P&gt;                   from mvke&lt;/P&gt;&lt;P&gt;                   into v_matnr&lt;/P&gt;&lt;P&gt;                   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;     message e001.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;clear v_matnr.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if it is useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Madhukar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 15:04:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-selection-screen-validation/m-p/2302155#M503231</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T15:04:14Z</dc:date>
    </item>
  </channel>
</rss>

