‎2008 Jan 08 9:35 PM
Hi SAP gurus,
I have a question regarding the select option using Date field,
the variable using the date field is dat_var
My IF condition goes like this
IF dat_var NE SPACE.
Condition
ENDIF. but since date is 00000000 it is going into the condition but i dont want it to
could u guys suggest to what are my possible options
‎2008 Jan 08 9:38 PM
‎2008 Jan 08 9:38 PM
‎2008 Jan 08 9:38 PM
>
> Hi SAP gurus,
>
> I have a question regarding the select option using Date field,
> the variable using the date field is dat_var
> My IF condition goes like this
IF dat_var IS NOT INITIAL .
> Condition
> ENDIF. but since date is 00000000 it is going into the condition but i dont want it to
> could u guys suggest to what are my possible options
‎2008 Jan 08 9:39 PM
‎2008 Jan 08 9:44 PM
DATA: dat_var LIKE sy-datum.
IF ( dat_var IS NOT INITIAL ).
WRITE: 'contains valid date'.
ELSE.
WRITE: 'contains empty date'.
ENDIF.
‎2008 Jan 08 9:44 PM