<?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: Selection Screen modification in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-modification/m-p/7675564#M1575499</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jaspalkumar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should make s_date not obligatory, but perform the check in an 'AT SELECTION-SCREEN' event.&lt;/P&gt;&lt;P&gt;Something like;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN on s_date.&lt;/P&gt;&lt;P&gt;If r2 is intial and s_date[] is initial.&lt;/P&gt;&lt;P&gt;  message e001(00) with 'Date is obligatory'(e01).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Feb 2011 08:24:43 GMT</pubDate>
    <dc:creator>gjl_arendsen</dc:creator>
    <dc:date>2011-02-10T08:24:43Z</dc:date>
    <item>
      <title>Selection Screen modification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-modification/m-p/7675560#M1575495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In following code, i want to modify the screen input according to the radiobutton selected.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECTION-SCREEN : BEGIN OF BLOCK super WITH FRAME.

PARAMETERS : r1 TYPE c RADIOBUTTON GROUP g1 DEFAULT 'X' USER-COMMAND uc.


SELECTION-SCREEN : BEGIN OF BLOCK renewal WITH FRAME.
  SELECT-OPTIONS : s_date FOR fplt-fkdat OBLIGATORY,      " End date in billing plan
                   s_auart FOR vbak-auart,                " Order Type
                   s_spart FOR vbak-spart,                " Division
                   s_vtweg FOR vbak-vtweg.                " Distributional Channel
SELECTION-SCREEN : END OF BLOCK renewal.

PARAMETERS : r2 TYPE c RADIOBUTTON GROUP g1.

SELECTION-SCREEN : BEGIN OF BLOCK deactivation WITH FRAME TITLE text-002.

  SELECT-OPTIONS : s1_auart FOR vbak-auart,              " Order Type
                   s1_vkbur FOR vbak-vkbur,               " Sales Office
                   s1_spart FOR vbak-spart,              " Division
                   s1_vtweg FOR vbak-vtweg.              " Distributional Channel

SELECTION-SCREEN : END OF BLOCK deactivation.

SELECTION-SCREEN : END OF BLOCK super.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But getting message date has to be entered even if i select radiobutton r2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one provide guidance in this.&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;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jaspal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 07:45:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-modification/m-p/7675560#M1575495</guid>
      <dc:creator>former_member355168</dc:creator>
      <dc:date>2011-02-10T07:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen modification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-modification/m-p/7675561#M1575496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;set s_date parameter as not obligatory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this code looks  field as Obligatory but isn´t&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;at selection-screen output.
loop at screen.
    if screen-name eq 's_date'.
      screen-required = 2.
      modify screen.
    endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;you must check in at selection-screen if s_date field has value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enjoy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 07:57:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-modification/m-p/7675561#M1575496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-10T07:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen modification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-modification/m-p/7675562#M1575497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the parameters s_date has to be obligatory.&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;&lt;/P&gt;&lt;P&gt;Jaspal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 08:01:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-modification/m-p/7675562#M1575497</guid>
      <dc:creator>former_member355168</dc:creator>
      <dc:date>2011-02-10T08:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen modification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-modification/m-p/7675563#M1575498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try the code above an check value of the field in &lt;STRONG&gt;at selection-screen&lt;/STRONG&gt; event.&lt;/P&gt;&lt;P&gt;other way is set a default value to field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 08:11:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-modification/m-p/7675563#M1575498</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-10T08:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen modification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-modification/m-p/7675564#M1575499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jaspalkumar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should make s_date not obligatory, but perform the check in an 'AT SELECTION-SCREEN' event.&lt;/P&gt;&lt;P&gt;Something like;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN on s_date.&lt;/P&gt;&lt;P&gt;If r2 is intial and s_date[] is initial.&lt;/P&gt;&lt;P&gt;  message e001(00) with 'Date is obligatory'(e01).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 08:24:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-modification/m-p/7675564#M1575499</guid>
      <dc:creator>gjl_arendsen</dc:creator>
      <dc:date>2011-02-10T08:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen modification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-modification/m-p/7675565#M1575500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is how i m doing.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN.

    LOOP AT SCREEN.
      IF r1 = 'X'.
        IF screen-name = 'S_DATE' OR screen-name = 'S_AUART' OR screen-name = 'S_SPART'  OR screen-name = 'S_VTWEG'.
          SCREEN-INPUT = 1.
          MODIFY SCREEN.
        ENDIF.
      ELSEIF r2 = 'X'.
        IF screen-name = 'S1_VKBUR'  OR screen-name = 'S1_AUART' OR screen-name = 'S1_SPART'  OR screen-name = 'S1_VTWEG'.
          SCREEN-INPUT = 1.
          MODIFY SCREEN.
        ENDIF.
      ENDIF.
      MODIFY SCREEN.
    ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 08:40:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-modification/m-p/7675565#M1575500</guid>
      <dc:creator>former_member355168</dc:creator>
      <dc:date>2011-02-10T08:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen modification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-modification/m-p/7675566#M1575501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Remove the S_date obligatory from the selection screen. And add the below code--&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN.
if sy-ucom eq 'ONLI' and rd1 eq 'X' and s_date is initial.
" Give error message
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhukar Shetty&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 08:48:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-modification/m-p/7675566#M1575501</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-10T08:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen modification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-modification/m-p/7675567#M1575502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as advised by all, even if i make none parameters  obligatory, still prob is same. unable to modyfy the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i click on r2, the fields in renewal block are still able to get input instead of getting diable.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jaspal kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 09:03:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-modification/m-p/7675567#M1575502</guid>
      <dc:creator>former_member355168</dc:creator>
      <dc:date>2011-02-10T09:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen modification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-modification/m-p/7675568#M1575503</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;instead of writing  AT SELECTION-SCREEN write AT SELECTION-SCREEN output .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN OUTPUT
 
    LOOP AT SCREEN.
      IF r1 = 'X'.
        IF screen-name = 'S_DATE' OR screen-name = 'S_AUART' OR screen-name = 'S_SPART'  OR screen-name = 'S_VTWEG'.
          SCREEN-INPUT = 1.
          MODIFY SCREEN.
        ENDIF.
      ELSEIF r2 = 'X'.
        IF screen-name = 'S1_VKBUR'  OR screen-name = 'S1_AUART' OR screen-name = 'S1_SPART'  OR screen-name = 'S1_VTWEG'.
          SCREEN-INPUT = 1.
          MODIFY SCREEN.
        ENDIF.
      ENDIF.
      MODIFY SCREEN.
    ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 09:07:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-modification/m-p/7675568#M1575503</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-10T09:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen modification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-modification/m-p/7675569#M1575504</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;Just change at Selection screen to At Selection screen Output, If you are doing any action in Selection scereen we have to use At Selection Screen output event.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 09:59:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-modification/m-p/7675569#M1575504</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-10T09:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen modification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-modification/m-p/7675570#M1575505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wrote my code in At selection screen event.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Feb 2011 05:50:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-modification/m-p/7675570#M1575505</guid>
      <dc:creator>former_member355168</dc:creator>
      <dc:date>2011-02-11T05:50:50Z</dc:date>
    </item>
  </channel>
</rss>

