Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

script date check

kesavadas_thekkillath
Active Contributor
0 Likes
533

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 ???

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
510

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.

3 REPLIES 3
Read only

Former Member
0 Likes
510

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

Read only

Former Member
0 Likes
510

Try using DATE_CONV_EXT_TO_INT Funtion module

Read only

Former Member
0 Likes
511

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.