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

Regarding DATE Validation/Manipulation

Former Member
0 Likes
678

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
Read only

Former Member
0 Likes
651

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
Read only

naimesh_patel
Active Contributor
0 Likes
651

Hello,

IF not deliverydate BETWEEN stdate AND enddate.

warning.

ENDIF.

regards,

Naimesh

Read only

Former Member
0 Likes
652

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.

Read only

0 Likes
651

Hi,

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

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

Thanks,

Prasad.

Read only

0 Likes
651

U can use the same range.

if assignment_date in r_date.

else.

*issue message

endif.