Documentation >
MAC-PAC Technical Library >
Distribution >
Order Processing >
Programs >
Sales Order Header Processing - Purpose >
Sales Order Header Processing - Calculations
Sales Order Header Processing - Calculations
OP100E2
A. Housekeeping
1. See the Common Processing Routines - Housekeeping section of this manual for a general discussion of this subroutine. Processing specific to this program is described below.
2. Arrays and fields are initialized from the Reference file (REFERP).
B. Mainline
1. All processing of this program is from the Sales Order Header Maintenance screen (OP100S02) or from information entered using the Generic Windows program, CF125SXX.
The header screen allows the entry and maintenance of order level data. The following processing is performed:
a. If the header has not been posted previously (that is, an add transaction), the header information is displayed using default values. Otherwise, values from the header record are displayed.
b. A command key (F11) is available to display the recap screen. If no lines have been posted or if errors are displayed on the header screen, this command key is not displayed and is disabled.
c. The screen is validated. See the Order Processing User Manual for validation rules.
d. If all fields are valid, the following occurs:
(1) If this is an add transaction, and if order numbers are system- generated, the current Order Number is retrieved from the Reference File (category 439).
(2) The data on the screen is posted to the Sales Order Header file (OP100M1) or the Quote Order Header file (OP170M1).
(3) The program checks for line-level processing. Changes to order dates or to pricing parameters may need to be reflected on the order lines. Inventory reservation may be triggered when a held sales order is released. Flags are set to trigger line-level processing as needed.