AbrahamA
4Penny.net
Points: 7625

10/3/2012 5:01:59 PM

SQL - Earliest Open Series Period

* This article, and all our great SQL (Dynamics) documentation, Is available on the SQL (Dynamics) menu

In doing an eConnect transaction today, the customer was integrating documents into a closed period. eConnect sensed that and sent and error.

The customer asked me to update the document date to the earliest open date in that case.

The stored procedure below takes the series (explained in the script) and the target date and returns either the target date (meaning that it's a valid date) or the earliest open date that is later than the target date.

 

4Penny.net
Version: Unknown or N/A
Section: SQL Scripts
Table Definition Quick Links
All Tables
SOP Tables
RM Tables
GL Tables
POP Tables
HR Tables
PM Tables
UPR Tables
IV Tables
Olympic Tables
3