<?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: module pool in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/3557948#M856121</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks , but I m nt getting where 2 write that code in pbo or in pai .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Mar 2008 13:08:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-31T13:08:03Z</dc:date>
    <item>
      <title>module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/3557946#M856119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hello gurus ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hw can I create select-option in a module pool prog , is there any way , plz help .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I m waiting for your rply .&lt;/STRONG&gt;&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks in advance .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards ,&lt;/P&gt;&lt;P&gt;Joy Chakravorty .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2008 11:53:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/3557946#M856119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-31T11:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/3557947#M856120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Joy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The main idea of module pool is to create screens and put fields in them....but select options can also be used to take initial data from the user and do processing accordingly..some sample code is given below....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create a program in se38 and create screen 100 for it.&lt;/P&gt;&lt;P&gt;in the screen 100 put some fields using the screen painter.&lt;/P&gt;&lt;P&gt;and in the main program copy the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : int_vbap type table of vbap with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select-options: S_ABC for VBELN_VA.&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;Select * from VBAP into table int_vbap where &lt;/P&gt;&lt;P&gt;VBELN in S_ABC.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;call screen 100.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;Message 'Invalid data' type 'I'.&lt;/P&gt;&lt;P&gt;Exit.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so if the sy-subrc fails..it gives a message...then it will not go to the next screen 100...so we did use select-options in a module pool program...&lt;STRONG&gt;we can use select options in the same way we do for a report provided they are used for the initial screen in a module pool&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;You can use select-options to replace initial screen which can be created using a screen separately in the module pool meant to fetch data from user for further processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have a specific requirement pls mention that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful&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>Mon, 31 Mar 2008 12:53:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/3557947#M856120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-31T12:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/3557948#M856121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks , but I m nt getting where 2 write that code in pbo or in pai .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2008 13:08:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/3557948#M856121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-31T13:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/3557949#M856122</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;
Hi joy,
Select-option creation is not possible to be frankly on the screen by module pool. But what  &lt;STRONG&gt;Byju&lt;/STRONG&gt; trying to say is that Create one report with Selection-screen by giving Select-Option and call another Screen by using statement CALL SCREEN 100. when you double click on screen 100. screen 100 displayed and do whatever u want on the 100.

Is that right Byju ??

Regards,
Venkat.O
&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2008 13:41:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/3557949#M856122</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2008-03-31T13:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/3557950#M856123</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;
Joy,
That day i just tried to explain what &lt;STRONG&gt;Byju&lt;/STRONG&gt; said. Now i am coming with solution for your requirement. Please go through that.

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>Wed, 02 Apr 2008 07:08:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/3557950#M856123</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2008-04-02T07:08:49Z</dc:date>
    </item>
  </channel>
</rss>

