‎2007 May 01 9:04 AM
Hallow I have selection screen for sy-datum and I wont
That the 2 field of date will be required <b>not just the first</b> one
how i can do that
Regards
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-t01.
SELECT-OPTIONS so_date FOR sy-datum OBLIGATORY .
SELECTION-SCREEN END OF BLOCK b2.
‎2007 May 01 9:16 AM
at selection-screen.
if so_date-high is initial.
message e001(ZZ) with 'enter TO Date'.
endif.
‎2007 May 01 9:16 AM
Hi!
You can change the requred settings statically, by removing/adding the OBLIGATORY keyword.
Or dynamically, like this:
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-name = 'SO_DATE'.
screen-required = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Regards
Tamá
‎2007 May 01 9:16 AM
at selection-screen.
if so_date-high is initial.
message e001(ZZ) with 'enter TO Date'.
endif.
‎2007 May 01 9:19 AM
hI..,
check this code..
its working..
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-t01.
SELECT-OPTIONS so_date FOR sy-datum OBLIGATORY .
SELECTION-SCREEN END OF BLOCK b2.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SCREEN-NAME = 'SO_DATE-HIGH'.
SCREEN-REQUIRED = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
regards,
sai ramesh
‎2007 May 01 9:20 AM
Hi,
You need to write the code in the AT SELECTION-SCREEN Event.
AT SELECTION-SCREEN.
if SO_DATE-HIGH is initial.
message E001 with text-001. " Enter the to date alsol
ENDIF.
Regards
Sudheer