<?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: SELECT-OPTIONS in Module Pool Sub-Screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-module-pool-sub-screen/m-p/5524965#M1262513</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Haii Nishant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This problem was earlier solved by one of the members and after going through it i have now created a select-option in the Subscreen. Just create two input fields, name them as if they were low and high (for convinience as in case of select-option).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U now need to create a table of type rstabfield.&lt;/P&gt;&lt;P&gt;Ex: &lt;STRONG&gt;gt_rstab_bukrs type rstabfield.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now create a button and assign a Fcode for it. When you click on this button then u need to implement the ranges functionality as in select-option. For that use the following function module:&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TITLE                   = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   TEXT                    = ''&lt;/P&gt;&lt;P&gt;   SIGNED                  = 'X'&lt;/P&gt;&lt;P&gt;   SEARCH_HELP             = 'H_T001'&lt;/P&gt;&lt;P&gt;   TAB_AND_FIELD           = gt_rstab_bukrs&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    RANGE                   = rg_bukrs1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;rama&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Apr 2009 08:03:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-21T08:03:49Z</dc:date>
    <item>
      <title>SELECT-OPTIONS in Module Pool Sub-Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-module-pool-sub-screen/m-p/5524964#M1262512</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 have been working on a Module-Pool Development, in the header portion of the Screen, I have provided a Selection-Screen as a Sub-Screen because the requirement specifies to display a SELECT-OPTION in the Header Area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the problem is that, when working with the Screen, as soon as I press &amp;lt;ENTER&amp;gt; the Main Screen re-calls the Selection-Screen in the Sub-Screen area and all the entries made in the Selection-Screen are reset/erased.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly provide a solution either to stop the &amp;lt;ENTER&amp;gt; action to re-call the sub-screen. Or on any alternate method(s) to  provide a SELECT-OPTION on a Module Pool based Screen UI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MAIN SCREEN Code:
*****************************************************************
*  PROCESS BEFORE OUTPUT
*****************************************************************
PROCESS BEFORE OUTPUT.
*~  Set PF-STATUS and TiTLE for Screen 100
  MODULE status_0100.
*~  Call the Subscreen Dynamically
  CALL SUBSCREEN subscr1 INCLUDING sy-cprog gv_dynnr1.
  CALL SUBSCREEN subscr2 INCLUDING sy-cprog gv_dynnr2.


*****************************************************************
*  PROCESS AFTER INPUT
*****************************************************************
PROCESS AFTER INPUT.
*~  Handle the Exit Commands of Screen 100
  MODULE user_command_0100 AT EXIT-COMMAND.
*~  Handle the User Command(s) for screen 100
  MODULE user_action_0100.
  CALL SUBSCREEN subscr1.
  CALL SUBSCREEN subscr2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So whenever &amp;lt;ENTER&amp;gt; is pressed, the PBO re-calls:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL SUBSCREEN subscr1 INCLUDING sy-cprog gv_dynnr1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and the Selection-Screen is reset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nishant Nayyar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 06:38:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-module-pool-sub-screen/m-p/5524964#M1262512</guid>
      <dc:creator>nishant_nayyar</dc:creator>
      <dc:date>2009-04-21T06:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS in Module Pool Sub-Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-module-pool-sub-screen/m-p/5524965#M1262513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Haii Nishant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This problem was earlier solved by one of the members and after going through it i have now created a select-option in the Subscreen. Just create two input fields, name them as if they were low and high (for convinience as in case of select-option).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U now need to create a table of type rstabfield.&lt;/P&gt;&lt;P&gt;Ex: &lt;STRONG&gt;gt_rstab_bukrs type rstabfield.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now create a button and assign a Fcode for it. When you click on this button then u need to implement the ranges functionality as in select-option. For that use the following function module:&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TITLE                   = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   TEXT                    = ''&lt;/P&gt;&lt;P&gt;   SIGNED                  = 'X'&lt;/P&gt;&lt;P&gt;   SEARCH_HELP             = 'H_T001'&lt;/P&gt;&lt;P&gt;   TAB_AND_FIELD           = gt_rstab_bukrs&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    RANGE                   = rg_bukrs1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;rama&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 08:03:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-module-pool-sub-screen/m-p/5524965#M1262513</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-21T08:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS in Module Pool Sub-Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-module-pool-sub-screen/m-p/5524966#M1262514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This maybe help. Work me fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.scn.sap.com/wiki/display/ABAP/SELECT-OPTIONS+on+Dialog+programming+screen" title="http://wiki.scn.sap.com/wiki/display/ABAP/SELECT-OPTIONS+on+Dialog+programming+screen"&gt;SELECT-OPTIONS on Dialog programming screen - ABAP Development - SCN Wiki&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 09:31:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-module-pool-sub-screen/m-p/5524966#M1262514</guid>
      <dc:creator>daniel_pietrosz</dc:creator>
      <dc:date>2015-11-23T09:31:53Z</dc:date>
    </item>
  </channel>
</rss>

