<?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: general in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2170948#M460431</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naga,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/forums" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/forums&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 May 2007 10:34:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-02T10:34:37Z</dc:date>
    <item>
      <title>general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2170941#M460424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the exact diff between set screen,call screen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 10:28:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2170941#M460424</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T10:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2170942#M460425</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;1) Call Screen: Calling a single screen can be used for embedding a screen sequence. If you want to prevent the called screen from covering the current screen completely (say u want 2 display both screen) you can use the CALL SCREEN statement with the STARTING AT and ENDING AT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL SCREEN 200&lt;/P&gt;&lt;P&gt;If we write this statement in screen 100 ,it will goto screen 200 and it will retain screen 100(ie u can come back)&lt;/P&gt;&lt;P&gt;and moreover u have options using this&lt;/P&gt;&lt;P&gt;CALL SCREEN 200 STARTING AT x1 y1 ENDING AT x2 y2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) If we use set screen first the processing blocks in the present screen will be executed and control goes to the screen which is called.&lt;/P&gt;&lt;P&gt;in this control remains in that calling screen only, it doesnt come back to our screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)In screen 100,we call screen 200.The PBO and PAI of screen 200 is processed.Now in screen 200,if we use leave to screen 100,the processing starts from screen 100 after the call screen 200 statement.The PBO and the PAI of screen 100 need not be processed again from the beginning in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) That is if we use leave to screen,the control goes back to the screen from which the present screen was called and continues with the processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET SCREEN 200&lt;/P&gt;&lt;P&gt;1) With the above statement , it will goto screen 200 and screen 100 no more remains&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Screen No 0 : This special screen number causes the screen to jump back to the calling screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set screen 0 used to go back to the previous screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nilesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 10:30:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2170942#M460425</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T10:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2170943#M460426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SET SCREEN scr. 


Effect 
In ABAP dialogs: Sets the number of the next screen. 
Screen number scr is then processed when the current screen has finished. 



Example
SET SCREEN 200. 



Notes 
To leave a CALL SCREEN chain or return to the application menu, use one of the following statements: 

SET SCREEN 0. or LEAVE TO SCREEN 0. 



Please consult Data Area and Modularization Unit Organization documentation as well. 

CALL SCREEN - Call a screen 


Basic form 
CALL SCREEN scr. 


Addition: 
... STARTING AT x1 y1 ... ENDING AT x2 y2 



Effect 
Calls the screen scr; scr is the number of a screen of the main program. You use SET SCREEN 0. or LEAVE SCREEN. to define the return from the CALL screen. 



Addition 
... STARTING AT x1 y1  ENDING AT x2 y2 


Effect 
The coordinates x1, y1 (start column and start line in the window) and x2, y2 (end column and end line in the window) define the size and position of the CALL screen ("top left - bottom right"). Besides these coordinates, you can also see the contents of the primary window, but cannot perform any action there. 



Note 
If "ENDING AT ..." is not specified, suitable values are substituted for x2 and y2, taking into account the size of the called screen. 



Note 
Runtime errors: 



DYNP_TOO_MANY_CALL_SCREENS: No further screen level (call screen); the maximum number of nested screen levels is restricted to 50 at present. 


Additional help 
Calling Screen Sequences 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If useful reward.&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 10:30:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2170943#M460426</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T10:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2170944#M460427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naga, &lt;/P&gt;&lt;P&gt;1. CALL SCREEN and SET SCREEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The difference lies in the NEXT Statement...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When Call Screen, the new screen comes, and after that new screen is exited, the control COMES BACK TO THE ORIGNAL SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whereas in SET SCREEN,&lt;/P&gt;&lt;P&gt;The PAI is FIRST COMPLETED, and then, independetly,&lt;/P&gt;&lt;P&gt;the another screen comes, and proceeds further independently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. LEAVE SCREEN and LEAVE TO SCREEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leave Screen - Simply leaves the current screen,&lt;/P&gt;&lt;P&gt;and goes back from where it came&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leave to screen - Branches to a particular screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Reward Points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amber Soni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 10:32:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2170944#M460427</guid>
      <dc:creator>former_member198270</dc:creator>
      <dc:date>2007-05-02T10:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2170945#M460428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For Set Screen:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement sets thescreen with the screen number specified in dynnr, as the next screen for processing of the current screen. For dynnr, a data object of type n and length 4 is expected. It must contain either the screen number of a screen in the main program of the current program group or the value 0, otherwise a non-catchable exception will be triggered. The specified next screen overwrites the previously-set next screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The next screen is automatically called when the system finishes the PAI processing of the current screen. If the screen number of the next screen is 0, the current next screen is ended. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One next screen is always set during the processing of a screen. After you call a screen, the next screen whose characteristics are defined statically, applies; this next screen can be overwritten with the SET SCREEN statement for the duration of the actual next screen processing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call screen:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement calls the dynpro with the dynpro number specified in dynnr. For dynnr, a data object of type n and length 4 is expected. The call starts a new dynpro sequence, which is embedded into the current dynpro sequence. The dynpro with dynpro number dynnr is the initial dynpro of the dynpro sequence. In a dynpro sequence started by a transaction code, you can nest up to 50 other dynpro sequences. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;difference between SET SCREEN and CALL SCREEN :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With SET SCREEN, the current screen simply specifies the next screen in the chain. control branches to this next screen as soon as the current screen has been processed. Return from next screen to current screen is not automatic. It does not&lt;/P&gt;&lt;P&gt;interrupt processing of the current screen. If we want to branch to the next screen without finishing the current one, use LEAVE SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With CALL SCREEN, the current (calling) chain is suspended, and a next screen (or screen chain) is called in. The called screen can then return to the suspended chain with the statement LEAVE SCREEN TO SCREEN 0. Sometimes we might want to let an user call a popup screen from the main application screen to let them enter secondary information. After they have completed their entries, the users should be able to close the popup and return directly to the place where they left off in the main screen. Here comes CALL SCREEN into picture. This statement lets us insert such a sequence into the current one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jayant &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please award if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 10:32:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2170945#M460428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T10:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2170946#M460429</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;If u Call screen 200 from screen 100 it will take u to screen 200 without killing 100.&lt;/P&gt;&lt;P&gt;with set screen 200 from screen 100 it will kill 100(u cant come back) it will go to 200&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call Screen&lt;/P&gt;&lt;P&gt;Calls the screen scr; scr is the number of a screen of the main program. You use SET SCREEN 0. or LEAVE SCREEN. to define the return from the CALL screen. &lt;/P&gt;&lt;P&gt;SET SCREEN&lt;/P&gt;&lt;P&gt;Calls the screen scr; scr is the number of a screen of the main program. You use SET SCREEN 0. or LEAVE SCREEN. to define the return from the CALL screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if it helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 10:33:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2170946#M460429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T10:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2170947#M460430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mrudula,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call screen scr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calls the screen scr; scr is the number of a screen of the main program. You use SET SCREEN 0. or LEAVE SCREEN. to define the return from the CALL screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call Screen is used to define a screen and then call it.&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;Ravi G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 10:33:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2170947#M460430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T10:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2170948#M460431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naga,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/forums" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/forums&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 10:34:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2170948#M460431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T10:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2170949#M460432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Starting Lists from Screen Processing &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This section describes how to switch from screen processing to list processing. It contains a short technical introduction, followed by a recommended procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Switching Between Screen and List Processing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screen processing always involves a screen sequence that you start either using CALL SCREEN or a transaction code. During screen processing, the ABAP program is controlled by the dialog processor. In the ABAP program, the PBO and PAI modules are executed as they are called from the screen flow logic. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To pass control from the dialog processor to the list processor, you must include the following statement in one of the dialog modules:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEAVE TO LIST-PROCESSING [AND RETURN TO SCREEN &amp;lt;nnnn&amp;gt;].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can include this statement in either the PBO or the PAI event. Its effect is to start the list processor and display the basic list after the PAI processing of the current screen. The basic list contains any list output from all PBO and PAI modules that have been executed up to that point. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If detail lists are defined in the corresponding event blocks of the ABAP program (AT LINE-SELECTION, AT USER-COMMAND), user actions on the basic list will lead to the detail list, and further interaction will lead to further list levels.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can leave list processing in two ways:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By leaving the basic list using the Back, Exit, or Cancel function. &lt;/P&gt;&lt;P&gt;By using the following statement during list processing: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEAVE LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;In both cases, control returns from the list processor to the dialog processor. Each time this occurs, the entire list system is initialized. Any subsequent list output statements in PBO and PAI modules apply to an empty basic list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By default, the dialog processor returns to the PBO processing of the screen from which the list processor was called. The optional addition AND RETURN TO SCREEN allows you to specify a different screen in the current screen sequence at whose PBO event you want to resume processing. In particular, the statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can be used to end the current screen sequence and return to the point from which it had originally been called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Recommended Procedure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to display lists during screen processing, you should create a separate screen for each list system that you want to call. This screen encapsulates the creation and display of the basic list. It can then be called from anywhere in the program using CALL SCREEN. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The actual screen mask of this screen can remain empty. You do not need any PAI modules, and only a single PBO module. In the PBO module, you define the basic list of the list system and call the list processor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, use the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;statement to call the list display at the end of the screen, and to ensure that, after leaving the list, you return to the point from which the screen was called. &lt;/P&gt;&lt;P&gt;Next, set a GUI status for the list; for example, the default list status SPACE or a list status of your own. &lt;/P&gt;&lt;P&gt;Use one of the following statements to ensure that the empty screen is not displayed:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUPPRESS DIALOG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEAVE SCREEN. Instead, the list is displayed immediately at the end of the screen. &lt;/P&gt;&lt;P&gt;Now define the entire basic list, and place any necessary data in the HIDE area. &lt;/P&gt;&lt;P&gt;If you want to process user actions on the list, you need to define the relevant event blocks in your ABAP program. If you want to call more than one independent list system in the program, you must ensure that you can tell them apart in the list event processing. You cannot do this using SY-DYNNR, since the container screen for a list is always number 120. Instead, you could assign a different GUI status to each list, and distinguish between the list systems using the value of SY-PFKEY, or you could place some unique information in the HIDE area of each list system. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT demo_leave_to_list_processing .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES sdyn_conn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: wa_spfli TYPE spfli,&lt;/P&gt;&lt;P&gt;      flightdate TYPE sflight-fldate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL SCREEN 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE status_0100 OUTPUT.&lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'SCREEN_100'.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE cancel INPUT.&lt;/P&gt;&lt;P&gt;  LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE user_command_0100.&lt;/P&gt;&lt;P&gt;  CALL SCREEN 500.&lt;/P&gt;&lt;P&gt;  SET SCREEN 100.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE call_list_500 OUTPUT.&lt;/P&gt;&lt;P&gt;  LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.&lt;/P&gt;&lt;P&gt;  SET PF-STATUS space.&lt;/P&gt;&lt;P&gt;  SUPPRESS DIALOG.&lt;/P&gt;&lt;P&gt;  SELECT  carrid connid cityfrom cityto&lt;/P&gt;&lt;P&gt;    FROM  spfli&lt;/P&gt;&lt;P&gt;    INTO  CORRESPONDING FIELDS OF wa_spfli&lt;/P&gt;&lt;P&gt;    WHERE carrid = sdyn_conn-carrid.&lt;/P&gt;&lt;P&gt;    WRITE: / wa_spfli-carrid, wa_spfli-connid,&lt;/P&gt;&lt;P&gt;             wa_spfli-cityfrom, wa_spfli-cityto.&lt;/P&gt;&lt;P&gt;    HIDE: wa_spfli-carrid, wa_spfli-connid.&lt;/P&gt;&lt;P&gt;  ENDSELECT.&lt;/P&gt;&lt;P&gt;  CLEAR: wa_spfli-carrid.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TOP-OF-PAGE.&lt;/P&gt;&lt;P&gt;  WRITE text-001 COLOR COL_HEADING.&lt;/P&gt;&lt;P&gt;  ULINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TOP-OF-PAGE DURING LINE-SELECTION.&lt;/P&gt;&lt;P&gt;  WRITE sy-lisel COLOR COL_HEADING.&lt;/P&gt;&lt;P&gt;  ULINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT LINE-SELECTION.&lt;/P&gt;&lt;P&gt;  CHECK not wa_spfli-carrid is initial.&lt;/P&gt;&lt;P&gt;  SELECT  fldate&lt;/P&gt;&lt;P&gt;    FROM  sflight&lt;/P&gt;&lt;P&gt;    INTO  flightdate&lt;/P&gt;&lt;P&gt;    WHERE carrid = wa_spfli-carrid AND&lt;/P&gt;&lt;P&gt;          connid = wa_spfli-connid.&lt;/P&gt;&lt;P&gt;     WRITE / flightdate.&lt;/P&gt;&lt;P&gt;  ENDSELECT.&lt;/P&gt;&lt;P&gt;  CLEAR: wa_spfli-carrid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This example switches to list processing during the screen processing for screen 100. Screen 100 has a single input field - the component CARRID from the ABAP Dictionary structure SDYN_CONN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has the following flow logic:&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;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;  MODULE CANCEL AT EXIT-COMMAND.&lt;/P&gt;&lt;P&gt;  MODULE USER_COMMAND_0100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The PAI module USER_COMMAND_100 calls screen 500 using the CALL SCREEN statement. This screen encapsulates a basic list. It has the following flow logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;  MODULE CALL_LIST_500.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The module CALL_LIST_500 defines the basic list and switches to list processing. Since the next screen after list processing is screen 0, screen 500 is a one-screen screen chain. After list processing, control returns to the position in USER_COMMAND_100 from which screen 500 was called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the user selects a line on the basic list, a detail list appears. This is achieved through the event block AT LINE-SELECTION. The program also contains event blocks for TOP-OF-PAGE and TOP-OF-PAGE DURING LINE-SELECTION, which define page headers for both the basic list and detail list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since there is only one list system in this program, there is no need for case distinctions within the list events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, check....&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9d2f35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9d2f35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 10:35:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2170949#M460432</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T10:35:20Z</dc:date>
    </item>
  </channel>
</rss>

