F4311ZAccumulateReleasedByOrder

Accumulate Released Amounts By Order

Minor Business Rule

Object Name: N4301510

Parent DLL: CDIST

Location: Client/Server

Language: NER

1.Functional Description

1.1Purpose

This function will read all F4311Z workfile records that match the requested Original Order and return the total released quantities and amounts.  The 

original order (comprised of original order number, original order type, original order company, and original order line number) is based on the input parameters. 

Extended Price, Open Amount, Foreign Extended Price, Foreign Open Amount, Order Primary Quantity, and Order Transaction Quantity are accumulated 

and returned.


1.2Setup Notes and Prerequisites


1.3Special Logic


^

Data Structure

D4301510 - Accumulate Released Amounts By Order

Parameter NameData ItemData TypeReq/OptI/O/Both
szOriginalPoSoNumberOORNcharOPTINPUT

The original document number. This can be a voucher, an invoice, unapplied cash, a journal entry number, and so on Matching document 
numbers are also used to identify related documents in the Accounts Receivable and Accounts Payable systems. The document number 
(DOC) is always the original document number. The matching document number (DOCM) is the check, adjustment, or credit to be applied 
against the original document.

szOriginalOrderTypeOCTOcharOPTINPUT

This code defines the order type. It is verified in user defined codes (40/OT). Reserved document types have been defined for voucher 
entry, invoice entry, receipts entry, and time sheet entry.  Because the offsetting entries for document types are created automatically during the 
post program, they will not be self-balancing on original entry. The reserved document types are:    PR Purchase Requisition Orders    PQ 
Purchase Quote    PO Purchase Order    PD Purchase Order - Direct Ship    PB Purchase Order - Blanket    SQ Sales Quote    SO Sales Order    
SD Sales Order - Direct Ship    SB Sales Order - Blanket 

szCompanyKeyOriginalOKCOcharOPTINPUT

A number that is used in conjunction with the values in the ODOC and ODCT fields to identify a transaction.

mnOriginalLineNumberOGNOMATH_NUMERICOPTINPUT

A number identifying which line on the original order that the current line matches.

mnAmountExtendedPriceAEXPMATH_NUMERICOPTNONE

The number of units multiplied by the unit price.

mnAmountOpen1AOPNMATH_NUMERICOPTNONE

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 
voucher), the open amount is the original amount of that document. If you change the original amount, the open amount is reduced by the net 
change. For example,payments, shipments, or receipts against a document result in a reduction of the open balance.

mnAmountForeignExtPriceFEAMATH_NUMERICOPTNONE

The product of the foreign price times the number of units.

mnAmountForeignOpenFAPMATH_NUMERICOPTNONE

The unpaid foreign amount of a transaction.

mnUnitsPrimaryQtyOrderPQORMATH_NUMERICOPTNONE

The quantity ordered by the customer expressed in the primary stocking unit of measure.

mnUnitsTransactionQtyUORGMATH_NUMERICOPTNONE

The quantity of units affected by this transaction.

szOriginalDocumentPayItemSFXcharOPTINPUT

A number that identifies the pay item for a voucher or an invoice. The system assigns the pay item number. If the voucher or invoice has 
multiple pay items, the numbers are sequential.

Related Functions

None

Related Tables

None