‎2009 Mar 16 5:06 PM
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
‎2009 Mar 16 5:08 PM
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
‎2009 Mar 16 5:07 PM
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
‎2009 Mar 16 5:08 PM
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