Skip to Content
author's profile photo Former Member
Former Member

WINDOW STARTING AT

Hi

My question is why does not a dialog window popup when i code it in START OF SELECTION event. All i get is a full screen. But when i use the same in AT LINE SELECTION, i am able to get a popup Dialog window. I know the working of a Dialog window. This is my only doubt in this.

Murli.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 28, 2005 at 04:46 AM

    Hi SM,

    if u r using the WINDOW keyword, then u can not use it in START-OF-SELECTION as it works in the event blocks for interactive list events (AT LINE-SELECTION)

    u can read the following extract from the documentation...

    ****************************************************

    WINDOW

    Syntax

    WINDOW STARTING AT col1 lin1

    [ENDING AT col2 lin2].

    Effect

    This statement initiates the display of the currently created details list in a dialog box. <b>It functions in the event blocks only for an interactive list event</b>. In the case of several WINDOW statements in an event block, the last one is valid.

    The upper left corner is determined for the column and the line by the values in col1 and lin1. The values are based on the basic list window. The lower right corner is set automatically. The maximum lower right corner can either be specified in col2 and lin2 or is specified using the lower right corner of the window, where the list event took place.

    For col1, lin1, col2 und lin2, data objects of type i are expected. The values of all data objects should lie within the basic list window, and the values of col1 and lin1 should be less than those of col2 and lin2. Otherwise, the behavior is undefined.

    If no GUI-Status is set with SET PF-STATUS and an event block is defined with AT LINE-SELECTION or AT PF## , the system automatically uses a standard list status suitable for the dialog box without a menu and symbol bar. this includes pushbuttons for the predefined function codes "PICK" (only for AT LINE-SELECTION), "PRI", "%SC", "%SC+" and "RW" in the application bar.

    Note

    If a GUI-Status is set with SET PF-STATUS, this should be created in the Menu Painter as a dialog box status; the list template should also be included.

    Example

    This example displays the details of an airline in a dialog box after selecting a line.

    DATA: scarr_wa TYPE scarr,

    col TYPE i,

    lin TYPE i.

    START-OF-SELECTION.

    SELECT carrid

    FROM scarr

    INTO scarr_wa-carrid.

    WRITE / scarr_wa-carrid.

    HIDE scarr_wa-carrid.

    ENDSELECT.

    CLEAR scarr_wa-carrid.

    AT LINE-SELECTION.

    col = sy-cucol + 40.

    lin = sy-curow + 2.

    WINDOW STARTING AT sy-cucol sy-curow

    ENDING AT col lin.

    IF sy-lsind = 1 AND

    scarr_wa-carrid IS NOT INITIAL.

    SELECT SINGLE carrname url

    FROM scarr

    INTO (scarr_wa-carrname,scarr_wa-url)

    WHERE carrid = scarr_wa-carrid.

    WRITE: scarr_wa-carrname, / scarr_wa-url.

    ENDIF.

    Message was edited by: Priyank Jain

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 28, 2005 at 04:34 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 28, 2005 at 04:38 AM

    Hi Ruthra

    If i am in my basic List , the SY-LSIND will be zero. Does that mean that i cannot use WINDOW STARTING AT in the START OF SELECTION event. I am still not clear..

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 28, 2005 at 05:07 AM

    Thanks. Doubt is Cleared.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.