CummulateRequestedPOs

Accumulate Requested PO's

Major Business Rule

Object Name: B4300350

Parent DLL: CDIST

Location: Client/Server

Language: C

Functional Description

Purpose

This function  has to acummulate Quantity Ordered, Extended Price, Open Amount and Foreign Extended 
Price, Foreign Open Amount, Closed Amount; for all PO's to be generated, associated to a Blanket Order 

Line


Technical Specification


2.4Processing 



From F4311Z table, select records with 
if mnKeys = 2  MCU, ITM, 

if mnKeys = 7  MCU, ITM, OORN, OCTO, OKCO, OGNO.


                 Either a unique record or multiple records could be selected with this key


                 If selection completed successfuly, read all records selected 


                                   For each record,add UORG (Units Order Transaction Quantity )

into a work field 

add PQOR (Units Order Primary        UOM     )into a work field

add AEXP  (DomesticExtended Price    )into a work field

add AOPN  (DomesticOpenAmount )into a work field add FEA(Foreign

ExtendedAmount )into a work field

add FAP(Foreign OpenAmount )into a work field add 

AAP(OpenAmount )into a work field

add ACLO  (AmountClosed )into a work field

                                                              

                                   When last record fields have been added to work fields, return 

those work fields


                 If selection completed unsuccessfuly, return Error Key Message.


Data Structure

D4300350 - Cummulate Requested PO's

Parameter NameData ItemData TypeReq/OptI/O/Both
szBranchPlantMCUcharNONENONE

An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit 
might be a warehouse location, job, project, work center, branch, or plant. You can assign a business unit to a document, entity, or person for 
purposes of responsibility reporting. For example, the system provides reports of open accounts payable and accounts receivable by 
business unit to track equipment by responsible department. Business unit security might prevent you from viewing information about business units 
for which you have no authority.

mnItemNumberITMMATH_NUMERICNONENONE

An inventory item number. The system provides three separate item numbers plus an extensive cross-reference capability to other item 
numbers (see data item XRT) to accommodate substitute item numbers, replacements, bar codes, customer numbers, supplier numbers, and 
so forth. The item numbers are as follows:   o Item Number (short) - An eight-digit, computer-assigned item number     o 2nd Item Number - The 
25-digit, free-form, user defined alphanumeric item number     o 3rd Item Number - Another 25-digit, free-form, user defined alphanumeric item 
number

szOriginalOrderNumberOORNcharNONENONE

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.

szOriginalOrderTypeOCTOcharNONENONE

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 

szOriginalOrderCompanyOKCOcharNONENONE

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

mnOriginalLineNumberOGNOMATH_NUMERICNONENONE

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

szErrorMessageIDDTAIcharNONENONE

A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or 
special characters such as %, &, or +. You create new data items using system codes 55-59. You cannot change the alias.

cSuppressErrorMessageEV01charNONENONE

An option that specifies the type of processing for an event.

mnAmountExtendedPriceAEXPMATH_NUMERICNONENONE

The number of units multiplied by the unit price.

mnAmountOpenAOPNMATH_NUMERICNONENONE

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_NUMERICNONENONE

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

mnAmountForeignOpenFAPMATH_NUMERICNONENONE

The unpaid foreign amount of a transaction.

mnKeysCDLMATH_NUMERICNONENONE

Special Input Expected
2 - MCU and ITM only 

7 - MCU, ITM, OORN, OCTO, OKCO,  OGNOab 


^

mnUnitsOrderPrimaryQtyPQORMATH_NUMERICNONENONE

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

mnUnitsOrderTransactionQtyUORGMATH_NUMERICNONENONE

The quantity of units affected by this transaction.

Related Functions

None

Related Tables

F4311Z Purchase Order Generator File