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

problem with selection screen

Former Member
0 Likes
323

Hi everyone,

Im facing a problem in selection screen.

SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.

PARAMETERS: PDATE LIKE PA0000-BEGDA DEFAULT SY-DATUM.

SELECTION-SCREEN: PUSHBUTTON /33(15) APITEXT USER-COMMAND APA1.

SELECTION-SCREEN END OF BLOCK B1 .

SELECTION-SCREEN: BEGIN OF SCREEN 400.

SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-100.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(18) FOR FIELD PA1.

PARAMETER: PA1(5).

...

...

...

PARAMETER: PA100(5).

SELECTION-SCREEN END OF SCREEN 400.

SELECTION-SCREEN END OF BLOCK B3.

AT SELECTION-SCREEN.

IF SY-UCOMM = 'APA1'.

CALL SELECTION-SCREEN '400'.

ENDIF.

(ie) If i click on pushbutton it will call screen 400. My requirement is

if i enter a value in PA1 and if i click on execute button its leaving to

first screen, and from there i have to execute. I want it to get executed

in screen 400.

NOTE: Not using modify id.

Plz anyone solve this problem. Its vry urgent.

regards,

stanley

2 REPLIES 2
Read only

Former Member
0 Likes
291

Hi

U need to check the sy-ucomm in the AT SELECTION-SCREEN event:

AT SELECTION-SCREEN.
IF SY-UCOMM = 'APA1' OR 
    ( SY-UCOMM = 'ONLI' AND NOT PAI IS INITIAL ).
  CALL SELECTION-SCREEN '400'.
ENDIF.

Max

Read only

0 Likes
291

hi,

Its showing an error 'PAI is unknown'.

regards

stanley