<?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 Program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program/m-p/3971247#M948567</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you cant make direclty like that.&lt;/P&gt;&lt;P&gt;So, do one thing.&lt;/P&gt;&lt;P&gt;write this code in the MAIN program.&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 : EBELN FOR V_EBELN MODIF ID G1,&lt;/P&gt;&lt;P&gt;                 VBELN FOR V_VBELN MODIF ID G2.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF SCREEN 100 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in The PAI of your Module Pool screen, &lt;/P&gt;&lt;P&gt;write :&lt;/P&gt;&lt;P&gt;call selection-screen 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this way you can achieve.&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;Sandeep Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jun 2008 12:34:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-19T12:34:06Z</dc:date>
    <item>
      <title>Module Pool Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program/m-p/3971242#M948562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have made a custom screen.&lt;/P&gt;&lt;P&gt;I am trying to make one of its field as select option.&lt;/P&gt;&lt;P&gt;How do i do that???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 12:17:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program/m-p/3971242#M948562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T12:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Module Pool Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program/m-p/3971243#M948563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hii...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seelct options do not work in module pool prgraming ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we have to use ranges insted of select options ....&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;regrds &lt;/P&gt;&lt;P&gt;chandu reddy...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 12:20:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program/m-p/3971243#M948563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T12:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Module Pool Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program/m-p/3971244#M948564</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;Call your module pool program from report program .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this way you will have both selection screen and module pool output later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 12:24:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program/m-p/3971244#M948564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T12:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Module Pool Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program/m-p/3971245#M948565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hiii&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use two input text fields &amp;amp; to make it working like Select-Option you can write code for that input fields,Like for Low &amp;amp; high values..because Select-Option will not work here.Can manually enter values like in Ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;P&gt;twinkal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 12:27:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program/m-p/3971245#M948565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T12:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Module Pool Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program/m-p/3971246#M948566</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;select-option is not possible in the module-pool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So create 2 field in the screen.&lt;/P&gt;&lt;P&gt;Create a search help for that field and then we can find the search help option in the properties of the field in the module pool. Assign the search help to that particular fields in the module pool screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then check the 2 fields as low and high  for multiple selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it is useful for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;Deepika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 12:29:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program/m-p/3971246#M948566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T12:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Module Pool Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program/m-p/3971247#M948567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you cant make direclty like that.&lt;/P&gt;&lt;P&gt;So, do one thing.&lt;/P&gt;&lt;P&gt;write this code in the MAIN program.&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 : EBELN FOR V_EBELN MODIF ID G1,&lt;/P&gt;&lt;P&gt;                 VBELN FOR V_VBELN MODIF ID G2.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF SCREEN 100 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in The PAI of your Module Pool screen, &lt;/P&gt;&lt;P&gt;write :&lt;/P&gt;&lt;P&gt;call selection-screen 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this way you can achieve.&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;Sandeep Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 12:34:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program/m-p/3971247#M948567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T12:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: Module Pool Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program/m-p/3971248#M948568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Best option is to go for a report program&lt;/P&gt;&lt;P&gt;If still you need to go for module pool there is one solution.&lt;/P&gt;&lt;P&gt;1. Define a subscreen on ur screen.&lt;/P&gt;&lt;P&gt;2. Define The screen as we do in report program but with addition 'AS SUBSCREEN' .&lt;/P&gt;&lt;P&gt;3.call the subscreen in ur flow logic of main screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Following code may help.&lt;/P&gt;&lt;P&gt;define this in ur top include.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECTION-SCREEN BEGIN OF SCREEN 200 AS SUBSCREEN.
SELECT-OPTIONS:
                s_vkorg1  FOR zadvhead-vkorg  NO-EXTENSION NO INTERVALS,
SELECTION-SCREEN END OF SCREEN 200.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in screen flow logic&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROCESS BEFORE OUTPUT.
CALL SUBSCREEN subscr_is1 INCLUDING sy-repid dynnr_is1.
"dynnr_is1 = 0200 &amp;amp; subscr_is1 = subscreen area name

PROCESS AFTER INPUT.
 CALL SUBSCREEN subscr_is1.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 12:37:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program/m-p/3971248#M948568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T12:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Module Pool Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program/m-p/3971249#M948569</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 not create the Select-Options in module pool program.&lt;/P&gt;&lt;P&gt;   Use RANGES to resemble like select-options on the screen as below.&lt;/P&gt;&lt;P&gt;TABLES KNA1.&lt;/P&gt;&lt;P&gt;RANGES: R_KUNNR FOR KNA1-KUNNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R_KUNNR-LOW     to   R_KUNNR-HIGH  (put the fields on the screen &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like this and fill the ranges with OPTION and SIGN and use in SELECT query as per your requirement)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 12:37:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program/m-p/3971249#M948569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T12:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Module Pool Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program/m-p/3971250#M948570</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;Create a sub screen on a custom screen. Design a selection screen in your program as subscreen ( syntax: SELECTION-SCREEN BEGIN OF SCREEN &amp;lt;SCRNUMBER&amp;gt; AS SUBSCREEN,   define the fields with select-options same is in your report. SELECTION-SCREEN END OF SCREEN &amp;lt;SCRNUMBER&amp;gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call this subscreen&amp;lt;SCRNUMBER&amp;gt; in above created custom screen subscreen area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have any questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rajinikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 12:39:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program/m-p/3971250#M948570</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T12:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: Module Pool Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program/m-p/3971251#M948571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Method 1&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------" /&gt;&lt;P&gt;a) Create a subscreen area in your screen layout where you want to create the select options.&lt;/P&gt;&lt;P&gt;b) In the top include of  your module pool program declare a selection screen as a subscreen e.g.&lt;/P&gt;&lt;P&gt;       SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.&lt;/P&gt;&lt;P&gt;             select-options s_matnr for mara-matnr.&lt;/P&gt;&lt;P&gt;       SELECTION-SCREEN END OF SCREEN.&lt;/P&gt;&lt;P&gt;c) In the PBO and PAI of the main screen where the select options needs to be created do a call subscreen of the above screen (100).&lt;/P&gt;&lt;P&gt;       CALL SUBCREEN sub_area INCLUDING  &amp;lt;program&amp;gt;   &amp;lt;screen&amp;gt;&lt;/P&gt;&lt;P&gt;  This call subscreen statement is necessary for transport of values between screen and program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: All validations of the selection screen fields e.g. the s_matnr field created above should be done in selection screen events like AT SELECTION-SCREEN etc and not in PAI. These selection screen validations etc should be done in the top include only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Method 2&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------" /&gt;&lt;P&gt;a) Create 2 separate fields in your screen layout - one for the low value and one for the high value. Insert an icon beside the high value which will call the multiple selections popup screen on user command. Use function module COMPLEX_SELECTIONS_DIALOG to achieve this. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
struc_tab_and_field-fieldname = con_cust.  " 'KUNNR'
 struc_tab_and_field-tablename = con_kna1.  " 'KNA1'.

CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
          EXPORTING
*           TITLE                        = ' '
            text                         = g_titl1   " 'Customers'
            tab_and_field                = struc_tab_and_field
          TABLES
            RANGE                        = rng_kunnr
          EXCEPTIONS
            NO_RANGE_TAB                 = 1
            CANCELLED                    = 2
            INTERNAL_ERROR               = 3
            INVALID_FIELDNAME            = 4
            OTHERS                       = 5.

IF NOT rng_kunnr[] IS INITIAL.
*          Read the very first entry of the range table and pass it to
*          dynpro screen field
           READ TABLE rng_kunnr INDEX 1.
           IF sy-subrc = 0.
              g_cust = rng_kunnr-low.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;You can use the return table rng_kunnr to populate your own internal range table with the values entered by the user. Basically here you are just simulating the work of a select-options parameter by module pool screen elements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 13:06:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program/m-p/3971251#M948571</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T13:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Module Pool Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program/m-p/3971252#M948572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot ..... My problem is solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 12:16:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program/m-p/3971252#M948572</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T12:16:13Z</dc:date>
    </item>
  </channel>
</rss>

