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

AT SLECTION-SCREEN

Former Member
0 Likes
630

HI

what is the difference between AT SELECTION-SCREEN and AT SELECTION-SCREEN-OUTPUT.

PBO + AT SELECTION SCREEN = AT SELECTION SCREEN OUTPUT?

like based on 1st screen validations 2nd screen has to enable or disable.

5 REPLIES 5
Read only

uwe_schieferstein
Active Contributor
0 Likes
590

Hello

AT SELECTION-SCREEN-OUTPUT = <b>PBO</b> before sending the selection screen

AT SELECTION SCREEN = <b>PAI</b> after user entered ENTER or executes report

Regards

Uwe

Read only

Former Member
0 Likes
590

To Put it simply

at selection screen output = PBO

AT SELECTION SCREEN = PAI.

Regards

Arun

Read only

Former Member
0 Likes
590

at selection screen is when the screen is still in memory

then PBO happens

then At selection screen on output is after the screen is displayed

vivek

Read only

Sathish
Product and Topic Expert
Product and Topic Expert
0 Likes
590

AT SELECTION_SCREEN OUTPUT is executed at the PBO of the selection screen after the user presses ENTER key.

In this one can LOOP AT SCREEN and modify the screen properties.

Read only

Former Member
0 Likes
590

This simple program says all..

TABLES: MKPF.

DATA: ITAB LIKE STANDARD TABLE OF MSEG.

PARAMETERS: P_MBLNR LIKE MKPF-MBLNR,

P_DATE LIKE MKPF-CPUDT.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF SCREEN-NAME EQ 'P_MBLNR'.

SCREEN-REQUIRED = 1.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

AT SELECTION-SCREEN.

SELECT SINGLE * FROM MKPF WHERE MBLNR EQ P_MBLNR.

IF SY-SUBRC NE 0.

MESSAGE 'Not exists' TYPE 'E'.

ENDIF.