<?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: Doubt in Selection screen for Module pool in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-selection-screen-for-module-pool/m-p/5456027#M1250271</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi look at the  code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  field-symbols: &amp;lt;fst&amp;gt; type standard table.&lt;/P&gt;&lt;P&gt;  if  r_uname[] is initial.&lt;/P&gt;&lt;P&gt;    if not v_username is initial.&lt;/P&gt;&lt;P&gt;      r_uname-sign = 'I'.&lt;/P&gt;&lt;P&gt;      r_uname-option = 'EQ'.&lt;/P&gt;&lt;P&gt;      r_uname-low = v_username.&lt;/P&gt;&lt;P&gt;      append r_uname.&lt;/P&gt;&lt;P&gt;      clear  r_uname.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  assign r_uname[] to &amp;lt;fst&amp;gt;.&lt;/P&gt;&lt;P&gt;  call function 'COMPLEX_SELECTIONS_DIALOG'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      title             = 'Select Multiple Value'(059)&lt;/P&gt;&lt;P&gt;      text              = 'Finish Group'(058)&lt;/P&gt;&lt;P&gt;      signed            = 'X'&lt;/P&gt;&lt;P&gt;      lower_case        = ' '&lt;/P&gt;&lt;P&gt;      no_interval_check = 'X'&lt;/P&gt;&lt;P&gt;      just_display      = ' '&lt;/P&gt;&lt;P&gt;      just_incl         = 'X'&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      range             = &amp;lt;fst&amp;gt;&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      no_range_tab      = 1&lt;/P&gt;&lt;P&gt;      cancelled         = 2&lt;/P&gt;&lt;P&gt;      internal_error    = 3&lt;/P&gt;&lt;P&gt;      others            = 4.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Apr 2009 10:04:44 GMT</pubDate>
    <dc:creator>former_member203501</dc:creator>
    <dc:date>2009-04-15T10:04:44Z</dc:date>
    <item>
      <title>Doubt in Selection screen for Module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-selection-screen-for-module-pool/m-p/5456026#M1250270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a selection screen by using FM "COMPLEX_SELECTIONS_DIALOG" in module pool program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its works very fine. But my doubt is if I click on the Multiple selection button at right of every select option and enter the values, i need to show a green button on the multiple selection button. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It displays in noraml reports if we use the select-option statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same way i need to show a green button in the module pool screen also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below is the my piece of code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;       title                   = text-002&lt;/P&gt;&lt;P&gt;       text                    = 'Material Number'&lt;/P&gt;&lt;P&gt;       signed                  = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        lower_case              = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        no_interval_check       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         just_display            = ' '          &lt;/P&gt;&lt;P&gt;         just_incl               = 'X'          &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        excluded_options        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        description             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        help_field              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        search_help             =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       tab_and_field           = st_tab&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        range                   = r_matnr&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;       no_range_tab            = 1&lt;/P&gt;&lt;P&gt;       cancelled               = 2&lt;/P&gt;&lt;P&gt;       internal_error          = 3&lt;/P&gt;&lt;P&gt;       invalid_fieldname       = 4&lt;/P&gt;&lt;P&gt;       OTHERS                  = 5.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Please look into this and tell me the procedure how to display green button when i select the data by using multiple selection button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srihari.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 10:00:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-selection-screen-for-module-pool/m-p/5456026#M1250270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T10:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt in Selection screen for Module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-selection-screen-for-module-pool/m-p/5456027#M1250271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi look at the  code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  field-symbols: &amp;lt;fst&amp;gt; type standard table.&lt;/P&gt;&lt;P&gt;  if  r_uname[] is initial.&lt;/P&gt;&lt;P&gt;    if not v_username is initial.&lt;/P&gt;&lt;P&gt;      r_uname-sign = 'I'.&lt;/P&gt;&lt;P&gt;      r_uname-option = 'EQ'.&lt;/P&gt;&lt;P&gt;      r_uname-low = v_username.&lt;/P&gt;&lt;P&gt;      append r_uname.&lt;/P&gt;&lt;P&gt;      clear  r_uname.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  assign r_uname[] to &amp;lt;fst&amp;gt;.&lt;/P&gt;&lt;P&gt;  call function 'COMPLEX_SELECTIONS_DIALOG'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      title             = 'Select Multiple Value'(059)&lt;/P&gt;&lt;P&gt;      text              = 'Finish Group'(058)&lt;/P&gt;&lt;P&gt;      signed            = 'X'&lt;/P&gt;&lt;P&gt;      lower_case        = ' '&lt;/P&gt;&lt;P&gt;      no_interval_check = 'X'&lt;/P&gt;&lt;P&gt;      just_display      = ' '&lt;/P&gt;&lt;P&gt;      just_incl         = 'X'&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      range             = &amp;lt;fst&amp;gt;&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      no_range_tab      = 1&lt;/P&gt;&lt;P&gt;      cancelled         = 2&lt;/P&gt;&lt;P&gt;      internal_error    = 3&lt;/P&gt;&lt;P&gt;      others            = 4.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 10:04:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-selection-screen-for-module-pool/m-p/5456027#M1250271</guid>
      <dc:creator>former_member203501</dc:creator>
      <dc:date>2009-04-15T10:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt in Selection screen for Module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-selection-screen-for-module-pool/m-p/5456028#M1250272</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 guess this can be done by dynamically changing the icon of that button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer:-&lt;/P&gt;&lt;P&gt;In the TOP Module include: -&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPE-POOLS : icon.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Take a button on the screen and say we name it as BUTTON having length of 4 (at-least).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also declare this button in TOP Module as:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : button(4) TYPE c.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now in the PBO of the screen include code:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
"check the number of records append using FM 'COMPLEX_SELECTIONS_DIALOG'
IF &amp;lt;condition&amp;gt;. "&amp;lt;--if multiple records
  WRITE icon_select_all AS ICON TO button. u201Cicon_select_all is icon name (change icon name as per rqed)
ELSEIF &amp;lt;condition&amp;gt;. "&amp;lt;--if single selection
  WRITE icon_deselect_all AS ICON TO button. u201Cicon_deselect_all is icon name (change icon name as per rqed)
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So when the screen id displayed first time, depending upon the condition, the icon is attached to the button at runtime.&lt;/P&gt;&lt;P&gt;Similarly the icon changes at run-time as per condition encountered when PBO is executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 10:20:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-selection-screen-for-module-pool/m-p/5456028#M1250272</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-04-15T10:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt in Selection screen for Module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-selection-screen-for-module-pool/m-p/5456029#M1250273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the replies. Its reolved my self.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Feb 2011 17:23:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-selection-screen-for-module-pool/m-p/5456029#M1250273</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-04T17:23:51Z</dc:date>
    </item>
  </channel>
</rss>

