Functional Description
Purpose
This business function will recalculate the new purchase order open quantity and extended amount
following a purchase receipt
Technical Specification
Edits:
If open quantity > received quantity (Partial Receipt)
IFUORG NE *ZEROS
IFUOPN GE UORGR
IF UOPN GT *ZEROS
MOVE UOPNR PREQ
MOVE '1' EV01
UOPN SUB UORGR UOPN
ELSE
MOVE UOPN PREQ
MOVE *BLANKS EV01
MOVE *ZEROS UOPN
END
If open quantity < received quantity, then either:
- Received quantity exceeds P.O.
- Partial negative receipt.
ELSE
IFUOPN GE *ZEROS
MOVE UOPN PREQ
MOVE *BLANKS EV01
MOVE *ZEROS UOPN
ELSE
MOVE UOPNR PREQ
MOVE '1' PREQ
UOPN SUB UORGR UOPN
END
END
If open quantity is zero, clear open amounts.
IFUOPN EQ *ZEROS
MOVE *ZEROS AOPN
MOVE *ZEROS FAP
END
END
If open amount > received amount (Partial Receipt)
IFUORG EQ *ZEROS
IFAOPN GE AOPNR
IFAOPN GT *ZEROS
AOPN SUB AOPNR AOPN
FAP SUB FOPNR FAP
ELSE
MOVE *ZEROS AOPN
MOVE *ZEROS FAP
END
If open amount < received amount, then either: - Received amount exceeds P.O.
- Partial negative receipt.
ELSE
IFAOPN GE *ZEROS
MOVE *ZEROS AOPN
MOVE *ZEROS FAP
ELSE
AOPN SUB AOPNR AOPN
FAP SUB FOPNR FAP
END
END
If open amount is zero, clear other currency amount.
IF( CRYR NE ' ' ) AND ( CRYR NE 'N' )
IF( CRRM EQ 'D' ) AND ( AOPN EQ *ZEROS )
MOVE *ZEROS PDFAP
END
IF( CRRM EQ 'F' ) AND ( FAP EQ *ZEROS )
MOVE *ZEROS PDAOPN
END
END
END
^
D4312F - Calculate Open PO Qty Amount After Receipt
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnQuantityReceived | UOPNR | MATH_NUMERIC | NONE | NONE |
The quantity of an item that is available to receive. | ||||
mnQtyReceivedInOriginalUoM | UORGR | MATH_NUMERIC | NONE | NONE |
mnPOOrderedQuantity | UORG | MATH_NUMERIC | NONE | NONE |
The quantity of units affected by this transaction. | ||||
mnPOOpenQuantity | UOPN | MATH_NUMERIC | NONE | NONE |
The original quantity for the order detail line, plus or minus any changes to that quantity, minus all quantities shipped, received, and
| ||||
mnQuantityOnPurchaseOrder | PREQ | MATH_NUMERIC | NONE | NONE |
The number of units specified on the purchase order in primary units of measure. | ||||
mnAmountReceived | AOPNR | MATH_NUMERIC | NONE | NONE |
The monetary amount of the items that you have received. | ||||
mnPOOpenAmount | AOPN | MATH_NUMERIC | NONE | NONE |
The amount of the order, invoice, or voucher that is still unpaid or open.
When you enter a document (for example, an order, invoice, or
| ||||
mnForeignAmountReceived | FOPNR | MATH_NUMERIC | NONE | NONE |
mnPOForeignOpenAmount | FAP | MATH_NUMERIC | NONE | NONE |
The unpaid foreign amount of a transaction. | ||||
cUnitOfMeasureFlag | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
cCurrencyMode | CRRM | char | NONE | NONE |
An option that specifies whether the system displays amounts in the domestic or foreign currency.
On
The system displays amounts in the
| ||||
cCurrencyProcessing | CRYR | char | NONE | NONE |
A code that specifies whether to use multi-currency accounting, and the method of multi-currency accounting to use:
Codes are:
N Do not
|
B4100040 Write Cardex Record | ||||
B4300160 Set Early, On Time or Late | ||||
B9800100 Get Audit Information |
F41001 Inventory Constants | ||||
F4102 Item Branch File | ||||
F4111 Item Ledger File | ||||
F43090 Supplier/Item Relationships |