<?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 + hiding selection parameter adn adjusting elements in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-hiding-selection-parameter-adn-adjusting-elements/m-p/5060875#M1176089</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;To adjust all the screen accordingly use the following code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS show_all AS CHECKBOX USER-COMMAND flag.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
PARAMETERS: p1 TYPE c LENGTH 10 MODIF ID bl2,
            p2 TYPE c LENGTH 10 MODIF ID bl2,
            p3 TYPE c LENGTH 10 MODIF ID bl2.
SELECTION-SCREEN END OF BLOCK b1.

SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.
PARAMETERS: p4 TYPE c LENGTH 10,
            p5 TYPE c LENGTH 10,
            p6 TYPE c LENGTH 10.
SELECTION-SCREEN END OF BLOCK b2.

AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF show_all &amp;lt;&amp;gt; 'X' AND
       screen-group1 = 'BL2'.

       screen-invisible = '0'.
       screen-active = '0'.
    ENDIF.
    MODIFY SCREEN.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I have used the check box. If it is checked only then all the elements would be displayed.&lt;/P&gt;&lt;P&gt;Else only the second half will be displayed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Bhuvaneswari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Jan 2009 07:25:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-19T07:25:32Z</dc:date>
    <item>
      <title>Selection screen + hiding selection parameter adn adjusting elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-hiding-selection-parameter-adn-adjusting-elements/m-p/5060869#M1176083</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 am able to hide a selection parameter in At Selection screen output event by checking screen-name and then making screen-active as 0. but problem is that i am seeing a blank space there and i expect screen to adjust all elements accordingly and remove all blanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please provide some hints,..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anuj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 07:05:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-hiding-selection-parameter-adn-adjusting-elements/m-p/5060869#M1176083</guid>
      <dc:creator>former_member196517</dc:creator>
      <dc:date>2009-01-19T07:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen + hiding selection parameter adn adjusting elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-hiding-selection-parameter-adn-adjusting-elements/m-p/5060870#M1176084</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;In SCREEN table we have got another field &lt;STRONG&gt;invisible&lt;/STRONG&gt;, use these field your problem will solve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kumar M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 07:08:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-hiding-selection-parameter-adn-adjusting-elements/m-p/5060870#M1176084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-19T07:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen + hiding selection parameter adn adjusting elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-hiding-selection-parameter-adn-adjusting-elements/m-p/5060871#M1176085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Anuj Goyal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all to find the Screen Field name follow the steps bellow. ( i think lables are appearing there find the lable name too)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. --&amp;gt; Display the Screen With all the fields&lt;/P&gt;&lt;P&gt;2. --&amp;gt; Place you Muse Courser on the Field you want to hide using the Loop at Screen&lt;/P&gt;&lt;P&gt;3. --&amp;gt; Press 'F1' Key and on the display Window&lt;/P&gt;&lt;P&gt;4. --&amp;gt; From the Tool bar select the Technical Information Button&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and after finding the name of the fied follow the following code for example here i am hiding some fields and aldo the lable using name.&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.
  BREAK-POINT.
  LOOP AT SCREEN.
    IF (
*       screen-name = '%BYB1005_BLOCK_1000'
       screen-name = '%FYTI007_1000'
     or  screen-name = '%FBIS010_1000'
     or  screen-name = 'PYVW0_0'
 
     or  screen-name = '%_PYPERNR_%_APP_%-TEXT'
     or  screen-name = 'PYPERNR-LOW'
     or  screen-name = '%_PYPERNR_%_APP_%-VALU_PUSH'
 
        ).
      screen-active = '0'.
      screen-invisible = '1'.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Reply if any Issue,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Faisal Altaf on Jan 19, 2009 12:10 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 07:10:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-hiding-selection-parameter-adn-adjusting-elements/m-p/5060871#M1176085</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-01-19T07:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen + hiding selection parameter adn adjusting elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-hiding-selection-parameter-adn-adjusting-elements/m-p/5060872#M1176086</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;Make both ACTIVE as 0 and INVISIBLE as 1 for screen table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it solves!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 07:11:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-hiding-selection-parameter-adn-adjusting-elements/m-p/5060872#M1176086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-19T07:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen + hiding selection parameter adn adjusting elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-hiding-selection-parameter-adn-adjusting-elements/m-p/5060873#M1176087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try using following code.there elements will be adjusted automatically if there is any space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS:
  p_pfile TYPE rlgrap-filename OBLIGATORY.
" File Name


SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS p_rad1 TYPE c RADIOBUTTON GROUP gr  DEFAULT 'X' USER-COMMAND usr .
SELECTION-SCREEN COMMENT 3(16) text-005.
SELECTION-SCREEN END OF LINE.


SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS p_rad2 TYPE c RADIOBUTTON GROUP gr.
SELECTION-SCREEN COMMENT 3(16) text-006.
SELECTION-SCREEN END OF LINE.

PARAMETERS p_docno(11) TYPE c .
" Document Number


AT SELECTION-SCREEN OUTPUT .

  IF p_rad2 IS INITIAL .
    LOOP AT SCREEN.
      IF screen-name CS 'p_docno'.
        screen-active = 0.
        MODIFY SCREEN.
      ENDIF.                           " IF screen-name CS 'p_docno'.
    ENDLOOP.                           " LOOP AT SCREEN.

  ELSE.
    LOOP AT SCREEN .
      IF screen-name CS 'p_docno'.
        screen-active = 1.
        screen-input = 1.
        MODIFY SCREEN.
      ENDIF.                           " IF screen-name CS 'p_docno'.
    ENDLOOP.                           " LOOP AT SCREEN .
  ENDIF.                               " IF p_rad2 IS INITIAL .&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;twinkal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 07:15:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-hiding-selection-parameter-adn-adjusting-elements/m-p/5060873#M1176087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-19T07:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen + hiding selection parameter adn adjusting elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-hiding-selection-parameter-adn-adjusting-elements/m-p/5060874#M1176088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anuj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    try it with MIDIF ID instead on screen name use screen group as show below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Parameters:
  Char1(5) type c MODIF ID abc,
  Char2(5) type c MODIF ID abc,
  Char3(5) type c MODIF ID def,
  Char4(5) type c MODIF ID def.

At Selection-screen output.

  Loop at screen.
    If Screen-group1 = 'ABC'.
      Screen-active = 0.
      Modify Screen.
    Endif.
  Endloop.&lt;/CODE&gt;&lt;/PRE&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;&lt;/P&gt;&lt;P&gt;With luck,&lt;/P&gt;&lt;P&gt;Pritam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 07:18:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-hiding-selection-parameter-adn-adjusting-elements/m-p/5060874#M1176088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-19T07:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen + hiding selection parameter adn adjusting elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-hiding-selection-parameter-adn-adjusting-elements/m-p/5060875#M1176089</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;To adjust all the screen accordingly use the following code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS show_all AS CHECKBOX USER-COMMAND flag.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
PARAMETERS: p1 TYPE c LENGTH 10 MODIF ID bl2,
            p2 TYPE c LENGTH 10 MODIF ID bl2,
            p3 TYPE c LENGTH 10 MODIF ID bl2.
SELECTION-SCREEN END OF BLOCK b1.

SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.
PARAMETERS: p4 TYPE c LENGTH 10,
            p5 TYPE c LENGTH 10,
            p6 TYPE c LENGTH 10.
SELECTION-SCREEN END OF BLOCK b2.

AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF show_all &amp;lt;&amp;gt; 'X' AND
       screen-group1 = 'BL2'.

       screen-invisible = '0'.
       screen-active = '0'.
    ENDIF.
    MODIFY SCREEN.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I have used the check box. If it is checked only then all the elements would be displayed.&lt;/P&gt;&lt;P&gt;Else only the second half will be displayed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Bhuvaneswari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 07:25:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-hiding-selection-parameter-adn-adjusting-elements/m-p/5060875#M1176089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-19T07:25:32Z</dc:date>
    </item>
  </channel>
</rss>

