<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-module-pool/m-p/3636455#M875772</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the SELECT-OPTIONS statement to place a group of fields on the screen that allows users&lt;/P&gt;&lt;P&gt;to enter complex selections. The selection may be a single value, or any form of interval&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selection ranges are stored in programs using an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ABAP statement SELECT-OPTIONS &amp;lt;selname&amp;gt; FOR &amp;lt;field&amp;gt; declares an internal table called&lt;/P&gt;&lt;P&gt;&amp;lt;selname&amp;gt;, containing four fields - SIGN, OPTION, LOW, and HIGH. The fields LOW and HIGH have&lt;/P&gt;&lt;P&gt;the same type as the field &amp;lt;field&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SIGN field can take the value 'I' (for inclusive) or 'E' (for exclusive).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The OPTION field can contain relational operators (EQ, NE, LE, LT, GE, GT), pattern operators (CP,NP), and operators that allow you to enter intervals (BT, NB).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF SCREEN xxxx&lt;/P&gt;&lt;P&gt;PARAMETERS pa_car LIKE wa_sflight-carrid OBLIGATORY.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: so_car FOR wa_sflight-carrid,&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF SCREEN xxxx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and to use a CALL SELECTION-SCREEN xxxx in your module pool.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Apr 2008 04:39:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-03T04:39:49Z</dc:date>
    <item>
      <title>select-options in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-module-pool/m-p/3636453#M875770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;        how to get select-option field in module pool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Suprith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 04:30:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-module-pool/m-p/3636453#M875770</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T04:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: select-options in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-module-pool/m-p/3636454#M875771</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; try the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : mard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : ok_code_100 type sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of screen 1010 as subscreen.&lt;/P&gt;&lt;P&gt;selection-screen begin of block b1 with frame title text-001.&lt;/P&gt;&lt;P&gt;select-options: s_werks for mard-werks,&lt;/P&gt;&lt;P&gt;                 s_lgort for mard-lgort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters     : p_var like disvariant-variant.&lt;/P&gt;&lt;P&gt;parameter:  p_rb1 radiobutton group rd1 default 'X', " list&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            p_rb2 radiobutton group rd1.             " grid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&gt;&lt;P&gt;selection-screen end of screen 1010.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; CALL SCREEN 100.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  STATUS_0100  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module status_0100 output.&lt;/P&gt;&lt;P&gt;  set pf-status 'Z11_SUBMIT'.&lt;/P&gt;&lt;P&gt;  set titlebar 'CALL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule.                 " STATUS_0100  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  USER_COMMAND_0100  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module user_command_0100 input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  case ok_code_100.&lt;/P&gt;&lt;P&gt;    when 'EXIT'.&lt;/P&gt;&lt;P&gt;      leave program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    when 'SUBM'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      submit z11_ap_alv_mat using&lt;/P&gt;&lt;P&gt;                     selection-screen '1000'&lt;/P&gt;&lt;P&gt;                     with s_plant in  s_werks&lt;/P&gt;&lt;P&gt;                     with s_stor in s_lgort&lt;/P&gt;&lt;P&gt;                     with p_var = p_var&lt;/P&gt;&lt;P&gt;                     with p_rb_01 = p_rb1&lt;/P&gt;&lt;P&gt;                     with p_rb_02 = p_rb2&lt;/P&gt;&lt;P&gt;                     and return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule.                 " USER_COMMAND_0100  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here u have to design a subscreen area SUB_1010 in the screen painter,  there is  a option given there for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and  also in the flow logic of screen 0100  you have to call the subscreen SUB_1010  both in PBO and PAI  like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;process before output.&lt;/P&gt;&lt;P&gt;  module status_0100.&lt;/P&gt;&lt;P&gt;  call subscreen sub_1010 including sy-repid '1010'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;process after input.&lt;/P&gt;&lt;P&gt;  call subscreen sub_1010.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  module user_command_0100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;reward if helpful&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ashish Paliwal on Apr 3, 2008 10:05 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ashish Paliwal on Apr 3, 2008 10:11 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 04:34:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-module-pool/m-p/3636454#M875771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T04:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: select-options in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-module-pool/m-p/3636455#M875772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the SELECT-OPTIONS statement to place a group of fields on the screen that allows users&lt;/P&gt;&lt;P&gt;to enter complex selections. The selection may be a single value, or any form of interval&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selection ranges are stored in programs using an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ABAP statement SELECT-OPTIONS &amp;lt;selname&amp;gt; FOR &amp;lt;field&amp;gt; declares an internal table called&lt;/P&gt;&lt;P&gt;&amp;lt;selname&amp;gt;, containing four fields - SIGN, OPTION, LOW, and HIGH. The fields LOW and HIGH have&lt;/P&gt;&lt;P&gt;the same type as the field &amp;lt;field&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SIGN field can take the value 'I' (for inclusive) or 'E' (for exclusive).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The OPTION field can contain relational operators (EQ, NE, LE, LT, GE, GT), pattern operators (CP,NP), and operators that allow you to enter intervals (BT, NB).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF SCREEN xxxx&lt;/P&gt;&lt;P&gt;PARAMETERS pa_car LIKE wa_sflight-carrid OBLIGATORY.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: so_car FOR wa_sflight-carrid,&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF SCREEN xxxx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and to use a CALL SELECTION-SCREEN xxxx in your module pool.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 04:39:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-module-pool/m-p/3636455#M875772</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T04:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: select-options in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-module-pool/m-p/3636456#M875773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Surpith,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the option suggested by the fellow SDN member here.......&lt;/P&gt;&lt;P&gt;It is possible to create select-option on the screen using modulepool program.&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt;Define the selection-screen as subscreen in the top include of module pool program.&lt;/P&gt;&lt;P&gt;create modulepool program SAPMZ_SELOPT&lt;/P&gt;&lt;P&gt;Place the below code.or u can define that in top include.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  SAPMZ_SELOPT.&lt;/P&gt;&lt;P&gt;TABLES :pa0001.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: p_bukrs FOR pa0001-bukrs.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF SCREEN 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.&lt;/P&gt;&lt;P&gt;Goto garphical layout editor, drag Subscreen and drop on screen means define Subscreen area on the screen.&lt;/P&gt;&lt;P&gt;Place the below code in the PBO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;process before output.&lt;/P&gt;&lt;P&gt;" MODULE STATUS_1001.&lt;/P&gt;&lt;P&gt;call subscreen sub_area including 'SAPMZ_SELOPT' '100'.&lt;/P&gt;&lt;P&gt;process after input.&lt;/P&gt;&lt;P&gt;" MODULE USER_COMMAND_1001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the link for the same query closed&lt;/P&gt;&lt;P&gt;it will solve your problem&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="5134096"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Byju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 09:35:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-module-pool/m-p/3636456#M875773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T09:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: select-options in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-module-pool/m-p/3636457#M875774</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;You can use select-options in module pool also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define a screen of type selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF SCREEN 100.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_vbeln FOR vbak-vbeln,&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF SCREEN 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call the selection screen in you module pool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL SELECTION-SCREEN 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 09:47:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-module-pool/m-p/3636457#M875774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T09:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: select-options in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-module-pool/m-p/3636458#M875775</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;
Suprith kumar 

It is possible to create select-option on the screen using modulepool program.
&lt;STRONG&gt;1.&lt;/STRONG&gt;
Define the selection-screen as subscreen in the top include of module pool program.
create modulepool program&lt;/SPAN&gt; &lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;SAPMZ_SELOPT&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;
Place the below code.or u can define that in top include.

&lt;PRE&gt;&lt;CODE&gt;REPORT  SAPMZ_SELOPT.
TABLES :pa0001.
SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.
SELECT-OPTIONS: p_bukrs FOR pa0001-bukrs.
SELECTION-SCREEN END OF SCREEN 100.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;STRONG&gt;2.&lt;/STRONG&gt;
Goto garphical layout editor, drag Subscreen and drop on screen means define Subscreen area on the screen.
Place the below code in the PBO.

&lt;PRE&gt;&lt;CODE&gt;process before output.
" MODULE STATUS_1001.
call subscreen sub_area including 'SAPMZ_SELOPT' '100'.
process after input.
" MODULE USER_COMMAND_1001.&lt;/CODE&gt;&lt;/PRE&gt;

Its working fine. We can write code like that as well.

I hope that your problem is solved

Regards,
Venkat.O

&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 11:44:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-module-pool/m-p/3636458#M875775</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2008-04-03T11:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: select-options in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-module-pool/m-p/3636459#M875776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create a selection screen in r Top Include of your module pool pgm and call this selection-screen from PBO using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL SELECTION-SCREEN dynnr &lt;/P&gt;&lt;P&gt;                      [STARTING AT col1 lin1 &lt;/P&gt;&lt;P&gt;                      [ENDING   AT col2 lin2]] &lt;/P&gt;&lt;P&gt;                      [USING SELECTION-SET variant].&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2008 08:55:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-module-pool/m-p/3636459#M875776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-04T08:55:23Z</dc:date>
    </item>
  </channel>
</rss>

