<?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: Interval in the module pool selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/interval-in-the-module-pool-selection-screen/m-p/5285907#M1219702</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;simplify it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  z_subscreen.
TABLES t001.
SELECTION-SCREEN BEGIN OF SCREEN 9001 AS SUBSCREEN.
SELECT-OPTIONS s_bukrs FOR t001-bukrs.
SELECTION-SCREEN END OF SCREEN 9001.

START-OF-SELECTION.
  CALL SCREEN 9000.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  status_9000  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE status_9000 OUTPUT.
  SET PF-STATUS 'PF_9000'.
ENDMODULE.                 " status_9000  OUTPUT

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  exit  INPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE exit INPUT.
  LEAVE PROGRAM.
ENDMODULE.                 " exit  INPUT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PBO&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;  MODULE status_9000.&lt;/P&gt;&lt;P&gt;  CALL SUBSCREEN sub INCLUDING sy-repid '9001'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PAI&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;  CALL SUBSCREEN sub.&lt;/P&gt;&lt;P&gt;  MODULE exit AT EXIT-COMMAND.&lt;/P&gt;&lt;P&gt;  MODULE user_command_9000.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Mar 2009 06:54:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-10T06:54:37Z</dc:date>
    <item>
      <title>Interval in the module pool selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interval-in-the-module-pool-selection-screen/m-p/5285905#M1219700</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;   I am creating selection screen in module pool program. I know how to set search help for each field.&lt;/P&gt;&lt;P&gt;But if I have select-options like fields, how can I have "Interval button". Is there any fuction module for that? should I use ranges?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 05:52:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interval-in-the-module-pool-selection-screen/m-p/5285905#M1219700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T05:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Interval in the module pool selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interval-in-the-module-pool-selection-screen/m-p/5285906#M1219701</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;Follow these steps:-&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;To implement select-options in module pool, first design two input/output fields (textboxes) for the low&lt;/STRONG&gt; &lt;STRONG&gt;and high value of the field and name it as &amp;lt;field_name&amp;gt;-low and &amp;lt;field_name&amp;gt;-high.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Create a button next the high value textbox and keep its sutaible function code.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Now, to call the pop-up on this button click, we have to call the same pop-up as in standard&lt;/STRONG&gt;      &lt;STRONG&gt;select-options. For this we have to use the function module COMPLEX_SELECTIONS_DIALOG.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For this FM we have to pass the table name, field name and the range for the field whose range needs&lt;/STRONG&gt; &lt;STRONG&gt;to fill when using the popup screen.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;To pass the table name and field name details into the FM, we have to declare as:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : tab TYPE rstabfield.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This structure comprises of table name and field name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass these details in program as:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;u2003
*-- clear table and field details
  CLEAR tab.

*-- append for range depending on the button clicked
*   either for sales order or line item
  CASE sy-ucomm.
    WHEN 'VBELN'.
      tab-tablename = 'VBAP'.
      tab-fieldname = 'VBELN'.

*--To call the popup screen for the field use code:-
  CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
    EXPORTING
      title             = text-002  u201Ctitle text
      text              = ' '
      signed            = 'X'
      search_help       = v_shelp u201Csearch help if required
      tab_and_field     = tab u201Ctable and field name details
    TABLES
      range             = r_vbeln u201Crange for the associated field
    EXCEPTIONS
      no_range_tab      = 1
      cancelled         = 2
      internal_error    = 3
      invalid_fieldname = 4
      OTHERS            = 5.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 05:56:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interval-in-the-module-pool-selection-screen/m-p/5285906#M1219701</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-03-10T05:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Interval in the module pool selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interval-in-the-module-pool-selection-screen/m-p/5285907#M1219702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;simplify it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  z_subscreen.
TABLES t001.
SELECTION-SCREEN BEGIN OF SCREEN 9001 AS SUBSCREEN.
SELECT-OPTIONS s_bukrs FOR t001-bukrs.
SELECTION-SCREEN END OF SCREEN 9001.

START-OF-SELECTION.
  CALL SCREEN 9000.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  status_9000  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE status_9000 OUTPUT.
  SET PF-STATUS 'PF_9000'.
ENDMODULE.                 " status_9000  OUTPUT

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  exit  INPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE exit INPUT.
  LEAVE PROGRAM.
ENDMODULE.                 " exit  INPUT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PBO&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;  MODULE status_9000.&lt;/P&gt;&lt;P&gt;  CALL SUBSCREEN sub INCLUDING sy-repid '9001'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PAI&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;  CALL SUBSCREEN sub.&lt;/P&gt;&lt;P&gt;  MODULE exit AT EXIT-COMMAND.&lt;/P&gt;&lt;P&gt;  MODULE user_command_9000.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 06:54:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interval-in-the-module-pool-selection-screen/m-p/5285907#M1219702</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T06:54:37Z</dc:date>
    </item>
  </channel>
</rss>

