<?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: Adding a parameter in selection screen dynamicaaly in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-parameter-in-selection-screen-dynamicaaly/m-p/4237532#M1011703</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Follow this code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
parameters:
  w_char like spfli-carrid,
  w_connid like spfli-connid.
Data:
  w_flag type c.

 at selection-screen output.
   if w_flag is initial.
    loop at screen.
      if screen-name cs 'w_connid'.
         screen-active = 0.
         modify screen.
      endif.
    endloop.
   endif.

 at selection-screen.
   if w_char eq 'LH'.
     w_flag = 'X'.
   endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Aug 2008 10:28:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-08T10:28:27Z</dc:date>
    <item>
      <title>Adding a parameter in selection screen dynamicaaly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-parameter-in-selection-screen-dynamicaaly/m-p/4237531#M1011702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one tell me how to add a parameter in the selection screen dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advacne.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sasidhar Reddy Matli.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2008 10:19:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-parameter-in-selection-screen-dynamicaaly/m-p/4237531#M1011702</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-08T10:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a parameter in selection screen dynamicaaly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-parameter-in-selection-screen-dynamicaaly/m-p/4237532#M1011703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Follow this code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
parameters:
  w_char like spfli-carrid,
  w_connid like spfli-connid.
Data:
  w_flag type c.

 at selection-screen output.
   if w_flag is initial.
    loop at screen.
      if screen-name cs 'w_connid'.
         screen-active = 0.
         modify screen.
      endif.
    endloop.
   endif.

 at selection-screen.
   if w_char eq 'LH'.
     w_flag = 'X'.
   endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2008 10:28:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-parameter-in-selection-screen-dynamicaaly/m-p/4237532#M1011703</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-08T10:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a parameter in selection screen dynamicaaly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-parameter-in-selection-screen-dynamicaaly/m-p/4237533#M1011704</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 check for the condition in at selection-screen output and can make the required parameters appear dynamically&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;at selection-screen output.
  if w_flag eq 'N'.
    loop at screen.
      if screen-group1 eq 'G1'.
        screen-active = 0.
      endif.                           " IF SCREEN-GROUP1 EQ 'G1'
      modify screen.
    endloop.                           " LOOP AT SCREEN
  else.
    loop at screen.
      if screen-group1 eq 'G1'.
        screen-active = 1.
        w_flag1 = 'Y'.
      endif.                           " IF SCREEN-GROUP1 EQ 'G1'
      if screen-name = 'P_USER'.
        screen-input = 0.
      endif.                           " IF SCREEN-NAME EQ P_USER
      modify screen.
    endloop.                           " LOOP AT SCREEN

    w_flag = 'N'.
  endif.                               " IF W_FLAG EQ 'N'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;padma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2008 10:30:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-parameter-in-selection-screen-dynamicaaly/m-p/4237533#M1011704</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-08T10:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a parameter in selection screen dynamicaaly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-parameter-in-selection-screen-dynamicaaly/m-p/4237534#M1011705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sasidhar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope the following threads help you reach a solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=14992756&amp;amp;messageID=5856700" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=14992756&amp;amp;messageID=5856700&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=14992756&amp;amp;messageID=5740894" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=14992756&amp;amp;messageID=5740894&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Have A Good Day&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Chaitanya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2008 10:32:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-parameter-in-selection-screen-dynamicaaly/m-p/4237534#M1011705</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-08T10:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a parameter in selection screen dynamicaaly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-parameter-in-selection-screen-dynamicaaly/m-p/4237535#M1011706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this piece of logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initially the parameter P_WAERS is invisible. But when radio-button P_RB2 is selected, then it gets displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS:
  P_BANKS LIKE BNKA-BANKS,
  P_WAERS LIKE TCURC-WAERS MODIF ID ABC,

  P_RB1 RADIOBUTTON GROUP RAD1 DEFAULT 'X',
  P_RB2 RADIOBUTTON GROUP RAD1.

INITIALIZATION.

  LOOP AT SCREEN.
    IF SCREEN-GROUP1 EQ 'ABC'.
      SCREEN-ACTIVE = 0.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.

AT SELECTION-SCREEN OUTPUT.
  IF P_RB2 = 'X'.
    LOOP AT SCREEN.
      IF SCREEN-GROUP1 EQ 'ABC'.
        SCREEN-ACTIVE = 1.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2008 10:39:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-parameter-in-selection-screen-dynamicaaly/m-p/4237535#M1011706</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2008-08-08T10:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a parameter in selection screen dynamicaaly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-parameter-in-selection-screen-dynamicaaly/m-p/4237536#M1011707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sashidhar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One way is to create a include having selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write another program in which you read CODE of this include and modify your code wherein you insert lines to define parameters dynamically. &lt;/P&gt;&lt;P&gt;Write a small BDC code to activate this include. &lt;/P&gt;&lt;P&gt;Remember not to include above INCLUDE in your current program as you will not get active version if you try to activate from the same program in which you are programmatically activating your include.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Submit the program in which you have modified selection screen (modified INCLUDE program).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mohaiyuddin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2008 10:47:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-parameter-in-selection-screen-dynamicaaly/m-p/4237536#M1011707</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-08T10:47:58Z</dc:date>
    </item>
  </channel>
</rss>

