<?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 select-options using parameter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-options-using-parameter/m-p/2296533#M501447</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But problem is i have 151 fields &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 May 2007 15:45:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-29T15:45:49Z</dc:date>
    <item>
      <title>dynamic select-options using parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-options-using-parameter/m-p/2296528#M501442</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;It the user selects one value from dropdown list, it should generate one select-option using that name. Is it possible? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example, (pls see my code).&lt;/P&gt;&lt;P&gt;If user selects 'Malek' from parameter, &amp;lt;b&amp;gt;and press 'ENTER'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;select-option should display with that name&amp;lt;/b&amp;gt; like&lt;/P&gt;&lt;P&gt;Malek      malek-low  malek-high&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if user selects some other like 'Amran'. It should generate(and append)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Malek      malek-low  malek-high&lt;/P&gt;&lt;P&gt;amran      amran-low amran-high&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and so on....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
report c.

data: t_return like ddshretval occurs 0 with header line.
data: begin of t_names occurs 0,
       name like usr01-bname,
      end of t_names.

parameters : i_inspec like usr01-bname.

at selection-screen on value-request for i_inspec.
  perform get_names.

form get_names.

  t_names-name = 'Malek'.
  append t_names.
  t_names-name = 'Amran'.
  append t_names.
  t_names-name = 'Ow CC'.
  append t_names.
  t_names-name = 'titbit'.
  append t_names.


  call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
      retfield    = 'T_NAMES-NAME'
      dynpprog    = sy-cprog
      dynpnr      = sy-dynnr
      dynprofield = 'I_INSPEC'
      value_org   = 'S'
    tables
      value_tab   = t_names.

  if sy-subrc &amp;lt;&amp;gt; 0.
    message id sy-msgid type sy-msgty number sy-msgno with
    sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  endif.
  read table t_return index   1.

endform.                    "GET_NAMES
&lt;/CODE&gt;&lt;/PRE&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>Tue, 29 May 2007 14:33:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-options-using-parameter/m-p/2296528#M501442</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-29T14:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic select-options using parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-options-using-parameter/m-p/2296529#M501443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use At selection-screen output,use screen internal table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;User Dynamic Selection&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;at selection-screen output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select single * from t000md.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at screen.&lt;/P&gt;&lt;P&gt;    case screen-group1.&lt;/P&gt;&lt;P&gt;      when 'REL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        if not  p_old is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          screen-input = '0'.&lt;/P&gt;&lt;P&gt;          screen-required = '0'.&lt;/P&gt;&lt;P&gt;          screen-invisible = '1'.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;        modify screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      when 'BEL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        if not p_new is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          screen-input = '0'.&lt;/P&gt;&lt;P&gt;          screen-required = '0'.&lt;/P&gt;&lt;P&gt;          screen-invisible = '1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;        modify screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      when 'ARB'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        if  p_new is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          screen-input = '0'.&lt;/P&gt;&lt;P&gt;          screen-required = '0'.&lt;/P&gt;&lt;P&gt;          screen-invisible = '1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;        modify screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      when 'MTA'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        if  p_new is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          screen-input = '0'.&lt;/P&gt;&lt;P&gt;          screen-required = '0'.&lt;/P&gt;&lt;P&gt;          screen-invisible = '1'.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;        modify screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2007 14:37:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-options-using-parameter/m-p/2296529#M501443</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-29T14:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic select-options using parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-options-using-parameter/m-p/2296530#M501444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz check the code which is in bold. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;b&amp;gt;tables : usr01.&amp;lt;/b&amp;gt;
data: t_return like ddshretval occurs 0 with header line.
data: begin of t_names occurs 0,
       name like usr01-bname,
      end of t_names.

parameters : i_inspec like usr01-bname.
&amp;lt;b&amp;gt;select-options:  s_option for usr01-bname modif id m1.&amp;lt;/b&amp;gt;

at selection-screen on value-request for i_inspec.
  perform get_names.

&amp;lt;b&amp;gt;at selection-screen output.
 LOOP AT SCREEN.
    IF i_inspec &amp;lt;&amp;gt; ' '.
      IF screen-group1 = 'M1'.
        screen-active = '1'.
        MODIFY SCREEN.
      ENDIF.
    else.
     IF screen-group1 = 'M1'.
        screen-active = '0'.
        MODIFY SCREEN.
      ENDIF.

    ENDIF.
  ENDLOOP.
s_option-low = i_inspec.
append s_option.&amp;lt;/b&amp;gt;
form get_names.

  t_names-name = 'Malek'.
  append t_names.
  t_names-name = 'Amran'.
  append t_names.
  t_names-name = 'Ow CC'.
  append t_names.
  t_names-name = 'titbit'.
  append t_names.


  call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
      retfield    = 'T_NAMES-NAME'
      dynpprog    = sy-cprog
      dynpnr      = sy-dynnr
      dynprofield = 'I_INSPEC'
      value_org   = 'S'
    tables
      value_tab   = t_names.

  if sy-subrc &amp;lt;&amp;gt; 0.
    message id sy-msgid type sy-msgty number sy-msgno with
    sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  endif.
  read table t_return index   1.

endform&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz reward points if helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Suma.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2007 15:01:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-options-using-parameter/m-p/2296530#M501444</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-29T15:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic select-options using parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-options-using-parameter/m-p/2296531#M501445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi suma,&lt;/P&gt;&lt;P&gt;After executing your code, can you see it..!!!&lt;/P&gt;&lt;P&gt;In the place of &amp;lt;b&amp;gt;s_option&amp;lt;/b&amp;gt; i need name of the parameter value ( for ex: Malek).&lt;/P&gt;&lt;P&gt;If i select parameer 2 times,&lt;/P&gt;&lt;P&gt;It shoud display 2 values....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Malek  selection range&lt;/P&gt;&lt;P&gt;Amran selection range&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>Tue, 29 May 2007 15:12:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-options-using-parameter/m-p/2296531#M501445</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-29T15:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic select-options using parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-options-using-parameter/m-p/2296532#M501446</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 believe the easier solution is to create a selection-screen with all select-options u can need, and after user selection u should decide which select-options has to be active.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2007 15:37:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-options-using-parameter/m-p/2296532#M501446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-29T15:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic select-options using parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-options-using-parameter/m-p/2296533#M501447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But problem is i have 151 fields &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2007 15:45:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-options-using-parameter/m-p/2296533#M501447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-29T15:45:49Z</dc:date>
    </item>
  </channel>
</rss>

