RollUpKitComponents

Roll Up Kit Components

Major Business Rule

Object Name: B4200960

Parent DLL: CDIST

Location: Client/Server

Language: C





Functional Description


Purpose


Apply changes in a kit component line's price and cost fields to the corresponding kit master line.



Setup Notes and Prerequisites


None.


Special Logic


None.


Technical Specification


Related Tables


Table Table Description

F4211Sales Order Detail Line

F4101Item Master


Related Business Functions


None.

Processing 


*** Main Processing ***

Retrieve kit master line from Sales Order Detail file (F4211).

If record retrieval is successful,


Retrieve Item Master (F4101).

If  record retrieval is successful, 

If override price field <> '1' and pricing method (F4101) = '1' or '4', 

Subtract old values from F4211 price fields.
Add new values into F4211 price fields.

End


Else,

Return Error Number (DTAI).

End

If override cost field <> '1', 


Subtract old values from F4211 cost fields.
Add new values into F4211 cost fields.

End


Update kit master line in Sales Order Detail file.

Else,

Return Error Number (DTAI).

End





^

Data Structure

D4200960 - Roll Up Kit Components





Special Input Expected


Parameters:


Data Item Data Structure Description  I/O  Required  Notes

DOCO      Order Number               I    Y        Key to kit master

                                                              line

DCTO      Order Type                     I    Y

KCOO      Key Company                     I    Y

KTLN      Line Number                     I    Y

UPRC      Old Unit Price               I    Y

AEXP      Old Extended Price         I    Y        Values to be

                                                              updated

UNCS      Old Unit Cost               I    Y

ECST      Old Unit Cost               I    Y

LPRC      Old List Price               I    Y

UPRC      New Unit Price               I    Y        Values to be

                                                              written

AEXP      New Extended Price         I    Y

UNCS      New Unit Cost               I    Y

ECST      New Unit Cost               I    Y

LPRC      New List Price               I    Y


Special Output Returned


Parameters:


Data Item Data Structure Description  I/O   Required  Notes

EV01      Error Code                     O

DTAI      Error Number               O



^

Parameter NameData ItemData TypeReq/OptI/O/Both
mnOrderNumberDOCOMATH_NUMERICNONENONE

A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry, 
and so on.

szOrderTypeDCTOcharNONENONE

A user defined code (00/DT) that identifies the type of document. This code also indicates the origin of the transaction. J.D. Edwards has 
reserved document type codes for vouchers, invoices, receipts, and time sheets, which create automatic offset entries during the post 
program. (These entries are not self-balancing when you originally enter them.) The following document types are defined by J.D. Edwards and 
should not be changed: P Accounts Payable documents   R Accounts Receivable documents   T Payroll documents   I Inventory documents  
O Purchase Order Processing documents   J General Accounting/Joint Interest Billing documents   S Sales Order Processing documents

szKeyCompanyKCOOcharNONENONE

A number that, along with order number and order type, uniquely identifies an order document (such as a purchase order, a contract, a 
sales order, and so on). If you use the Next Numbers by Company/Fiscal Year facility, the Automatic Next Numbers program (X0010) uses the 
order company to retrieve the correct next number for that company. If two or more order documents have the same order number and order 
type, the order company lets you locate the desired document. If you use the regular Next Numbers facility, the order company is not used to 
assign a next number. In this case, you probably would not use the order company to locate the document.

mnLineNumberLNIDMATH_NUMERICNONENONE

A number that identifies multiple occurrences, such as line numbers on a purchase order or other document. Generally, the system assigns 
this number,but in some cases you can override it.

mnOldUnitPriceUPRCMATH_NUMERICNONENONE

The list or base price to be charged for one unit of this item. In sales order entry, all prices must be set up in the Item Base Price File table 
(F4106).

mnOldExtendedPriceAEXPMATH_NUMERICNONENONE

The number of units multiplied by the unit price.

mnOldUnitCostUNCSMATH_NUMERICNONENONE

The amount per unit, derived by dividing the total cost by the unit quantity.

mnOldExtendedCostECSTMATH_NUMERICNONENONE

For accounts receivable and accounts payable, the invoice (gross) amount. For sales orders and purchase orders, the unit cost times the 
number of units.

mnOldListPriceLPRCMATH_NUMERICNONENONE

The list price in the unit of measure of the base price retrieved from the Base Price File (F4106).  This is the price the customer would pay if 
there were no price adjustments applied during Sales Order Entry.  This price is stated in domestic currency.

mnNewUnitPriceUPRCMATH_NUMERICNONENONE

The list or base price to be charged for one unit of this item. In sales order entry, all prices must be set up in the Item Base Price File table 
(F4106).

mnNewExtendedPriceAEXPMATH_NUMERICNONENONE

The number of units multiplied by the unit price.

mnNewUnitCostUNCSMATH_NUMERICNONENONE

The amount per unit, derived by dividing the total cost by the unit quantity.

mnNewExtendedCostECSTMATH_NUMERICNONENONE

For accounts receivable and accounts payable, the invoice (gross) amount. For sales orders and purchase orders, the unit cost times the 
number of units.

mnNewListPriceLPRCMATH_NUMERICNONENONE

The list price in the unit of measure of the base price retrieved from the Base Price File (F4106).  This is the price the customer would pay if 
there were no price adjustments applied during Sales Order Entry.  This price is stated in domestic currency.

cSuppressErrorMessageEV01charNONENONE

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

szErrorMessageDTAIcharNONENONE

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.

Related Functions

None

Related Tables

None