<?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: Regarding Selection-Screen Validations in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen-validations/m-p/1532296#M243148</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prasad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes you can do that.., you have to remove the obligatory option, and need to check the intial condition in at selection screen event.only when you press F8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just check the sample code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ztest.

TABLES: mara,vbak.

PARAMETERS: r_m  RADIOBUTTON GROUP g1 DEFAULT 'X' USER-COMMAND ABC,
            r_s  RADIOBUTTON GROUP g1.
parameters: p_matnr like mara-matnr,
                p_vbeln like vbak-vbeln.


AT SELECTION-SCREEN OUTPUT.

  IF r_m = 'X'.
    LOOP AT SCREEN.
      IF screen-name = 'P_VBELN'.
        screen-input = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.

  ELSE.

    LOOP AT SCREEN.
      IF screen-name = 'P_MATNR'.
        screen-input = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.

AT SELECTION-SCREEN.

&amp;lt;b&amp;gt;  IF sy-ucomm = 'ONLI'.&amp;lt;/b&amp;gt;
    IF r_m = 'X'.
      IF P_matnr IS INITIAL.
        MESSAGE e000(zz) WITH 'error'.
      ENDIF.
    ENDIF.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Aug 2006 09:26:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-29T09:26:01Z</dc:date>
    <item>
      <title>Regarding Selection-Screen Validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen-validations/m-p/1532292#M243144</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 a issue with selection-screen validations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 radio-buttons placed initially in my screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now based on Radio button selected other screen fields will vary. In this some mandatory fields are also there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when i am moving shifting from 1 radio button to 2nd radio button sel-screen is prompting for filling of manadatory fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to input some dummy values and get into 2nd radio button selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way we can discard mandatory field prompting for radio buttons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody solve this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Reagards,&lt;/P&gt;&lt;P&gt;Prasad.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2006 08:59:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen-validations/m-p/1532292#M243144</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-29T08:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Selection-Screen Validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen-validations/m-p/1532293#M243145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U can use the AT SELECTION-SCREEN event to do the necessary validation and checks..so in your case if a particular is mandatory for rd1 and not for rd2..in that case please take out the obligatory clause from the parameter and do the validation in the above event..basically if rd1 is selected and the particular parameter is blank ..display an error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2006 09:02:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen-validations/m-p/1532293#M243145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-29T09:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Selection-Screen Validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen-validations/m-p/1532294#M243146</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;  This can be achieved by making the fields mandatory thro' programmatically, check for the value when the user presses 'execute' button and if the value is blank you can throw the error message that the value needs to be entered in order to proceed, this would resolve the issue related with mandatory fields,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2006 09:05:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen-validations/m-p/1532294#M243146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-29T09:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Selection-Screen Validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen-validations/m-p/1532295#M243147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, &lt;/P&gt;&lt;P&gt;Alternatively what you can do is,put the validations in the beginning of START-OF-SELECTION Event. this way you can come out of this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt; perform validate_sel_screen.&lt;/P&gt;&lt;P&gt;*--then proceed further with processing.&lt;/P&gt;&lt;P&gt; perform get_data.&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;srikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2006 09:17:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen-validations/m-p/1532295#M243147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-29T09:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Selection-Screen Validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen-validations/m-p/1532296#M243148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prasad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes you can do that.., you have to remove the obligatory option, and need to check the intial condition in at selection screen event.only when you press F8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just check the sample code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ztest.

TABLES: mara,vbak.

PARAMETERS: r_m  RADIOBUTTON GROUP g1 DEFAULT 'X' USER-COMMAND ABC,
            r_s  RADIOBUTTON GROUP g1.
parameters: p_matnr like mara-matnr,
                p_vbeln like vbak-vbeln.


AT SELECTION-SCREEN OUTPUT.

  IF r_m = 'X'.
    LOOP AT SCREEN.
      IF screen-name = 'P_VBELN'.
        screen-input = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.

  ELSE.

    LOOP AT SCREEN.
      IF screen-name = 'P_MATNR'.
        screen-input = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.

AT SELECTION-SCREEN.

&amp;lt;b&amp;gt;  IF sy-ucomm = 'ONLI'.&amp;lt;/b&amp;gt;
    IF r_m = 'X'.
      IF P_matnr IS INITIAL.
        MESSAGE e000(zz) WITH 'error'.
      ENDIF.
    ENDIF.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2006 09:26:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen-validations/m-p/1532296#M243148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-29T09:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Selection-Screen Validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen-validations/m-p/1532297#M243149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think this coding is help u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  YREPVALIDATION                          .&lt;/P&gt;&lt;P&gt;TABLES: KNA1,VBAK.&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF ITAB OCCURS 0,&lt;/P&gt;&lt;P&gt;       VBELN LIKE VBAK-VBELN,&lt;/P&gt;&lt;P&gt;       ERDAT LIKE VBAK-ERDAT,&lt;/P&gt;&lt;P&gt;       NETWR LIKE VBAK-NETWR,&lt;/P&gt;&lt;P&gt;       END OF ITAB.&lt;/P&gt;&lt;P&gt; DATA : VAL TYPE I VALUE 1.&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; PARAMETERS : CUST LIKE KNA1-KUNNR.&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; PARAMETERS : SALES LIKE VBAK-VKORG MODIF ID RAF,&lt;/P&gt;&lt;P&gt;              DCH   LIKE VBAK-VTWEG MODIF ID RAF.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK B2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt; LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt; IF SCREEN-GROUP1 = 'RAF'.&lt;/P&gt;&lt;P&gt;   IF VAL = 1.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SCREEN-INPUT = 0.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SCREEN-INVISIBLE = 1.&lt;/P&gt;&lt;P&gt; MODIFY SCREEN.&lt;/P&gt;&lt;P&gt; ELSE.&lt;/P&gt;&lt;P&gt;  VAL = 2.&lt;/P&gt;&lt;P&gt;*SCREEN-INPUT = 1.&lt;/P&gt;&lt;P&gt;SCREEN-INVISIBLE = 0.&lt;/P&gt;&lt;P&gt; MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;P.Naganjana Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2007 09:16:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen-validations/m-p/1532297#M243149</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-06T09:16:16Z</dc:date>
    </item>
  </channel>
</rss>

