<?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: [Selection Screen] Select-Options populate mult. values &amp; Green pushbutton in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-select-options-populate-mult-values-green-pushbutton/m-p/7552325#M1563530</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;Just for the grain of sand, you would have achieved this with this simple line of code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SAPGUI_SET_FUNCTIONCODE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pretty usefull fm anyway! &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/910/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Manu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Aug 2012 14:02:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-08-06T14:02:46Z</dc:date>
    <item>
      <title>[Selection Screen] Select-Options populate mult. values &amp; Green pushbutton</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-select-options-populate-mult-values-green-pushbutton/m-p/7552320#M1563525</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 programmatically fill a SELECT-OPTIONS on event AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_us-low.&lt;/P&gt;&lt;P&gt;As I use a FM ('RHP0_POPUP_F4_SEARK') that allows me to select several entries in a single step, the right pushbtton stays unchanged. I have to press enter to make it go green.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried thinks like:&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    ls_dynpfield-fieldname = '%_S_US_%_APP_%-VALU_PUSH'.  " 'S_US-LOW'.
    ls_dynpfield-fieldvalue = ICON_DISPLAY_MORE.
    APPEND ls_dynpfield TO lt_dynpfields.

    CALL FUNCTION 'DYNP_VALUES_UPDATE'
      EXPORTING
        dyname               = sy-repid
        dynumb               = sy-dynnr
      TABLES
        dynpfields           = lt_dynpfields
      EXCEPTIONS
        invalid_abapworkarea = 1
        invalid_dynprofield  = 2
        invalid_dynproname   = 3
        invalid_dynpronummer = 4
        invalid_request      = 5
        no_fielddescription  = 6
        undefind_error       = 7
        OTHERS               = 8.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and it works but it's not that nice !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Any idea how to avoid this behaviour and directly set it green?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Guillaume&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2011 11:27:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-select-options-populate-mult-values-green-pushbutton/m-p/7552320#M1563525</guid>
      <dc:creator>guillaume-hrc</dc:creator>
      <dc:date>2011-01-25T11:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: [Selection Screen] Select-Options populate mult. values &amp; Green pushbutton</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-select-options-populate-mult-values-green-pushbutton/m-p/7552321#M1563526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of f.m. 'DYNP_VALUES_UPDATE', try to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at &amp;lt;your table value&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your_selectoptions-sign = 'I'.&lt;/P&gt;&lt;P&gt;your_selectoptions-option = 'EQ'.&lt;/P&gt;&lt;P&gt;your_selectoptions-low = value.&lt;/P&gt;&lt;P&gt;append your_selectoptions&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2011 11:45:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-select-options-populate-mult-values-green-pushbutton/m-p/7552321#M1563526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-25T11:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: [Selection Screen] Select-Options populate mult. values &amp; Green pushbutton</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-select-options-populate-mult-values-green-pushbutton/m-p/7552322#M1563527</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;&lt;/P&gt;&lt;P&gt;I called FM 'DYNP_VALUES_UPDATE' in addition to populating the select-options in a LOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Guillaume&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2011 13:08:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-select-options-populate-mult-values-green-pushbutton/m-p/7552322#M1563527</guid>
      <dc:creator>guillaume-hrc</dc:creator>
      <dc:date>2011-01-25T13:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: [Selection Screen] Select-Options populate mult. values &amp; Green pushbutton</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-select-options-populate-mult-values-green-pushbutton/m-p/7552323#M1563528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Guillaume Garcia &lt;/P&gt;&lt;P&gt;U can try following code. it may help you.when I press f4. Colour will change to Green.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ztest.

tables: mara.
CONSTANTS : tp_mara type C VALUE 'X'.
select-OPTIONS: matnr for mara-matnr..

at SELECTION-SCREEN on VALUE-REQUEST FOR matnr-low.

matnr-sign = 'I'.
matnr-option = 'BT'.
matnr-low  = '1'.
matnr-high = '2'.

append matnr.

matnr-sign = 'I'.
matnr-option = 'BT'.
matnr-low  = '4'.
matnr-high = '5'.

append matnr.

SUBMIT ZTEST VIA SELECTION-SCREEN WITH matnr IN matnr.

START-OF-SELECTION.
BREAK-POINT.
END-of-SELECTION.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Suyog.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jan 2011 02:40:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-select-options-populate-mult-values-green-pushbutton/m-p/7552323#M1563528</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-27T02:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: [Selection Screen] Select-Options populate mult. values &amp; Green pushbutton</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-select-options-populate-mult-values-green-pushbutton/m-p/7552324#M1563529</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;Found a new way (1,5 years after...)&amp;nbsp; &lt;SPAN __jive_emoticon_name="laugh" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/910/images/emoticons/laugh.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SET SCREEN 1000.&lt;/P&gt;&lt;P&gt;LEAVE SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Guillaume&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 12:02:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-select-options-populate-mult-values-green-pushbutton/m-p/7552324#M1563529</guid>
      <dc:creator>guillaume-hrc</dc:creator>
      <dc:date>2012-08-06T12:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: [Selection Screen] Select-Options populate mult. values &amp; Green pushbutton</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-select-options-populate-mult-values-green-pushbutton/m-p/7552325#M1563530</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;Just for the grain of sand, you would have achieved this with this simple line of code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SAPGUI_SET_FUNCTIONCODE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pretty usefull fm anyway! &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/910/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Manu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 14:02:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-select-options-populate-mult-values-green-pushbutton/m-p/7552325#M1563530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-06T14:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: [Selection Screen] Select-Options populate mult. values &amp; Green pushbutton</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-select-options-populate-mult-values-green-pushbutton/m-p/7552326#M1563531</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;Didn't know about that one, thx!&lt;/P&gt;&lt;P&gt;I'll keep it for later use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does it behave correctly in ITS too? (with this 'SAPGUI' name, one can always wonder...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Guillaume&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 07:59:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-select-options-populate-mult-values-green-pushbutton/m-p/7552326#M1563531</guid>
      <dc:creator>guillaume-hrc</dc:creator>
      <dc:date>2012-08-07T07:59:34Z</dc:date>
    </item>
  </channel>
</rss>

