<?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/3941421#M942855</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You need to write the in at selection screen on output event.&lt;/P&gt;&lt;P&gt;Inside the event loop at screen (a system defined internal table) and then write your code (screen-active) to 0 or 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameter: p_chk type c as checkbox user-command flag,&lt;/P&gt;&lt;P&gt;           p_fld1(10) type c,&lt;/P&gt;&lt;P&gt;           p_fld2(10) type c.&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-name = 'P_FLD1'.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;                screen-active = '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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2008 09:02:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-05T09:02:07Z</dc:date>
    <item>
      <title>selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3941418#M942852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         I have a requirement, where there will be one check box on selection screen. if i click that box then only one paramenter should display on the selection screen. otherwise it should not be displayed. pls guide me...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          thanks,&lt;/P&gt;&lt;P&gt;          Ram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2008 08:31:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3941418#M942852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-05T08:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3941419#M942853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   Please refer the code below:&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;SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;PARAMETERS:p_family AS CHECKBOX USER-COMMAND com1.                   "Checkbox &lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 4(23) text-002 FOR FIELD p_family.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF LINE.&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-005.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS:s_family FOR marc-matnr MODIF ID id1,               &lt;/P&gt;&lt;P&gt;               s_mbrsh FOR mara-mbrsh MODIF ID id1,                 &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;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;IF p_family EQ 'X'.&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;IF screen-group1 = 'ID1'.&lt;/P&gt;&lt;P&gt;        screen-active = 0.&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;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2008 08:36:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3941419#M942853</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-05T08:36: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/3941420#M942854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;
Hi Ram,
Have a look at this sample program and change ur program accordingly.
&lt;PRE&gt;&lt;CODE&gt;
REPORT zvenkat_notepad4.
"Selection-screen
PARAMETERS: p_check AS CHECKBOX USER-COMMAND ucom.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 10(20) comm1 MODIF ID mg1 FOR FIELD p_input.
PARAMETERS: p_input TYPE char25.
SELECTION-SCREEN END OF LINE.
"Initialization

INITIALIZATION.
  comm1 = 'Text'.
  " PBO of Selection-screen

AT SELECTION-SCREEN OUTPUT.
  IF p_check IS INITIAL.
    LOOP AT SCREEN .
      IF screen-name = 'P_INPUT' OR screen-group1 = 'MG1'.
        screen-active = '0'.
        MODIFY SCREEN.
        CLEAR screen.
      ENDIF.
    ENDLOOP.
  ELSE.
    LOOP AT SCREEN .
      IF screen-name = 'P_INPUT' OR screen-group1 = 'MG1'.
        screen-active = '1'.
        MODIFY SCREEN.
        CLEAR screen.
      ENDIF.
    ENDLOOP.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;STRONG&gt;Regards,&lt;/STRONG&gt;
&lt;STRONG&gt;Venkat.O&lt;/STRONG&gt;
&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2008 09:00:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3941420#M942854</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2008-06-05T09:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3941421#M942855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You need to write the in at selection screen on output event.&lt;/P&gt;&lt;P&gt;Inside the event loop at screen (a system defined internal table) and then write your code (screen-active) to 0 or 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameter: p_chk type c as checkbox user-command flag,&lt;/P&gt;&lt;P&gt;           p_fld1(10) type c,&lt;/P&gt;&lt;P&gt;           p_fld2(10) type c.&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-name = 'P_FLD1'.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;                screen-active = '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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2008 09:02:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3941421#M942855</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-05T09:02:07Z</dc:date>
    </item>
  </channel>
</rss>

