<?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: getting select options in module pool screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-select-options-in-module-pool-screen/m-p/5165675#M1196350</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;Please Have a look at the following Threads hope will solve out your problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Select-options in module pool|&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4298213"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;[Select-options in a module pool screen|http://help-sap.blogspot.com/2008/11/select-options-in-module-pool-screen.html]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Feb 2009 11:24:28 GMT</pubDate>
    <dc:creator>faisalatsap</dc:creator>
    <dc:date>2009-02-10T11:24:28Z</dc:date>
    <item>
      <title>getting select options in module pool screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-select-options-in-module-pool-screen/m-p/5165671#M1196346</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;&lt;/P&gt;&lt;P&gt;can any one suggest me how to provide select options in module pool screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you,&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 11:16:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-select-options-in-module-pool-screen/m-p/5165671#M1196346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-10T11:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: getting select options in module pool screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-select-options-in-module-pool-screen/m-p/5165672#M1196347</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;Check these Links..&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="6804365"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="6722481"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 11:19:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-select-options-in-module-pool-screen/m-p/5165672#M1196347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-10T11:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: getting select options in module pool screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-select-options-in-module-pool-screen/m-p/5165673#M1196348</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;We can give it directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But we can do like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get two inputfields in the screen and give name like name1-low and name1-high.&lt;/P&gt;&lt;P&gt;Get the values from dbtable into internal table using this name1-low and name1-high.&lt;/P&gt;&lt;P&gt;then use this internal table for your requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did u get it??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 11:22:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-select-options-in-module-pool-screen/m-p/5165673#M1196348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-10T11:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: getting select options in module pool screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-select-options-in-module-pool-screen/m-p/5165674#M1196349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;u can do like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create  a selection-screen in module pool using SE38 editor&lt;/P&gt;&lt;P&gt;syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of screen &amp;lt;screen no&amp;gt;.&lt;/P&gt;&lt;P&gt;selection-screen begin of block &amp;lt;block no &amp;gt;.&lt;/P&gt;&lt;P&gt;parameter : p_bukrs like ysch_des-bukrs default 'ITD', " Company Code&lt;/P&gt;&lt;P&gt;&amp;lt;any no of parameters like that &amp;gt;&lt;/P&gt;&lt;P&gt;select-options : s_schn for ysch_des-schn no intervals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls follow :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="11728"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 11:23:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-select-options-in-module-pool-screen/m-p/5165674#M1196349</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-10T11:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: getting select options in module pool screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-select-options-in-module-pool-screen/m-p/5165675#M1196350</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;Please Have a look at the following Threads hope will solve out your problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Select-options in module pool|&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4298213"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;[Select-options in a module pool screen|http://help-sap.blogspot.com/2008/11/select-options-in-module-pool-screen.html]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 11:24:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-select-options-in-module-pool-screen/m-p/5165675#M1196350</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-02-10T11:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: getting select options in module pool screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-select-options-in-module-pool-screen/m-p/5165676#M1196351</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;Take two fields on screen first for low value and other for high value (say &lt;STRONG&gt;vbeln_low&lt;/STRONG&gt; and &lt;STRONG&gt;vbeln_high&lt;/STRONG&gt;) also design a button next to the high textbox for select-option button used to display popup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using these two input fields append a range (say &lt;STRONG&gt;r_vbeln for vbap-vbeln&lt;/STRONG&gt;) for the field to be used (either in query or anywhere).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
ranges : r_vbeln for vbap-vbeln.

  IF NOT vbeln_high IS INITIAL.
    IF NOT vbeln_low LE vbeln_high.
      MESSAGE e899 WITH text-007. "high value is smaller than low value
    ENDIF.
  ENDIF.

  r_vbeln-sign = 'I'.
  r_vbeln-low = vbeln_low.
  IF vbeln_high IS INITIAL.
    r_vbeln-option = 'EQ'. "if user takes only a singlr value
  ELSE.
    r_vbeln-option = 'BT'. "if user takes both low &amp;amp; high value
    r_vbeln-high = vbeln_high.
  ENDIF.
  APPEND r_vbeln. "append range
  CLEAR r_vbeln.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the button click call this FM to call a popup for select-options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : tab TYPE rstabfield.

tab-tablename = 'VBAP'.
tab-fieldname = 'VBELN'.

  CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
   EXPORTING
     title                   = text-002
     text                    = ' '
     signed                  = 'X'
*         lower_case              = ' '
*         no_interval_check       = ' '
*         just_display            = ' '
*         just_incl               = ' '
*         excluded_options        =
*         description             =
*         help_field              =
*         search_help             =
     tab_and_field           = tab
    TABLES
      range                   = r_vbeln
   EXCEPTIONS
     no_range_tab            = 1
     cancelled               = 2
     internal_error          = 3
     invalid_fieldname       = 4
     OTHERS                  = 5.

  IF sy-subrc EQ 2.
    MESSAGE s899 WITH text-003. "no value selected
  ELSEIF sy-subrc &amp;lt;&amp;gt; 0 AND sy-subrc &amp;lt;&amp;gt; 2.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This whole code will append your range r_vbeln to be used in program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Tarun Gambhir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 11:32:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-select-options-in-module-pool-screen/m-p/5165676#M1196351</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-02-10T11:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: getting select options in module pool screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-select-options-in-module-pool-screen/m-p/5165677#M1196352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the main program, use the following code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF SCREEN 201 AS SUBSCREEN.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : s_opt1 FOR xyz-abc,&lt;/P&gt;&lt;P&gt;s_opt2 FOR xyz-def.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF SCREEN 201.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will create a selection screen 201. call this screen in the subscreen area of the dialog screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to display in seperate window use AS WINDOW instead of AS SUBSCREEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Goutham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 11:43:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-select-options-in-module-pool-screen/m-p/5165677#M1196352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-10T11:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: getting select options in module pool screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-select-options-in-module-pool-screen/m-p/5165678#M1196353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tarun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i worked the same way as you said. Im getting select-option range. But when i select the value in the button created next to high range input field it is not getting selected. Can you please accomplish my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 04:49:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-select-options-in-module-pool-screen/m-p/5165678#M1196353</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T04:49:02Z</dc:date>
    </item>
  </channel>
</rss>

