<?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: Problem in selection screen validation. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-selection-screen-validation/m-p/4865186#M1137541</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pls. replace the AT SELECTION-SCREEN OUTPUT event with this one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN OUTPUT.

  LOOP AT SCREEN.
    CASE 'X'.
      WHEN p_r1.
        CASE screen-group1.
          WHEN 'DLY'.
            screen-active = '1'.
          WHEN 'MAT'.
            screen-active = '0'.
        ENDCASE.
      WHEN p_r2.
        CASE screen-group1.
          WHEN 'DLY'.
            screen-active = '0'.
          WHEN 'MAT'.
            screen-active = '1'.
        ENDCASE.
    ENDCASE.
    MODIFY SCREEN.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Dec 2008 12:34:26 GMT</pubDate>
    <dc:creator>JozsefSzikszai</dc:creator>
    <dc:date>2008-12-04T12:34:26Z</dc:date>
    <item>
      <title>Problem in selection screen validation.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-selection-screen-validation/m-p/4865184#M1137539</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 am having the following in the selection screen:&lt;/P&gt;&lt;P&gt;PARAMETERS : p_r1 RADIOBUTTON GROUP grp DEFAULT 'X' USER-COMMAND dlvy,&lt;/P&gt;&lt;P&gt;             p_r2 RADIOBUTTON GROUP grp .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 with frame title text-001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_vbeln FOR lips-vbeln             MODIF ID dly.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_lfart FOR likp-lfart  OBLIGATORY MODIF ID dly.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_vstel FOR likp-vstel             MODIF ID dly.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_matnr FOR lips-matnr             MODIF ID dly.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_wadat FOR likp-wadat  OBLIGATORY MODIF ID dly.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_wbsta FOR vbup-wbsta             MODIF ID dly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b2 with frame title text-002.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s1_matnr FOR lips-matnr MODIF ID mat.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_extwg  FOR mara-extwg MODIF ID mat.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_werks  FOR marc-werks MODIF ID mat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I choose Radio Button 1, only option 1 should be triggered,&lt;/P&gt;&lt;P&gt;If I choose Radio Button 2, only option 2 should be triggered,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  IF p_r1 = 'X'.&lt;/P&gt;&lt;P&gt;    blk_hide = 'MAT'.&lt;/P&gt;&lt;P&gt;    blk_show = 'DLY'.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    blk_hide = 'DLY'.&lt;/P&gt;&lt;P&gt;    blk_show = 'MAT'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;    IF screen-group1 = blk_hide.&lt;/P&gt;&lt;P&gt;      screen-active = 0.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      IF screen-group1 = blk_show.&lt;/P&gt;&lt;P&gt;        screen-active = 1.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I need to validate the selection Screen, I am facing issue in doing selection screen validation:&lt;/P&gt;&lt;P&gt;Can any one help me in how to go about this?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Debrup.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2008 12:29:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-selection-screen-validation/m-p/4865184#M1137539</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-04T12:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in selection screen validation.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-selection-screen-validation/m-p/4865185#M1137540</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;How you want to validate u r selection screen field .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you explain clearly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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 Dec 2008 12:32:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-selection-screen-validation/m-p/4865185#M1137540</guid>
      <dc:creator>tarangini_katta</dc:creator>
      <dc:date>2008-12-04T12:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in selection screen validation.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-selection-screen-validation/m-p/4865186#M1137541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pls. replace the AT SELECTION-SCREEN OUTPUT event with this one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN OUTPUT.

  LOOP AT SCREEN.
    CASE 'X'.
      WHEN p_r1.
        CASE screen-group1.
          WHEN 'DLY'.
            screen-active = '1'.
          WHEN 'MAT'.
            screen-active = '0'.
        ENDCASE.
      WHEN p_r2.
        CASE screen-group1.
          WHEN 'DLY'.
            screen-active = '0'.
          WHEN 'MAT'.
            screen-active = '1'.
        ENDCASE.
    ENDCASE.
    MODIFY SCREEN.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2008 12:34:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-selection-screen-validation/m-p/4865186#M1137541</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-12-04T12:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in selection screen validation.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-selection-screen-validation/m-p/4865187#M1137542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In case I am giving incorrect delivery number or incorrect date it should flash out an arror message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Debrup.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2008 12:35:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-selection-screen-validation/m-p/4865187#M1137542</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-04T12:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in selection screen validation.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-selection-screen-validation/m-p/4865188#M1137543</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 u have to give system date iin the field u r giving wrong date then u want to display error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At selection screen on VAlue-Request for p_field---whcih field u want to validate..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If P_field NE SY-datum.&lt;/P&gt;&lt;P&gt;message e000.&lt;/P&gt;&lt;P&gt;endif.&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 Dec 2008 12:42:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-selection-screen-validation/m-p/4865188#M1137543</guid>
      <dc:creator>tarangini_katta</dc:creator>
      <dc:date>2008-12-04T12:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in selection screen validation.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-selection-screen-validation/m-p/4865189#M1137544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry, I though you have problems with the radiobutton switches...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delivery number: you have to do a select count, if the sy-subrc is not null you can issue an error message:&lt;/P&gt;&lt;P&gt;SELECT COUNT( * ) &lt;/P&gt;&lt;P&gt;FROM ...&lt;/P&gt;&lt;P&gt;WHERE ... "comparison with selection screen field&lt;/P&gt;&lt;P&gt;IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;==&amp;gt; issue error message&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;date: if the date is correct (from calendar point of view), that will be checked automatically by the system. if you want something more you have to code on your own.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2008 13:05:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-selection-screen-validation/m-p/4865189#M1137544</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-12-04T13:05:38Z</dc:date>
    </item>
  </channel>
</rss>

