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

CALL SELECTION-SCREEN

Former Member
0 Likes
471

hi,

i have this code:

SELECTION-SCREEN BEGIN OF SCREEN 500 TITLE title2 AS WINDOW.

SELECT-OPTIONS pfecha FOR mkpf-bldat.

SELECTION-SCREEN END OF SCREEN 500.

CALL SELECTION-SCREEN '500' STARTING AT 10 10.

when i call this screen i get a window and 4 buttons, i need to know the value that i get when i press F8 or cancel. In wich variable is stored that value..?

Thanks on advance,

David Funez

Tegucigalpa, Honduras

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
431

Hi,

You can check the sy-subrc..

Ex..

CALL SELECTION-SCREEN '500' STARTING AT 10 10.

IF sy-subrc = 0.

* User has pressed Execute (F8).

ELSE.
  
* User has pressed cancel.

ENDIF.

Please check the F1 help on CALL SELECTION-SCREEN for details..

Thanks

Naren

2 REPLIES 2
Read only

Former Member
0 Likes
431

Hi,

sy-ucomm stores these values..

and also check sscrfields-ucomm... for this you need to declare this way...

Tables : sscrfields.

and then check with sscrfields-ucomm

Regards,

Siddarth

Read only

Former Member
0 Likes
432

Hi,

You can check the sy-subrc..

Ex..

CALL SELECTION-SCREEN '500' STARTING AT 10 10.

IF sy-subrc = 0.

* User has pressed Execute (F8).

ELSE.
  
* User has pressed cancel.

ENDIF.

Please check the F1 help on CALL SELECTION-SCREEN for details..

Thanks

Naren