<?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: Dynamic selection screen with FCODE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen-with-fcode/m-p/2242604#M483643</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;***********&lt;STRONG&gt;Start of Selection Screen&lt;/STRONG&gt;**********************************&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : BEGIN OF BLOCK blk WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;PARAMETERS       : p_head RADIOBUTTON GROUP gp1 DEFAULT 'X'&lt;/P&gt;&lt;P&gt;                   USER-COMMAND chk,&lt;/P&gt;&lt;P&gt;                   p_deta RADIOBUTTON GROUP gp1,&lt;/P&gt;&lt;P&gt;                   p_procc RADIOBUTTON GROUP gp1.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : END OF BLOCK blk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : BEGIN OF BLOCK blk1 WITH FRAME TITLE v_text.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : SKIP 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : COMMENT 1(12) text_001.&lt;/P&gt;&lt;P&gt;PARAMETERS       : p_pact  LIKE zorheader-zzphyact MODIF ID g1&lt;/P&gt;&lt;P&gt;                   MATCHCODE OBJECT  zmm_masschange.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : END OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : COMMENT 1(9) text_003.&lt;/P&gt;&lt;P&gt;PARAMETERS       : p_matnr  LIKE mara-matnr MODIF ID g2." OBLIGATORY.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : COMMENT 33(13) text_004.&lt;/P&gt;&lt;P&gt;PARAMETERS       : p_matnr1  LIKE mara-matnr MODIF ID g2." OBLIGATORY.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : END OF LINE.&lt;/P&gt;&lt;P&gt;PARAMETERS       : m_or11 RADIOBUTTON GROUP gp22 MODIF ID g2 DEFAULT 'X'&lt;/P&gt;&lt;P&gt;                   USER-COMMAND chk1.&lt;/P&gt;&lt;P&gt;PARAMETERS       : m_eor11 RADIOBUTTON GROUP gp22 MODIF ID g2.&lt;/P&gt;&lt;P&gt;PARAMETERS       : m_both RADIOBUTTON GROUP gp22 MODIF ID g2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : COMMENT 1(9) text_005.&lt;/P&gt;&lt;P&gt;PARAMETERS       : p_roc  LIKE ztest-fld1 MODIF ID g3&lt;/P&gt;&lt;P&gt;                   MATCHCODE OBJECT z1.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : COMMENT 25(14) text_006.&lt;/P&gt;&lt;P&gt;PARAMETERS       : p_roc1  LIKE ztest-fld1 MODIF ID g3&lt;/P&gt;&lt;P&gt;                   MATCHCODE OBJECT z11.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : END OF LINE.&lt;/P&gt;&lt;P&gt;PARAMETERS       : p_or RADIOBUTTON GROUP gp2 MODIF ID g3  DEFAULT 'X'&lt;/P&gt;&lt;P&gt;                   USER-COMMAND chk1.&lt;/P&gt;&lt;P&gt;PARAMETERS       : p_or1 RADIOBUTTON GROUP gp2 MODIF ID g3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : SKIP 1.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : END OF BLOCK blk1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;*********************&lt;STRONG&gt;End of Selection Screen&lt;/STRONG&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;STRONG&gt;Start of Modifications to Selection Screen O/P&lt;/STRONG&gt;*************&lt;/P&gt;&lt;P&gt;************************************************************************&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;&lt;/P&gt;&lt;P&gt;  IF p_head = 'X' AND  ( screen-group1 = 'G2' OR screen-group1 = 'G3' ).&lt;/P&gt;&lt;P&gt;      CLEAR : text_003 ,text_004,text_005,text_006.&lt;/P&gt;&lt;P&gt;      v_text = 'Test'.&lt;/P&gt;&lt;P&gt;      text_001 = 'Test1'.&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;   IF p_deta = 'X' AND ( screen-group1 = 'G1' OR screen-group1 = 'G3' ).&lt;/P&gt;&lt;P&gt;      CLEAR : text_001,text_005,text_006." text_002 ,text_001.&lt;/P&gt;&lt;P&gt;      v_text = 'TEST3'.&lt;/P&gt;&lt;P&gt;      text_003 = 'Material'.&lt;/P&gt;&lt;P&gt;      text_004 = 'With Material'.&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;  IF p_procc = 'X' AND ( screen-group1 = 'G2' OR screen-group1 = 'G1' ).&lt;/P&gt;&lt;P&gt;      CLEAR : text_001, text_004 ,text_003.&lt;/P&gt;&lt;P&gt;     v_text = 'test4'.&lt;/P&gt;&lt;P&gt;      text_005 = 'test5'.&lt;/P&gt;&lt;P&gt;      text_006 = 'With '.&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;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Award points if helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;venki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 May 2007 16:40:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-23T16:40:06Z</dc:date>
    <item>
      <title>Dynamic selection screen with FCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen-with-fcode/m-p/2242601#M483640</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;How can i display one after other selection options by clicking function code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i click function code first time&lt;/P&gt;&lt;P&gt;1. first select option shoud display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i click again &lt;/P&gt;&lt;P&gt;1. first selection option&lt;/P&gt;&lt;P&gt;2. second selection option&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i click again shoud display&lt;/P&gt;&lt;P&gt;1. first selection option&lt;/P&gt;&lt;P&gt;2. second selection option&lt;/P&gt;&lt;P&gt;3. third selection option  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;and so on....&lt;/P&gt;&lt;P&gt;It should display upto 15 select-options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i do that?&lt;/P&gt;&lt;P&gt;It would be great help if any one could give the sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward guaranteed,&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;kaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 15:58:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen-with-fcode/m-p/2242601#M483640</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T15:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic selection screen with FCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen-with-fcode/m-p/2242602#M483641</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'not sure what you really need to do, but u can try this code perhaps it can help you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: SSCRFIELDS.

DATA: NAME(10) TYPE C.

DATA: GROUP1(3) TYPE N.

DEFINE: M_BUILD_SCREEN.
  SELECTION-SCREEN BEGIN OF LINE.
  SELECTION-SCREEN COMMENT (30) C_&amp;amp;1 FOR FIELD S_&amp;amp;1 MODIF ID &amp;amp;1.
  SELECT-OPTIONS S_&amp;amp;1 FOR NAME MODIF ID &amp;amp;1.
  SELECTION-SCREEN END OF LINE.
END-OF-DEFINITION.

M_BUILD_SCREEN 001.
M_BUILD_SCREEN 002.
M_BUILD_SCREEN 003.
M_BUILD_SCREEN 004.
M_BUILD_SCREEN 005.
M_BUILD_SCREEN 006.
M_BUILD_SCREEN 007.
M_BUILD_SCREEN 008.
M_BUILD_SCREEN 009.
M_BUILD_SCREEN 010.
M_BUILD_SCREEN 011.
M_BUILD_SCREEN 012.
M_BUILD_SCREEN 013.
M_BUILD_SCREEN 014.
M_BUILD_SCREEN 015.

SELECTION-SCREEN: FUNCTION KEY 1.

AT SELECTION-SCREEN.
  CASE SSCRFIELDS-UCOMM.
    WHEN 'FC01'.
      GROUP1 = GROUP1 + 1.
      IF GROUP1 &amp;gt; '015'. GROUP1 = '001'. ENDIF.
  ENDCASE.

AT SELECTION-SCREEN OUTPUT.
  CHECK NOT GROUP1 IS INITIAL.

  LOOP AT SCREEN.
    IF SCREEN-GROUP1 &amp;lt;&amp;gt; GROUP1 AND
       NOT SCREEN-GROUP1 IS INITIAL.
      SCREEN-ACTIVE = 0.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 16:21:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen-with-fcode/m-p/2242602#M483641</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T16:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic selection screen with FCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen-with-fcode/m-p/2242603#M483642</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 can control at the selection-screen output event..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF SY-UCOMM = 'FC01'.

* Open the fields for input only if the button is pressed.
   screen-active = 1.

ELSE.

* Don't show.
  Screen-active = 0.

ENDIF.

MODIFY SCREEN.

ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&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, 23 May 2007 16:24:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen-with-fcode/m-p/2242603#M483642</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T16:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic selection screen with FCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen-with-fcode/m-p/2242604#M483643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;***********&lt;STRONG&gt;Start of Selection Screen&lt;/STRONG&gt;**********************************&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : BEGIN OF BLOCK blk WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;PARAMETERS       : p_head RADIOBUTTON GROUP gp1 DEFAULT 'X'&lt;/P&gt;&lt;P&gt;                   USER-COMMAND chk,&lt;/P&gt;&lt;P&gt;                   p_deta RADIOBUTTON GROUP gp1,&lt;/P&gt;&lt;P&gt;                   p_procc RADIOBUTTON GROUP gp1.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : END OF BLOCK blk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : BEGIN OF BLOCK blk1 WITH FRAME TITLE v_text.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : SKIP 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : COMMENT 1(12) text_001.&lt;/P&gt;&lt;P&gt;PARAMETERS       : p_pact  LIKE zorheader-zzphyact MODIF ID g1&lt;/P&gt;&lt;P&gt;                   MATCHCODE OBJECT  zmm_masschange.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : END OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : COMMENT 1(9) text_003.&lt;/P&gt;&lt;P&gt;PARAMETERS       : p_matnr  LIKE mara-matnr MODIF ID g2." OBLIGATORY.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : COMMENT 33(13) text_004.&lt;/P&gt;&lt;P&gt;PARAMETERS       : p_matnr1  LIKE mara-matnr MODIF ID g2." OBLIGATORY.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : END OF LINE.&lt;/P&gt;&lt;P&gt;PARAMETERS       : m_or11 RADIOBUTTON GROUP gp22 MODIF ID g2 DEFAULT 'X'&lt;/P&gt;&lt;P&gt;                   USER-COMMAND chk1.&lt;/P&gt;&lt;P&gt;PARAMETERS       : m_eor11 RADIOBUTTON GROUP gp22 MODIF ID g2.&lt;/P&gt;&lt;P&gt;PARAMETERS       : m_both RADIOBUTTON GROUP gp22 MODIF ID g2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : COMMENT 1(9) text_005.&lt;/P&gt;&lt;P&gt;PARAMETERS       : p_roc  LIKE ztest-fld1 MODIF ID g3&lt;/P&gt;&lt;P&gt;                   MATCHCODE OBJECT z1.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : COMMENT 25(14) text_006.&lt;/P&gt;&lt;P&gt;PARAMETERS       : p_roc1  LIKE ztest-fld1 MODIF ID g3&lt;/P&gt;&lt;P&gt;                   MATCHCODE OBJECT z11.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : END OF LINE.&lt;/P&gt;&lt;P&gt;PARAMETERS       : p_or RADIOBUTTON GROUP gp2 MODIF ID g3  DEFAULT 'X'&lt;/P&gt;&lt;P&gt;                   USER-COMMAND chk1.&lt;/P&gt;&lt;P&gt;PARAMETERS       : p_or1 RADIOBUTTON GROUP gp2 MODIF ID g3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : SKIP 1.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : END OF BLOCK blk1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;*********************&lt;STRONG&gt;End of Selection Screen&lt;/STRONG&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;STRONG&gt;Start of Modifications to Selection Screen O/P&lt;/STRONG&gt;*************&lt;/P&gt;&lt;P&gt;************************************************************************&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;&lt;/P&gt;&lt;P&gt;  IF p_head = 'X' AND  ( screen-group1 = 'G2' OR screen-group1 = 'G3' ).&lt;/P&gt;&lt;P&gt;      CLEAR : text_003 ,text_004,text_005,text_006.&lt;/P&gt;&lt;P&gt;      v_text = 'Test'.&lt;/P&gt;&lt;P&gt;      text_001 = 'Test1'.&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;   IF p_deta = 'X' AND ( screen-group1 = 'G1' OR screen-group1 = 'G3' ).&lt;/P&gt;&lt;P&gt;      CLEAR : text_001,text_005,text_006." text_002 ,text_001.&lt;/P&gt;&lt;P&gt;      v_text = 'TEST3'.&lt;/P&gt;&lt;P&gt;      text_003 = 'Material'.&lt;/P&gt;&lt;P&gt;      text_004 = 'With Material'.&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;  IF p_procc = 'X' AND ( screen-group1 = 'G2' OR screen-group1 = 'G1' ).&lt;/P&gt;&lt;P&gt;      CLEAR : text_001, text_004 ,text_003.&lt;/P&gt;&lt;P&gt;     v_text = 'test4'.&lt;/P&gt;&lt;P&gt;      text_005 = 'test5'.&lt;/P&gt;&lt;P&gt;      text_006 = 'With '.&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;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Award points if helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;venki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 16:40:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen-with-fcode/m-p/2242604#M483643</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T16:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic selection screen with FCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen-with-fcode/m-p/2242605#M483644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naren,&lt;/P&gt;&lt;P&gt;Could you pls give me the sample code with FCODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;kaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 19:51:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen-with-fcode/m-p/2242605#M483644</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T19:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic selection screen with FCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen-with-fcode/m-p/2242606#M483645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By FCode, do you mean pushbuttons?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 20:19:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen-with-fcode/m-p/2242606#M483645</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T20:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic selection screen with FCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen-with-fcode/m-p/2242607#M483646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivas,&lt;/P&gt;&lt;P&gt;Yes by push buttons.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 20:26:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen-with-fcode/m-p/2242607#M483646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T20:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic selection screen with FCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen-with-fcode/m-p/2242608#M483647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivas,&lt;/P&gt;&lt;P&gt;yes by push buttons&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 20:26:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen-with-fcode/m-p/2242608#M483647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T20:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic selection screen with FCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen-with-fcode/m-p/2242609#M483648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TABLES: sscrfields.

DATA: button1_pressed VALUE '0',
      button2_pressed VALUE '0',
      button3_pressed VALUE '0'.

SELECTION-SCREEN PUSHBUTTON /1(10): push1 USER-COMMAND push1,
                                    push2 USER-COMMAND push2,
                                    push3 USER-COMMAND push3.

SELECT-OPTIONS: s_push1 FOR sy-datum MODIF ID p1,
                s_push2 FOR sy-uname MODIF ID p2,
                s_push3 FOR sy-zonlo MODIF ID p3.

AT SELECTION-SCREEN.

  CASE sscrfields-ucomm.
    WHEN 'PUSH1'.
      MOVE '1' TO button1_pressed.
    WHEN 'PUSH2'.
      MOVE '2' TO button2_pressed.
    WHEN 'PUSH3'.
      MOVE '3' TO button3_pressed.
  ENDCASE.

AT SELECTION-SCREEN OUTPUT.

  LOOP AT SCREEN.
    IF screen-group1 = 'P1'.
      IF button1_pressed = '0'.
        screen-active = 0.
      ELSE.
        screen-active = 1.
      ENDIF.
    ELSEIF screen-group1 = 'P2'.
      IF button2_pressed = '0'.
        screen-active = 0.
      ELSE.
        screen-active = 1.
      ENDIF.
    ELSEIF screen-group1 = 'P3'.
      IF button3_pressed = '0'.
        screen-active = 0.
      ELSE.
        screen-active = 1.
      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>Wed, 23 May 2007 20:30:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen-with-fcode/m-p/2242609#M483648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T20:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic selection screen with FCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen-with-fcode/m-p/2242610#M483649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a very simply solution using a pushbutton.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


report  zrich_0001.

data: c type char20.
data: counter(3) type n.

selection-screen pushbutton 1(20) pb1 user-command push.
select-options: s_so1 for c modif id 001.
select-options: s_so2 for c modif id 002.
select-options: s_so3 for c modif id 003.
select-options: s_so4 for c modif id 004.
select-options: s_so5 for c modif id 005.
select-options: s_so6 for c modif id 006.
select-options: s_so7 for c modif id 007.
select-options: s_so8 for c modif id 008.
select-options: s_so9 for c modif id 009.
select-options: s_so10 for c modif id 010.
select-options: s_so11 for c modif id 011.
select-options: s_so12 for c modif id 012.
select-options: s_so13 for c modif id 013.
select-options: s_so14 for c modif id 014.
select-options: s_so15 for c modif id 015.


at selection-screen output.

  loop at screen.
    if screen-group1 &amp;gt; counter.
      screen-active = '0'.
      modify screen.
    endif.
  endloop.


at selection-screen.

case sy-ucomm.
  when 'PUSH'.
  counter = counter + 1.
endcase.

&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, 23 May 2007 20:30:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen-with-fcode/m-p/2242610#M483649</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-05-23T20:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic selection screen with FCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen-with-fcode/m-p/2242611#M483650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or much simpler&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TABLES: sscrfields.

DATA: button1_pressed VALUE '0',
      button2_pressed VALUE '0',
      button3_pressed VALUE '0'.

SELECTION-SCREEN PUSHBUTTON /1(10): push1 USER-COMMAND push1,
                                    push2 USER-COMMAND push2,
                                    push3 USER-COMMAND push3.

SELECT-OPTIONS: s_push1 FOR sy-datum MODIF ID p1,
                s_push2 FOR sy-uname MODIF ID p2,
                s_push3 FOR sy-zonlo MODIF ID p3.

AT SELECTION-SCREEN.

  CASE sscrfields-ucomm.
    WHEN 'PUSH1'.
      MOVE '1' TO button1_pressed.
    WHEN 'PUSH2'.
      MOVE '2' TO button2_pressed.
    WHEN 'PUSH3'.
      MOVE '3' TO button3_pressed.
  ENDCASE.

AT SELECTION-SCREEN OUTPUT.

  LOOP AT SCREEN.
    IF screen-group1 = 'P1'.
      screen-active = button1_pressed.
    ELSEIF screen-group1 = 'P2'.
      screen-active = button2_pressed.
    ELSEIF screen-group1 = 'P3'.
      screen-active = button3_pressed.
    ENDIF.
    MODIFY SCREEN.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 20:32:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen-with-fcode/m-p/2242611#M483650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T20:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic selection screen with FCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen-with-fcode/m-p/2242612#M483651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;Many thanks for your code.&lt;/P&gt;&lt;P&gt;It is very suitable to my requirement.&lt;/P&gt;&lt;P&gt;Points alloted to you &amp;amp; Mr. Srinivas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 20:45:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen-with-fcode/m-p/2242612#M483651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T20:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic selection screen with FCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen-with-fcode/m-p/2242613#M483652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As per Rich's code, you have only one pushbutton, and the user has to press the button multiple times to see the select-options user wants to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I thought your requirement is to present the user with multiple pushbuttons and depending on which push buttons user presses, you will enable only those select-options.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 21:02:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen-with-fcode/m-p/2242613#M483652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T21:02:28Z</dc:date>
    </item>
  </channel>
</rss>

