‎2007 May 09 6:43 AM
Hi,
I am having date as a select-options.
I want to check that the date entered in the lower box is not greater than today...
Can anyone plzz help??
Himanshu
‎2007 May 09 6:45 AM
Hi,
select-options:date for sy-datum.
at selection-screen.
if date-low > sy-udatum.
message w001(zmsgtable).
endif.
rgds,
bharat.
‎2007 May 09 6:45 AM
‎2007 May 09 6:45 AM
Hi,
select-options:date for sy-datum.
at selection-screen.
if date-low > sy-udatum.
message w001(zmsgtable).
endif.
rgds,
bharat.
‎2007 May 09 6:47 AM
if u declare like this
selec-options : s_budat like bkpf-budat.
then no need to do any validations , system will not allow user to enter like that.
Regards
Prabhu
‎2007 May 09 6:48 AM
At the event,
AT selection-screen
compare the date-low with the sy-datum value
Regards
Navdeep
‎2007 May 09 6:50 AM
Hi,
Try this code...
select-options : date for sy-datum.
AT SELECTION-SCREEN ON date.
loop at date.
if date-low > sy-datum.
message 'low date greater than sy-datum' type 'I'.
endif.
endloop.
Thanks..
‎2007 May 09 7:19 AM
SELECTION-SCREEN BEGIN OF BLOCK b WITH FRAME TITLE text-001.
select-options: S_DATE FOR SY-DATUM.
SELECTION-SCREEN END OF BLOCK b.
AT SELECTION-SCREEN .
IF s_date-low gt sy-datum.
MESSAGE w000(ZSA) WITH 'Enter Proper Date'.
ENDIF.
LEAVE LIST-PROCESSING.
this code will help you