Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Regarding selection-screen

Former Member
0 Likes
557

Hello friends,

Could you please tell me what is the use of at-selection-screen output event in abap?

Regards,

Krishna Prasad.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
527

hi Krishna,

Here is how we can use that

AT SELECTION-SCREEN OUTPUT.
  IF p_deta = 'X' OR p_strt = 'X'.
    LOOP AT SCREEN.
      IF screen-group1 = 'ABC'.
        screen-input = '0'.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.

<b><u> Reward points by clicking on the radio button on the left hand side of answer..</u></b>

Regards,

Santosh

Message was edited by: Santosh Kumar P

5 REPLIES 5
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
527

This event is use to change the selection screen at runtime. You can use the LOOP AT SCREEN to change attributes of the screen before it is display.

parameters: p_check type c.

at selection-screen output.

Loop at screen.
if screen-name = 'P_CHECK'.
screen-input = '0'.
modify screen.
endif.

endloop.

Regards,

Rich Heilman

Read only

0 Likes
527

Thank you for your information. Let me know how to reward points?

Read only

Former Member
0 Likes
527

Hi,

It is also equivalent PBO of selection-screen.So , you can do whatever the screen modification you wanna do dynamically.

Further help on this you can find <a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/79/34a234d9b511d1950e0000e8353423/frameset.htm">Here</a>

Regards,

Raghav

Read only

Former Member
0 Likes
528

hi Krishna,

Here is how we can use that

AT SELECTION-SCREEN OUTPUT.
  IF p_deta = 'X' OR p_strt = 'X'.
    LOOP AT SCREEN.
      IF screen-group1 = 'ABC'.
        screen-input = '0'.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.

<b><u> Reward points by clicking on the radio button on the left hand side of answer..</u></b>

Regards,

Santosh

Message was edited by: Santosh Kumar P

Read only

0 Likes
527

hi,

The event can be used to change fill the selection screen field with value of your choice at runtime. It is called before the selection screen is displayed. So loop at the screen and change the scren fields as per your requirement.

So, you can

1. check the checkboxes,

2. check the radiobuttons,

3. fill some default value in paramter,

4. put some field in display mode(deactivate/activate)

and so on

regards,

Richa