<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2225389#M478159</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;Ster.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 May 2007 18:37:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-09T18:37:55Z</dc:date>
    <item>
      <title>Selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2225385#M478155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a selection screen which has the chek box.&lt;/P&gt;&lt;P&gt;By default the check box is not checked and i have a obligatory field in my selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when the check box is checked i need to make  the obligatory field. as a non obligatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : BEGIN OF BLOCK 1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : s_matnr FOR zrcpt-matnr,&lt;/P&gt;&lt;P&gt;                 s_werks FOR zrcpt-werks OBLIGATORY,&lt;/P&gt;&lt;P&gt;                 s_lgort FOR zrcpt-lgort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS : chkbox AS CHECKBOX.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : END OF BLOCK 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 18:19:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2225385#M478155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T18:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2225386#M478156</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 using the OBLIGATORY you can validate in the AT SELECTION-SCREEN event...CHanges marked in bold.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : BEGIN OF BLOCK 1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : s_matnr FOR zrcpt-matnr,&lt;/P&gt;&lt;P&gt;s_werks FOR zrcpt-werks,   &amp;lt;b&amp;gt;" REmoved the obligatory&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;s_lgort FOR zrcpt-lgort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS : chkbox AS CHECKBOX &amp;lt;b&amp;gt;USER-COMMAND USR&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : END OF BLOCK 1. &lt;/P&gt;&lt;P&gt;&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;IF chkbox IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Validate&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF s_werks[] IS INITIAL.&lt;/P&gt;&lt;P&gt;    MESSAGE E208(00) WITH 'Plant is Mandatory'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&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;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 18:23:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2225386#M478156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T18:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2225387#M478157</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; You will have to some of the following steps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 1). Assign a USERCOMMAND for the check box.&lt;/P&gt;&lt;P&gt;2). Assign a MODIF ID to the filed for which you want to make changes.&lt;/P&gt;&lt;P&gt;3). Write the event AT SELECTION-SCREEN OUTPUT&lt;/P&gt;&lt;P&gt; 4). Inside the event AT SELECTION-SCREEN OUTPUT loop at the SCREEN table and modify the atrribute of the field which you want to make it non mandatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A sample program &lt;/P&gt;&lt;P&gt;REPORT demo_at_selection_screen_pbo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: test1(10) TYPE c MODIF ID sc1,&lt;/P&gt;&lt;P&gt;            test2(10) TYPE c MODIF ID sc2,&lt;/P&gt;&lt;P&gt;            test3(10) TYPE c MODIF ID sc1,&lt;/P&gt;&lt;P&gt;            test4(10) TYPE c MODIF ID sc2.&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;  LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;    IF screen-group1 = 'SC1'.&lt;/P&gt;&lt;P&gt;      screen-intensified = '1'.&lt;/P&gt;&lt;P&gt;      MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      CONTINUE.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    IF screen-group1 = 'SC2'.&lt;/P&gt;&lt;P&gt;      screen-intensified = '0'.&lt;/P&gt;&lt;P&gt;      MODIFY SCREEN.&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;&lt;/P&gt;&lt;P&gt; Cheers&lt;/P&gt;&lt;P&gt; VJ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Vijayendra  Rao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 18:23:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2225387#M478157</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T18:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2225388#M478158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that case, you can use the OBLIGATORY keyword.  You must do something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


report zrich_0001.

tables: mard.

selection-screen : begin of block 1 with frame title text-001.
select-options : s_matnr for mard-matnr,
                 s_werks for mard-werks,    " OBLIGATORY,
                 s_lgort for mard-lgort.
parameters : chkbox as checkbox.
selection-screen : end of block 1.


at selection-screen.

  if chkbox = 'X'.
    if s_werks[] is initial.
      message e001(00) with 'Hey, enter something in the S_WERKS field'.
    endif.
  endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 18:25:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2225388#M478158</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-05-09T18:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2225389#M478159</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;Ster.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 18:37:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2225389#M478159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T18:37:55Z</dc:date>
    </item>
  </channel>
</rss>

