<?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: Selection screen processing in Module pool in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-processing-in-module-pool/m-p/1008111#M78282</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Feb 2007 11:50:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-26T11:50:23Z</dc:date>
    <item>
      <title>Selection screen processing in Module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-processing-in-module-pool/m-p/1008104#M78275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am preparing a module pool, in which from one screen, i have to call a selection screen. I want to define this selection screen in the same program. Under which event block, i can define this selection screen? &lt;/P&gt;&lt;P&gt;Once its called, how can i process the selection screen ( like START-OF-SELECTION etc ?). If i use a LEAVE TO LIST-PROCESSING to display some output, how can i process the user actions in this list? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking you in anticipation.&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2005 13:39:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-processing-in-module-pool/m-p/1008104#M78275</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-06T13:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen processing in Module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-processing-in-module-pool/m-p/1008105#M78276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this particular case,  I would suggest using a separate report program to handle your selection screen and report output.  I don't think that its worth the hassle or the code confustion.   Develop you report in another report program and the call it in your module pool using the SUBMIT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2005 13:45:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-processing-in-module-pool/m-p/1008105#M78276</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-10-06T13:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen processing in Module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-processing-in-module-pool/m-p/1008106#M78277</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 executable program with selection screen and include all your logic and create a tcode for that also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call that report program from your module pool PAI event by using submit / call transaction &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2005 13:46:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-processing-in-module-pool/m-p/1008106#M78277</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-06T13:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen processing in Module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-processing-in-module-pool/m-p/1008107#M78278</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 have to define your selection-screen in the top include: use the statament 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;PARAMETERS: P_BUKRS LIKE T001-BUKRS.&lt;/P&gt;&lt;P&gt;SELECT-OPTION: S_VBELN FOR VBAK-VBELN.&lt;/P&gt;&lt;P&gt;.............&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END   OF SCREEN 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After you should create a main screen when you call selection-screen in PBO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS PBO&lt;/P&gt;&lt;P&gt;  MODULE SELECTION_SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE SELECTION_SCREEN.&lt;/P&gt;&lt;P&gt;  CALL SELECTION-SCREEN 100.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;*------&amp;gt; User press F8&lt;/P&gt;&lt;P&gt;    PERFORM WRITE_DATA.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;*------&amp;gt; User press back, exit&lt;/P&gt;&lt;P&gt;  ENDIF. &lt;/P&gt;&lt;P&gt;ENDMODULE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM WRITE_DATA.&lt;/P&gt;&lt;P&gt;  LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.&lt;/P&gt;&lt;P&gt;  WRITE P_BUKRS.&lt;/P&gt;&lt;P&gt;  LEAVE SCREEN.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: max bianchi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2005 13:50:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-processing-in-module-pool/m-p/1008107#M78278</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-06T13:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen processing in Module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-processing-in-module-pool/m-p/1008108#M78279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi deepak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Welcome to SDN world.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;may be this can help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2004/helpdata/en/47/e07f682b9911d2954f0000e8353423/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2004/helpdata/en/47/e07f682b9911d2954f0000e8353423/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points for helpfull answers by clicking left side radio buttons and close the thread if your question is solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2005 13:55:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-processing-in-module-pool/m-p/1008108#M78279</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-06T13:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen processing in Module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-processing-in-module-pool/m-p/1008109#M78280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your reply. It was really helpfull. But my problem is not yet solved. &lt;/P&gt;&lt;P&gt;When i call the selection screen from the PBO of a screen, the selection screen is not being displayed. Only the blank screen is displayed. So i tried another way. I put the CALL SELECTION-ECREEN  statement in the USER_COMMAN_100 module of PAI of the previous screen. (ie when user choose a button from the tool bar, in the initial screen the selection screen will be displayed.) &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
module user_command_0100 input.
  OK_SAVE = OK100.
  CLEAR OK100.
  CASE OK_SAVE.
    WHEN 'LIST'.
      CALL SELECTION-SCREEN 200.
      IF SY-SUBRC = 0.
        PERFORM PROCESS_LIST.
      ELSE.
        leave screen.
      ENDIF.
 ....
endmodule.                 " USER_COMMAND_0100  INPUT

form process_list.
... reading database...
IF SY-SUBRC = 0.
  LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 100.
  SET PF-STATUS 'GUI_LIST'.
    LOOP AT ITAB.
      WRITE :/ ITAB-BUKRS, ITAB-BELNR, ITAB-GJAHR.
    ENDLOOP.
  LEAVE SCREEN.
  ENDIF.
endform.                    " PROCESS_LIST
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i have two problems to solve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I want to come back to the same selection screen (screen no 200) instead of screen 100, when the user click 'back' button in the list. but if i specify screen no 200 in &lt;/P&gt;&lt;P&gt;LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 100.&lt;/P&gt;&lt;P&gt;it gives runtime error. ( Msg: Selection screen ZTEST3 0200 was not called using CALL SELECTION-SCREEN). How to return back to selection screen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. If the user selects a line from the list(PICK/F2), that value has to be passed to the input field of first screen( ie the initial screen from where i called the selection screen : screen no 100) For this, where can i write the code to process the user actions in the list?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking you in anticipation&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2005 06:46:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-processing-in-module-pool/m-p/1008109#M78280</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-07T06:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen processing in Module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-processing-in-module-pool/m-p/1008110#M78281</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 this code&lt;/P&gt;&lt;P&gt;The selection screen is 1000 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND_9000 INPUT.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  OK_CODE = sy-ucomm.&lt;/P&gt;&lt;P&gt;  CASE OK_CODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WHEN'CANCEL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;b&amp;gt; IF SY-DYNNR = '1000' .&lt;/P&gt;&lt;P&gt;      LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;     CALL SELECTION-SCREEN '1000'.&lt;/P&gt;&lt;P&gt;     LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;     CLEAR : OK_CODE.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WHEN 'EXIT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;    IF SY-DYNNR = '1000' .&lt;/P&gt;&lt;P&gt;      LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    LEAVE TO SCREEN '0'.&lt;/P&gt;&lt;P&gt;    CLEAR : OK_CODE.&amp;lt;/b&amp;gt;  WHEN 'BACK' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;b&amp;gt; IF SY-DYNNR = '1000' .&lt;/P&gt;&lt;P&gt;      LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;     CALL SELECTION-SCREEN '1000'.&lt;/P&gt;&lt;P&gt;     LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;     CLEAR : OK_CODE.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WHEN 'SAVE'.&lt;/P&gt;&lt;P&gt;    PERFORM UPDATE_DB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Oct 2005 10:37:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-processing-in-module-pool/m-p/1008110#M78281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-23T10:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen processing in Module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-processing-in-module-pool/m-p/1008111#M78282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 11:50:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-processing-in-module-pool/m-p/1008111#M78282</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T11:50:23Z</dc:date>
    </item>
  </channel>
</rss>

