‎2008 Apr 30 12:33 PM
how to check a date in sap script
i applied
if erdat > '20080331'.
i guess its not working...
is it diffrerent from this like
if erdat > '31.03.2008''.
which is correct ???
‎2008 Apr 30 1:20 PM
well if you are not sure, check that out in your driver program, and define yourself a new variable which you fill in your driver program.
Lets say if your date matches your criteria set it as X, if not, leave it blank.
then you have a variable which you need to check against space value or X-Value in your script.
‎2008 Apr 30 12:39 PM
hi Keshu,
Check out the value of erdat in debug mode and based on that build your condition ...The second condition should work ....
Regards,
Santosh
‎2008 Apr 30 1:08 PM
‎2008 Apr 30 1:20 PM
well if you are not sure, check that out in your driver program, and define yourself a new variable which you fill in your driver program.
Lets say if your date matches your criteria set it as X, if not, leave it blank.
then you have a variable which you need to check against space value or X-Value in your script.