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

Invalid date error

Former Member
0 Likes
3,089

Hi,

The sales order scenario is this the requested delivery date is todays date, the system confirms the goods the next day for example. Requested delivery date 15.02.2011 confirmed date is 16.02.2011.

I have a sales order non standard Cash Sale and when I create and save the sales order then go to the output the system throws the following dump:

" A RAISE statement in the program "SAPL3HKC" raised the exception condition "INVALID_DATES_SPECIFIED".

Since the exception was not intercepted by a superior program, processing was terminated."

The exception is thrown in the module "HR_HK_DIFF_BT_2_DATES" .

if date2 > date1.

raise invalid_dates_specified.

endif.

Date2 is delivery date in future whereas date1 is current date (sy-datum).

Now my question is, how I prevent the system comparing date1 and date2.

Cheers

A.

4 REPLIES 4
Read only

Former Member
0 Likes
1,337

Hello

DATE1 - enddate

DATE2 - begindate

So for correct work you need to pass '15.02.2011' to DATE2 and '16.02.2011' to DATE1.

Read only

0 Likes
1,337

Hello,

I am not assigning delivery date to date2, but the system. Further the code is in SAP name space, so I cant edit it.

Read only

0 Likes
1,337

Solved

Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
1,337

Check this OSS note : 1096741