Application Development 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: 

Regarding DATE Validation/Manipulation

Former Member
0 Kudos

Hi,

I have 3 dates 1 date i will fetch from one table <b>Delivery Date[VBEP-EDATU]</b> and another 2 dates from my <b>Z</b> Table as <b>Start Date[GANDA],End Date[GENDA].</b>

Now the validation i have to do over here is if the <b>Delivery Date</b> is outside the range of <b>Start and End Dates</b> i need to issue a warning message.

What would be the exact condition over here.

Can anybody suggest!

Thanks in advance.

Thanks & Regards,

Prasad.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Try this coding.

ranges : r_date for sy-datum.

r_date-low = GANDA.

r_date-high = GENDA.

r_date-sign = 'I'.

r_date-option = 'BT'.

Append r_date.

If VBEP-EDATU IN r_date.

else.

*Then Issue a warning message.

endif.

Regards,

GSR.

4 REPLIES 4

naimesh_patel
Active Contributor
0 Kudos

Hello,

IF not deliverydate BETWEEN stdate AND enddate.

warning.

ENDIF.

regards,

Naimesh

Former Member
0 Kudos

Hi,

Try this coding.

ranges : r_date for sy-datum.

r_date-low = GANDA.

r_date-high = GENDA.

r_date-sign = 'I'.

r_date-option = 'BT'.

Append r_date.

If VBEP-EDATU IN r_date.

else.

*Then Issue a warning message.

endif.

Regards,

GSR.

0 Kudos

Hi,

Can i use above solution [Range] to below condition also!

<b>Assignment date is not inside start and end dates</b>

Thanks,

Prasad.

0 Kudos

U can use the same range.

if assignment_date in r_date.

else.

*issue message

endif.