<?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 Drop Down List with screen modifications in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-with-screen-modifications/m-p/3555749#M855592</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a program with a drop down list which shows the client number in it. I want to display details on the same screen for the client number selected from the drop down list.&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON p_mandt works only by pressing ENTER. But I want to display the details whenever there is a change in the value p_mandt from the drop down list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the present code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: name  TYPE vrm_id,&lt;/P&gt;&lt;P&gt;      list  TYPE vrm_values,&lt;/P&gt;&lt;P&gt;      wa_list TYPE vrm_value,&lt;/P&gt;&lt;P&gt;      c_mandt type t000-mandt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it_usr02 type table of usr02 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: p_mandt(3) AS LISTBOX VISIBLE LENGTH 10 obligatory.&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;select MANDT&lt;/P&gt;&lt;P&gt;         from t000&lt;/P&gt;&lt;P&gt;         into c_mandt.&lt;/P&gt;&lt;P&gt;wa_list-key = c_mandt.&lt;/P&gt;&lt;P&gt;wa_list-text = c_mandt.&lt;/P&gt;&lt;P&gt;append wa_list to list.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'VRM_SET_VALUES'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    ID                    = 'P_MANDT'&lt;/P&gt;&lt;P&gt;    VALUES                = list&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   ID_ILLEGAL_NAME       = 1&lt;/P&gt;&lt;P&gt;   OTHERS                = 2&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Mar 2008 11:30:34 GMT</pubDate>
    <dc:creator>gaurab_banerji</dc:creator>
    <dc:date>2008-03-31T11:30:34Z</dc:date>
    <item>
      <title>Drop Down List with screen modifications</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-with-screen-modifications/m-p/3555749#M855592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a program with a drop down list which shows the client number in it. I want to display details on the same screen for the client number selected from the drop down list.&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON p_mandt works only by pressing ENTER. But I want to display the details whenever there is a change in the value p_mandt from the drop down list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the present code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: name  TYPE vrm_id,&lt;/P&gt;&lt;P&gt;      list  TYPE vrm_values,&lt;/P&gt;&lt;P&gt;      wa_list TYPE vrm_value,&lt;/P&gt;&lt;P&gt;      c_mandt type t000-mandt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it_usr02 type table of usr02 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: p_mandt(3) AS LISTBOX VISIBLE LENGTH 10 obligatory.&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;select MANDT&lt;/P&gt;&lt;P&gt;         from t000&lt;/P&gt;&lt;P&gt;         into c_mandt.&lt;/P&gt;&lt;P&gt;wa_list-key = c_mandt.&lt;/P&gt;&lt;P&gt;wa_list-text = c_mandt.&lt;/P&gt;&lt;P&gt;append wa_list to list.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'VRM_SET_VALUES'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    ID                    = 'P_MANDT'&lt;/P&gt;&lt;P&gt;    VALUES                = list&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   ID_ILLEGAL_NAME       = 1&lt;/P&gt;&lt;P&gt;   OTHERS                = 2&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2008 11:30:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-with-screen-modifications/m-p/3555749#M855592</guid>
      <dc:creator>gaurab_banerji</dc:creator>
      <dc:date>2008-03-31T11:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Drop Down List with screen modifications</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-with-screen-modifications/m-p/3555750#M855593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Gaurab,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls. change your code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: p_mandt(3) AS LISTBOX VISIBLE LENGTH 10 obligatory &lt;STRONG&gt;USER-COMMAND uc01&lt;/STRONG&gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2008 11:35:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-with-screen-modifications/m-p/3555750#M855593</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-03-31T11:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Drop Down List with screen modifications</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-with-screen-modifications/m-p/3555751#M855594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;
Hi Gaurab,

Use USER-COMMAND option to the PARAMETER statement.

&lt;PRE&gt;&lt;CODE&gt;parameters: p_mandt(3) AS LISTBOX VISIBLE LENGTH 10 obligatory USER-COMMAND UCOM.&lt;/CODE&gt;&lt;/PRE&gt;

When you select value from dropdown, the corresponding defined event is triggered no need to press ENTER.

Regards,
Venkat.O
&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2008 11:44:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-with-screen-modifications/m-p/3555751#M855594</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2008-03-31T11:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Drop Down List with screen modifications</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-with-screen-modifications/m-p/3555752#M855595</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;Hope it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Reward if help.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT zwa_test2.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;TYPE-POOLS : vrm.&lt;/P&gt;&lt;P&gt;tables: bkpf.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA : values TYPE vrm_values.&lt;/P&gt;&lt;P&gt;DATA : wa LIKE LINE OF values.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;PARAMETERS : list_box(10) TYPE c AS LISTBOX VISIBLE LENGTH 10.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;PARAMETERS: dd type bkpf-BSTAT user-command abc.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;select-options: a for bkpf-bukrs MODIF ID buk.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;select-options: b for bkpf-belnr MODIF ID SEL.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;at selection-screen output.&lt;/P&gt;&lt;P&gt;  If list_box = 2.&lt;/P&gt;&lt;P&gt;    loop at screen.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;      if screen-group1 = 'SEL'.&lt;/P&gt;&lt;P&gt;        screen-input = 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;   endif.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  wa-key = '1'.&lt;/P&gt;&lt;P&gt;  wa-text = 'Orange'.&lt;/P&gt;&lt;P&gt;  APPEND wa TO values.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  wa-key = '2'.&lt;/P&gt;&lt;P&gt;  wa-text = 'Red'.&lt;/P&gt;&lt;P&gt;  APPEND wa TO values.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  wa-key = '3'.&lt;/P&gt;&lt;P&gt;  wa-text = 'Blue'.&lt;/P&gt;&lt;P&gt;  APPEND wa TO values.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  wa-key = '4'.&lt;/P&gt;&lt;P&gt;  wa-text = 'Gray'.&lt;/P&gt;&lt;P&gt;  APPEND wa TO values.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'VRM_SET_VALUES'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            id              = 'LIST_BOX'&lt;/P&gt;&lt;P&gt;            values          = values&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            id_illegal_name = 1&lt;/P&gt;&lt;P&gt;            OTHERS          = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ref Program:  DEMO_DROPDOWN_LIST_BOX&lt;/P&gt;&lt;P&gt;Link: &lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2951115"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2008 11:52:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-with-screen-modifications/m-p/3555752#M855595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-31T11:52:50Z</dc:date>
    </item>
  </channel>
</rss>

