<?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 Validation in selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-in-selection-screen/m-p/6623186#M1440715</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;HR originaltext="----------------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SELECT-OPTIONS AND PARAMETERS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------" /&gt;&lt;P&gt;selection-screen begin of block a with frame title text-001.&lt;/P&gt;&lt;P&gt;selection-screen begin of line.&lt;/P&gt;&lt;P&gt;selection-screen comment 1(20) for field p_bl.&lt;/P&gt;&lt;P&gt;parameters : p_bl    as   checkbox .&lt;/P&gt;&lt;P&gt;selection-screen end of line.&lt;/P&gt;&lt;P&gt;selection-screen begin of line.&lt;/P&gt;&lt;P&gt;selection-screen comment 1(20) for field p_di.&lt;/P&gt;&lt;P&gt;parameters : p_di    as   checkbox .&lt;/P&gt;&lt;P&gt;selection-screen end of line.&lt;/P&gt;&lt;P&gt;selection-screen begin of line.&lt;/P&gt;&lt;P&gt;selection-screen comment 1(20) for field p_pl.&lt;/P&gt;&lt;P&gt;parameters : p_pl    as   checkbox .&lt;/P&gt;&lt;P&gt;selection-screen comment 25(20) for field p_plout.&lt;/P&gt;&lt;P&gt;parameters : p_plout like nast-kschl.&lt;/P&gt;&lt;P&gt;selection-screen end of line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of line.&lt;/P&gt;&lt;P&gt;selection-screen comment 1(20) for field p_in.&lt;/P&gt;&lt;P&gt;parameters : p_in    as   checkbox .&lt;/P&gt;&lt;P&gt;selection-screen comment 25(20) for field p_inout.&lt;/P&gt;&lt;P&gt;parameters : p_inout like nast-kschl.&lt;/P&gt;&lt;P&gt;selection-screen end of line.&lt;/P&gt;&lt;P&gt;selection-screen end of block a.&lt;/P&gt;&lt;P&gt;selection-screen begin of block c with frame title text-003.&lt;/P&gt;&lt;P&gt;parameters: pa_email no-display ,&lt;/P&gt;&lt;P&gt;            pa_downl no-display.&lt;/P&gt;&lt;P&gt;selection-screen end of block c.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;START-OF-SELECTION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------" /&gt;&lt;P&gt; if p_bl eq c_x.&lt;/P&gt;&lt;P&gt;    perform download_bl.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if p_di eq c_x.&lt;/P&gt;&lt;P&gt;    perform download_di.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If Delivery Order is checked&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  if p_pl eq c_x.&lt;/P&gt;&lt;P&gt;    perform download_packlist.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If Invoice , Based On The OutPut Type is checked&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  if p_in eq c_x .&lt;/P&gt;&lt;P&gt;    perform download_invoice.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I using the above program.&lt;/P&gt;&lt;P&gt;My question is i want validation in selection screen  for below stmts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                  1) atleast 1 of the check box should be selected &lt;/P&gt;&lt;P&gt;                  2) If packing list is selected, then the message type Must be selected. (can not allow blank) &lt;/P&gt;&lt;P&gt;                 3) If invoice list is selected, then the message type must be selected &lt;/P&gt;&lt;P&gt;                 4) Validate the message type field entered. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Feb 2010 13:46:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-03T13:46:03Z</dc:date>
    <item>
      <title>Validation in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-in-selection-screen/m-p/6623186#M1440715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;HR originaltext="----------------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SELECT-OPTIONS AND PARAMETERS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------" /&gt;&lt;P&gt;selection-screen begin of block a with frame title text-001.&lt;/P&gt;&lt;P&gt;selection-screen begin of line.&lt;/P&gt;&lt;P&gt;selection-screen comment 1(20) for field p_bl.&lt;/P&gt;&lt;P&gt;parameters : p_bl    as   checkbox .&lt;/P&gt;&lt;P&gt;selection-screen end of line.&lt;/P&gt;&lt;P&gt;selection-screen begin of line.&lt;/P&gt;&lt;P&gt;selection-screen comment 1(20) for field p_di.&lt;/P&gt;&lt;P&gt;parameters : p_di    as   checkbox .&lt;/P&gt;&lt;P&gt;selection-screen end of line.&lt;/P&gt;&lt;P&gt;selection-screen begin of line.&lt;/P&gt;&lt;P&gt;selection-screen comment 1(20) for field p_pl.&lt;/P&gt;&lt;P&gt;parameters : p_pl    as   checkbox .&lt;/P&gt;&lt;P&gt;selection-screen comment 25(20) for field p_plout.&lt;/P&gt;&lt;P&gt;parameters : p_plout like nast-kschl.&lt;/P&gt;&lt;P&gt;selection-screen end of line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of line.&lt;/P&gt;&lt;P&gt;selection-screen comment 1(20) for field p_in.&lt;/P&gt;&lt;P&gt;parameters : p_in    as   checkbox .&lt;/P&gt;&lt;P&gt;selection-screen comment 25(20) for field p_inout.&lt;/P&gt;&lt;P&gt;parameters : p_inout like nast-kschl.&lt;/P&gt;&lt;P&gt;selection-screen end of line.&lt;/P&gt;&lt;P&gt;selection-screen end of block a.&lt;/P&gt;&lt;P&gt;selection-screen begin of block c with frame title text-003.&lt;/P&gt;&lt;P&gt;parameters: pa_email no-display ,&lt;/P&gt;&lt;P&gt;            pa_downl no-display.&lt;/P&gt;&lt;P&gt;selection-screen end of block c.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;START-OF-SELECTION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------" /&gt;&lt;P&gt; if p_bl eq c_x.&lt;/P&gt;&lt;P&gt;    perform download_bl.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if p_di eq c_x.&lt;/P&gt;&lt;P&gt;    perform download_di.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If Delivery Order is checked&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  if p_pl eq c_x.&lt;/P&gt;&lt;P&gt;    perform download_packlist.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If Invoice , Based On The OutPut Type is checked&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  if p_in eq c_x .&lt;/P&gt;&lt;P&gt;    perform download_invoice.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I using the above program.&lt;/P&gt;&lt;P&gt;My question is i want validation in selection screen  for below stmts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                  1) atleast 1 of the check box should be selected &lt;/P&gt;&lt;P&gt;                  2) If packing list is selected, then the message type Must be selected. (can not allow blank) &lt;/P&gt;&lt;P&gt;                 3) If invoice list is selected, then the message type must be selected &lt;/P&gt;&lt;P&gt;                 4) Validate the message type field entered. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2010 13:46:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-in-selection-screen/m-p/6623186#M1440715</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-03T13:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Validation in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-in-selection-screen/m-p/6623187#M1440716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sen 001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It depends how you want to validate. If you want to validate immediately after the user put a check box or enter value then you shoul use &amp;lt;AT SELECTION SCREEN&amp;gt; event and &amp;lt;USER-COMMAND&amp;gt; following your parameters (or select-options) in your selection screen. You can also validate when user presses F8, where you should put your validation inside &amp;lt;START-OF-SELECTION&amp;gt; event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example to immediate validate after check box entered&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 
SELECTION-SCREEN: BEGIN OF BLOCK b02 WITH FRAME.
PARAMETERS: p_grp RADIOBUTTON GROUP gr1 DEFAULT 'X' USER-COMMAND zcomm,
            p_dst RADIOBUTTON GROUP gr1.
SELECTION-SCREEN: END   OF BLOCK b02.

AT SELECTION-SCREEN.
  IF sy-ucomm(6) = 'ZCOMM'.
    PERFORM xxx.
  ELSE.
    PERFORM yyy.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2010 15:13:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-in-selection-screen/m-p/6623187#M1440716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-03T15:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Validation in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-in-selection-screen/m-p/6623188#M1440717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to use AT SELECTION-SCREEN OUTPUT event.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2010 15:25:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-in-selection-screen/m-p/6623188#M1440717</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-03T15:25:36Z</dc:date>
    </item>
  </channel>
</rss>

