Running Automatic Order Invoicing (FUNAUTINVO) through batch server does not respect VENSTRDAT/VENENDDAT dates

Description

When running Automatic Order Invoicing as a batch job, it is ignoring the populated start and end dates defined as parameters VENSTRDAT and VENENDDAT under TC, CLO, Sales.

When you submit the batch job (either as a recurring or non-recurring job) the date is correctly reported as being invalid compared to the VENSTRDAT/VENENDDAT parameters.

Cause

This issue occurs only when the date is being updated automatically and relative dates are being used to recalculate the date of the parameter.  These are not checked against VENSTRDAT/VENENDDAT due to the relative dates being a technical (batch server) function which simply updates the batch server parameter values.  It therefore does not have opportunity to revalidate against VENSTRDAT/VENENDDAT if you are using a simple Base Date, such as current date. 

Resolution

You can consider to use a more complex formula, for example you could possibly look up the parameter values and work out a date to be used (perhaps check current date against VENENDDAT and use VENENDDAT if current date is later) 

Solution Properties

Solution ID
260115091410063
Last Modified Date
Thu Jan 15 09:14:32 UTC 2026
Views
0