<?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: Dynamically Selection Screen Change in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-selection-screen-change/m-p/5026352#M1169308</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;Group all the selection fields acc to the screen on which you want to display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on the function code of the button, then active the corresponding group.&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 = 'GR1'&lt;/P&gt;&lt;P&gt;    AND sy-ucomm  = &amp;lt;func_code&amp;gt;.&lt;/P&gt;&lt;P&gt;      screen-active  = 0.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    IF screen-group1 = 'GR2'&lt;/P&gt;&lt;P&gt;    AND su-ucomm  = &amp;lt;func_code&amp;gt;.&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;&lt;/P&gt;&lt;P&gt;In case of any clarifications, please revert back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Natasha Garg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Jan 2009 05:17:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-09T05:17:16Z</dc:date>
    <item>
      <title>Dynamically Selection Screen Change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-selection-screen-change/m-p/5026349#M1169305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 5 buttons on the application toolbar and on click of each button, i need to populate difference selection parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried modifying the SCREEN table dynamically but maintaining SCREEN table for 5 different action seems very difficult.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you provide any alternate to address this scenario?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ankur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2009 05:00:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-selection-screen-change/m-p/5026349#M1169305</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-09T05:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically Selection Screen Change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-selection-screen-change/m-p/5026350#M1169306</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;Go for Modulepool Programming this would surely solve your issue Else its really seems compicated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2009 05:04:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-selection-screen-change/m-p/5026350#M1169306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-09T05:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically Selection Screen Change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-selection-screen-change/m-p/5026351#M1169307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;draw five selection-screens and call them by defined conditions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2009 05:04:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-selection-screen-change/m-p/5026351#M1169307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-09T05:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically Selection Screen Change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-selection-screen-change/m-p/5026352#M1169308</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;Group all the selection fields acc to the screen on which you want to display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on the function code of the button, then active the corresponding group.&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 = 'GR1'&lt;/P&gt;&lt;P&gt;    AND sy-ucomm  = &amp;lt;func_code&amp;gt;.&lt;/P&gt;&lt;P&gt;      screen-active  = 0.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    IF screen-group1 = 'GR2'&lt;/P&gt;&lt;P&gt;    AND su-ucomm  = &amp;lt;func_code&amp;gt;.&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;&lt;/P&gt;&lt;P&gt;In case of any clarifications, please revert back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Natasha Garg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2009 05:17:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-selection-screen-change/m-p/5026352#M1169308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-09T05:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically Selection Screen Change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-selection-screen-change/m-p/5026353#M1169309</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 Report program, Function code doesnt get available in SY-UCOMM,&lt;/P&gt;&lt;P&gt;you need to look structure "sscrfields" at runtime for function code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As suggested above to go for Module Pool program, if you want to stick to Report only then go for tab strips corresponding to each button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tab Strip will be easily managed and will provide you the selection corresponding to each tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Depesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2009 05:34:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-selection-screen-change/m-p/5026353#M1169309</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-09T05:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically Selection Screen Change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-selection-screen-change/m-p/5026354#M1169310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ankur,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An easy approach do this is to go for Module Pool Programming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To include selection screen parameters take few radiobuttons as per your requirement and then include/exclude parameters for selection using:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at screen.
  "code
  modify screen.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take the function group for radiobuttons as &lt;STRONG&gt;'CS'&lt;/STRONG&gt; and function type as &lt;STRONG&gt;'S'&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Tarun Gambhir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2009 06:40:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-selection-screen-change/m-p/5026354#M1169310</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-01-09T06:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically Selection Screen Change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-selection-screen-change/m-p/5026355#M1169311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this text boxes are displays and disapper on the selection of radio button.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  Z_TG_LOOP
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*

REPORT  z_tg_loop.

DATA : rb1(1) VALUE 'X',
       rb2(1).

CALL SCREEN 8000.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  STATUS_8000  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE status_8000 OUTPUT.
*  SET PF-STATUS 'xxxxxxxx'.
*  SET TITLEBAR 'xxx'.

  IF rb1 EQ 'X'.
    LOOP AT SCREEN.
      IF ( screen-group1 EQ 'ABC' ).
        screen-invisible = 0.
        screen-active = 1.
      ELSEIF ( screen-group1 EQ 'DEF' ).
        screen-invisible = 1.
        screen-active = 0.
      ENDIF.
      MODIFY SCREEN.
    ENDLOOP.
  ELSE.
    LOOP AT SCREEN.
      IF ( screen-group1 EQ 'DEF' ).
        screen-invisible = 0.
        screen-active = 1.
      ELSEIF ( screen-group1 EQ 'ABC' ).
        screen-invisible = 1.
        screen-active = 0.
      ENDIF.
      MODIFY SCREEN.
    ENDLOOP.
  ENDIF.

ENDMODULE.                 " STATUS_8000  OUTPUT

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  MODIFY  INPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE modify INPUT.

  IF rb1 EQ 'X'.
    LOOP AT SCREEN.
      IF ( screen-group1 EQ 'ABC' ).
        screen-invisible = 0.
        screen-active = 1.
      ELSEIF ( screen-group1 EQ 'DEF' ).
        screen-invisible = 1.
        screen-active = 0.
      ENDIF.
      MODIFY SCREEN.
    ENDLOOP.
  ELSE.
    LOOP AT SCREEN.
      IF ( screen-group1 EQ 'DEF' ).
        screen-invisible = 0.
        screen-active = 1.
      ELSEIF ( screen-group1 EQ 'ABC' ).
        screen-invisible = 1.
        screen-active = 0.
      ENDIF.
      MODIFY SCREEN.
    ENDLOOP.
  ENDIF.

ENDMODULE.                 " MODIFY  INPUT

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2009 06:42:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-selection-screen-change/m-p/5026355#M1169311</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-09T06:42:17Z</dc:date>
    </item>
  </channel>
</rss>

