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

selection screen

what is selection screen and selection scree at output

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Posted on Oct 26, 2006 at 12:06 PM

    Hi Abhay,

    Refer this link:

    http://www.sap-img.com/abap/interview-question-on-bapi-rfc-abap-objects-tables.htm

    see the answer for the last question.

    Regards,

    ravi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 26, 2006 at 12:08 PM

    <b>Selection Screens</b>

    Selection screens are special screens used to enter values in ABAP programs. Instead of using the Screen Painter, you create them using ABAP statements in the processing logic of your program. The selection screen is then generated according to these statements. The screen flow logic is supplied by the system, and remains invisible to you as the application programmer.

    You define selection screens in the declaration part of an ABAP program using the special declaration statements PARAMETERS, SELECT-OPTIONS and SELECTION-SCREEN). These statements declare and format the input fields of each selection screen.

    The most important elements on a selection screen are input fields for single values and for selection tables. Selection tables allow you to enter more complicated selection criteria. Selection tables are easy to use in ABAP because the system automatically processes them itself. As on other screens, field and possible values help is provided for input fields which refer to an ABAP Dictionary field. Users can use pre-configured sets of input values for selection screens. These are called variants.

    You call a selection screen from an ABAP program using the CALL SELECTION-SCREEN statement. If the program is an executable (report) with type 1, the ABAP runtime environment automatically calls the selection screen defined in the declaration part of the program. Selection screens trigger events, and can therefore call event blocks in ABAP programs.

    Since selection screens contain principally input fields, selection screen dialogs are more input-oriented than the screens you define using the Screen Painter. Dialog screens can contain both input and output fields. Selection screens, however, are appropriate when the program requires data from the user before it can continue processing. For example, you would use a selection screen before accessing the database, to restrict the amount of data read.

    <b>AT SELECTION-SCREEN</b>

    The event AT SELECTION-SCREEN is the basic form of a whole series of events that occur while the selection screen is being processed. The standard selection screen in an executable program or in the logical database linked to it is automatically called between the INITIALIZATION and START-OF-SELECTION events. When

    you call the selection screen, and when users interact with it, the ABAP runtime environment generates selection screen events, which occur between INITIALIZATION and START-OFSELECTION.

    You can define event blocks for these events in your program to change the selection screen or

    process user input.

    <b>Selection screen at out</b>

    We can use AT SELECTION SCREEN OUTPUT event to modify the selection screen.In the PBO of the selection screen, the AT SELECTION-SCREEN OUTPUT event is triggered. This event block allows you to modify the selection screen directly before it is displayed.

    Have a look at below example.

    REPORT DEMO.

    PARAMETERS: TEST1(10) MODIF ID SC1,

    TEST2(10) MODIF ID SC2,

    TEST3(10) MODIF ID SC1,

    TEST4(10) MODIF ID SC2.

    AT SELECTION-SCREEN OUTPUT.

    LOOP AT SCREEN.

    IF SCREEN-GROUP1 = 'SC1'.

    SCREEN-INTENSIFIED = '1'.

    MODIFY SCREEN.

    CONTINUE.

    ENDIF.

    IF SCREEN-GROUP1 = 'SC2'.

    SCREEN-INTENSIFIED = '0'.

    MODIFY SCREEN.

    ENDIF.

    ENDLOOP.

    The parameters TEST1 and TEST3 are assigned to group SC1, while TEST2 and TEST4 are assigned to group SC2. During the AT SELECTION-SCREEN OUTPUT event, the INTENSIFIED field of internal table SCREEN is set to 1 or 0, depending on the contents of the GROUP1 field. On the selection screen, the lines for TEST1 and TEST3 are highlighted while those for TEST2 and TEST4 are not.

    To get the details abt selection screen processing just have a look at below link.

    http://help.sap.com/saphelp_nw04/helpdata/en/56/1eb6c705ad11d2952f0000e8353423/content.htm

    Best Regards,

    Vibha

    *Please mark all the helpful answers

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 26, 2006 at 12:10 PM

    hi abhay,

    <b>AT SELECTION SCREEN</b> IS used to validate selection screen inputs by the user after the selections creen is displayed.

    <b>AT SELECTION SCREEN OUTPUT</b> is used to modify screen field elements before it is displayed to the user. This is getting triggered before the user sees the selection screen.

    Select singel you need to define all the keys fields.

    Select single is not a loop.

    Select single upto one row is not necessary u give all the key fields.

    Select single upto 1 row is a loop. So you need to write SELECT and ENDSELECT for select upto one row.

    For GET CURSOR take a look at this example.

    http://www.sap-img.com/abap/a-sample-hide-get-cursor-in-interactive-programming.htm

    Cheers

    Alfred

    Reward with points for helpful answers

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 26, 2006 at 12:20 PM

    hi Abhay,

    if you are talking about AT SELECTION-SCREEN event and

    AT SELECTION-SCREEN OUTPUT, i have the following comments.

    AT SELECTION-SCREEN OUTPUT

    This event is executed at PBO of the selection screen, meaning before the selection-screen is displayed .

    you can use LOOP AT SCREEN or MODIFY SCREEN to change the input/output attributes of selection screen fields.

    AT SELECTION-SCREEN

    This event is the PAI of selection-screen processing (meaning process after input). This event is triggered after the user has done some actions in the selection screen.

    after a user input, AT SELECTION-SCREEN is triggered first, then AT SELECTION-SCREEN OUTPUT event is triggered before displaying back the selection screen.

    hope this answers your doubts.

    Sajan.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 26, 2006 at 01:13 PM

    hi

    good

    SELECTION SCREEN->

    Selection screens are special screens that are defined with the help of ABAP statements. As programmers do not have access to the flow logic of selection screens, they cannot define dialog modules for selection screens. The ABAP runtime environment fully controls the processing flow of selection screens. To allow programmers to modify the selection screen before it is called (PBO) and react to user actions on the selection screen (PAI), the ABAP runtime environment generates a number of special selection screen events before the selection screen is displayed and after the user has executed actions on the selection screen.

    SELECTION SCREEN AT OUTPUT->

    In the PBO of the selection screen, the

    SELECTION-SCREEN OUTPUT

    event is triggered. This event block allows you to modify the selection screen directly before it is displayed.

    there is nothing like selection screen at output.

    thanks

    mrutyun^

    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.