Documentation >
MAC-PAC Technical Library >
Distribution >
Purchasing >
Programs >
Report Request Entry - Purpose >
Report Request Entry - Calculations
Report Request Entry - Calculations
PO310E
A. Housekeeping
1. See Common Processing Routines - Housekeeping of this manual for a general discussion of the Housekeeping subroutine. Processing specific to this program is described below.
2. A parameter list is set up for the fast path and help screen parameters.
3. Key lists are defined for each file retrieved by the program.
4. Workfields are defined and program constants are initialized.
5. The following records are retrieved from the Reference file (REFERP):
a. The date format record (category 049) is retrieved. If this record is not found, the date format defaults to MMDDYY.
b. The following categories are retrieved and stored in arrays for access during processing:
· Quotation types (category 469)
· Expedite notice codes (category 473)
· Purchase order acknowledgment status codes (category 478)
· Approval status codes (category 499)
· Quantity control status codes (category 466)
· Quality control status codes (category 467)
c. All company/warehouses to which the user is authorized are retrieved from the user company/warehouse authorization record (category 409) and loaded into an array. If no records are found for the user, a flag is set authorizing the user to all company/warehouses.
B. Mainline
1. The processing in this program is determined by the value of the Request Option (REQOPT) parameter passed from the menu. This parameter sets a program status code, which determines which detail screen will be displayed and processed, as shown below:
|
|
|
|
|
REQRQS
|
Requisition Report Request (PO310S01)
|
Requisition Report Request (PO310AP)
|
IVRRQS
|
Item/Vendor Relationship Report Request (PO310S02)
|
Item/Vendor Relationship Report Request (PO310BP)
|
QUORQS
|
Quotation Report Request (PO310S03)
|
Quotation Report Request (PO310CP)
|
PORQS
|
Purchase Order Management Report Request (PO310S04)
|
Purchase Order Management Report Request (PO310DP)
|
EXPRCP
|
Expected Receipts Report Request (PO310S05)
|
Expected Receipts Report Request (PO310EP)
|
RECPT
|
Receipt Report Request (PO310S06)
|
Receipt Report Request (PO310FP)
|
STAUPD
|
Statistics Update Request (PO310S07)
|
Reference File (category 488)
|
PAYRQS
|
Forecast Report Request (PO310S08)
|
Forecast Report Request (PO310GP)
|
IVSRQS
|
Item/Vendor Statistics Report Request (PO310S09)
|
Item/Vendor Statistics Report Request (PO310HP)
|
INARQS
|
Item/Vendor Analysis Report Request (PO310S10)
|
Item/Vendor Analysis Report Request (PO310JP)
|
IBSRQS
|
Item/Buyer Statistics Report Request (PO310S11)
|
Item/Buyer Statistics Report Request (PO310IP)
|
IBARQS
|
Item/Buyer Analysis Report Request (PO310S12)
|
Item/Buyer Analysis Report Request (PO310KP)
|
2. The processing for all requests except the Statistics Update is as follows:
a. The detail screen determined by the processing parameter is initialized and displayed to the user.
b. After the user has entered the report request, the screen is validated. See the Purchasing User Manual, Report Request Screens-Purchasing Planning, and Report Request Screens-Purchasing Control, for validation rules.
c. If any errors occur, the screen is redisplayed with the error(s) highlighted and the appropriate error message displayed.
d. Each valid report request is written to the appropriate report request file.
3. For a statistics update request, the following processing is performed:
a. The last purchasing period posted is retrieved from the Purchasing statistics posting periods record (category 488) on the Reference file (REFERP).
b. This value is incremented by one to determine the statistics post period. If the last period posted is 13 (if a 13-period calendar is in effect) or 12 (if a 12-month calendar is in effect), the statistics post period is set to 1.
c. The Statistics Update Request screen is displayed with the statistics post period. If the user changes this value, an error message is displayed.
d. When the user presses the ENTER key, the statistics posting Period is updated on the Purchasing statistics posting periods record (category 488) on the Reference file (REFERPU).