Application Development 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: 

At selection screen output

Former Member
0 Kudos

is At selection screen output is PAI or PBO?

explain in detail

1 ACCEPTED SOLUTION

Former Member
0 Kudos

At-Selection screen output

This event is executed at PBO of the selection screen every time the user presses ENTER - in contrast to INITIALIZATION. Therefore, this event is not suitable for setting selection screen default values. Also, since AT SELECTION-SCREEN OUTPUT is first executed after the variant is imported (if a variant is used) and after adopting any values specified under SUBMIT in the WITH clause, changing the report parameters or the selection options in AT SELECTION-SCREEN OUTPUT would destroy the specified values.

At-Selection screen

This is PAI--Process after Input...

8 REPLIES 8

Former Member
0 Kudos

At-Selection screen output

This event is executed at PBO of the selection screen every time the user presses ENTER - in contrast to INITIALIZATION. Therefore, this event is not suitable for setting selection screen default values. Also, since AT SELECTION-SCREEN OUTPUT is first executed after the variant is imported (if a variant is used) and after adopting any values specified under SUBMIT in the WITH clause, changing the report parameters or the selection options in AT SELECTION-SCREEN OUTPUT would destroy the specified values.

At-Selection screen

This is PAI--Process after Input...

0 Kudos

thadsakuga10 You'd better ask your own question and share the whole code. This current question and answer are not about the error you mention.

Former Member

Former Member
0 Kudos

PROCESS BEFORE OUTPUT (PBO) is automatically triggered after the PAI

processing of the previous screen and before the current screen is displayed. You

can program the PBO processing of the screen in this block. At the end of the PBO

processing, the screen is displayed.

PROCESS AFTER INPUT (PAI) is triggered when the user chooses a function on

the screen. You can program the PAI processing of the screen in this block. At the

end of the PAI.

processing, the system either calls the next screen or carries on processing at the

point from which the screen was called.

Thanks and regards.

Former Member
0 Kudos

Hi

At selection-screen comes under PBO.

Here you can modify the screen.

This event is executed at PBO of the selection screen every time the user presses ENTER - in contrast to INITIALIZATION. Therefore, this event is not suitable for setting selection screen default values. Also, since AT SELECTION-SCREEN OUTPUT is first executed after the variant is imported (if a variant is used) and after adopting any values specified under SUBMIT in the WITH clause, changing the report parameters or the selection options in AT SELECTION-SCREEN OUTPUT would destroy the specified values.

Regards,

Kumar

Former Member
0 Kudos

Hi Raja ,

At Selction-Screen Output can be said to be equivalent to PBO .

Now as PBO is the processing done before the screen is displayed in a module pool , in the same way for reports if you want to do some processing before the selection screen is displayed , you can write your code in it.

Few operations are

1. Assign initial values to input , but each time you go to selection screen there values will be assigned irrespective of the input you gave.

The scenario i am talking about is

<u>Selection Screen --> Program Execution --> Report --> Back to Seelction Screen</u>.

If you assign intial value here irrespecive of what value you gave as input the value u assign in this event will be shown in the selectionscreen (2)

So it is better to use initialization to assign initial values , as it is executed only once

2. A more important purpose is suppose you have 2 radiobuttons and about 6 fields as input , when u select one radio button and u want 3 fields to be disable and other enabled , you write code to do this in at selection-screen output.

Regards

Arun

Former Member
0 Kudos

The following is the program that should add two numbers when pushbutton is clicked. how to disable the input fields..pls fill the at selection-screen output part

REPORT ZR6.

SELECTION-SCREEN BEGIN OF BLOCK b1.

PARAMETERS : P1 TYPE I,

P2 TYPE I,

P3 TYPE I.

SELECTION-SCREEN END OF BLOCK b1.

selection-screen: pushbutton /1(6) text-010 user-command cli1.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

ENDLOOP.

AT SELECTION-SCREEN.

CASE SY-UCOMM.

WHEN 'CLI1'.

P3 = P1 + P2.

ENDCASE.

thanks