08-07-2010 12:22 AM
Hi experts,
I can use OBLIGATORY for PARAMETERS
PARAMETERS :s_WMno TYPE LINK-LGNUM DEFAULT 'SCA' OBLIGATORY.
I want to add OBLIGATORY for SELECT-OPTIONS. How to do this?
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME .
SELECT-OPTIONS: s_matnr FOR mara-matnr .
SELECTION-SCREEN END OF BLOCK b1.
Many thanks.
08-07-2010 2:56 AM
Hi,
Please read documentation of select-options syntax. you can refer below
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME .
SELECT-OPTIONS: s_matnr FOR mara-matnr OBLIGATORY.
SELECTION-SCREEN END OF BLOCK b1.
regards,
08-07-2010 5:17 AM
Hi,
TABLES spfli.
SELECT-OPTIONS : carrid FOR spfli-carrid OBLIGATORY. " This makes only Low field Obligatory
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-name = 'CARRID-HIGH'. " To make High field also obligatory
screen-required = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Cheerz
Ram