If the document you are using is defined as an auto-run document, then you must answer some preliminary questions, after which the process is automatic and requires no intervention from you.
First you are asked to confirm the printer to be used. The currently selected printer is displayed, and you can use the <F4–Select> key to change to another printer, or to select the print-to-disk facility.
You normally want an "auto-run” document to print only those orders that are suitable for batch processing.This is achieved by defining some selection criteria on the order headers, and possibly on the order details too.Whether or not you are offered the chance to modify the selection criteria at run time is an option set at the time the document definition is created. If you are given the option, then you can confirm both the header and detail criteria.
You are now shown some statistics for the stock and purchase transactions files that may be updated by this batch procedure. If the procedure is not designed to update one of these files then those databases will not be shown. Otherwise the file size, the space used and the space free is displayed. This is done so that you can make an eyeball check that there is sufficient room for the procedure to go right through without the risk of filling the files. Note that an acknowledgement is unlikely to write stock or purchase transactions, but an invoice is almost certainly going to update the purchase ledger, and possibly the stock files too.
If a document is produced which contains six order lines, and both purchase and stock files are to be updated, then six new records are written to the stock transaction file and seven new records to the purchase ledger transaction file (one financial and six analysis records).
The system date is offered and may be overtyped. All documents and transactions produced during the run will carry this date. The date will be validated according to the purchase and stock periods as discussed above.
Answer ‘Yes’ or ‘No’ as appropriate. The procedure now runs through without further involvement from you. At the end you are returned to the POP menu.
Multi-User Implications
Batch runs normally take complete control over the order, stock and purchase ledger files so that no other activity can prevent it from processing an order by getting prior access. If it is not necessary to process every order that may be available for processing, then you can set a parameter in the document definition to allow other users to have access.
The effect of this is that, should the batch run be unable to process fully an order because the sales account or one of the stock records is already in use elsewhere, then that order is bypassed for the moment. At the end of the run you are given the option to retry those orders which it was unable to process in the first pass.
Article ID: 1480
Created On: Tue, Jul 3, 2012 at 3:06 PM
Last Updated On: Wed, Jun 14, 2023 at 5:50 PM
Online URL: https://kb.datafile.co.uk/article/batch-“auto-run”-documents-1480.html