ClearCostChnagedFlag

Item Cost I/O

Major Business Rule

Object Name: XF4105

Parent DLL: COPBASE

Location: Client/Server

Language: C

Data Structure

DXF4105G - Clear Cost Changed Flag

Parameter NameData ItemData TypeReq/OptI/O/Both
cSuppressErrorEV01charOPTNONE

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

szErrorMessageIDDTAIcharOPTNONE

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.

mnShortItemNumberITMMATH_NUMERICOPTNONE

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

szBusinessUnitMCUcharOPTNONE

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.

szLocationLOCNcharOPTNONE

The storage location from which goods will be moved.

szLotNumberLOTNcharOPTNONE

A number that identifies a lot or a serial number. A lot is a group of items with similar characteristics.

szCostMethodLEDGcharOPTNONE

A user defined code (40/CM) that specifies the basis for calculating item costs. Cost methods 01 through 19 are reserved for J.D. Edwards 
use.

mnNumberOfKeysCDLMATH_NUMERICOPTNONE

The length of the user defined code. It cannot be greater than 10 characters.

Related Functions

B4000150 Get Branch Constants
B9800100 Get Audit Information
XF41021 Update F41021 Locations

Related Tables

F4105 Item Cost File
CopyAndWriteCostRecords

CopyAndWriteCostRecords

Item Cost I/O

Major Business Rule

Object Name: XF4105

Parent DLL: COPBASE

Location: Client/Server

Language: C

Functional Description

Purpose

This function writes Item Cost records (F4105) for the key information passed in.


Setup Notes and Prerequisites

The Cost Level (CLEV), Item Number (ITM), Branch (MCU), Location (LOCN) and Lot (LOTN) are required 

input parameters.


Technical Specification


This function retrieves the cost information from the F4105 for the primary location and uses this as 

a basis for the  cost records to be created.  A new F4105 record is written for the information 

passed in according to the cost level (CLEV).  

Data Structure

DXF4105F - Copy and Write Cost Records

Parameter NameData ItemData TypeReq/OptI/O/Both
cCostLevelCLEVcharNONENONE

A code that indicates whether the system maintains one overall inventory cost for the item, a different cost for each branch/plant, or a 
different cost for each location and lot within a branch/plant. The system maintains inventory costs in the Inventory Cost table (F4105). Valid codes 
are:    1   Item level    2   Item/Branch level    3   Item/Branch/Location level

mnShortItemNumberITMMATH_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

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.

szLocationLOCNcharNONENONE

The storage location from which goods will be moved.

szLotNumberLOTNcharNONENONE

A number that identifies a lot or a serial number. A lot is a group of items with similar characteristics.

cErrorCodeERRCcharNONENONE

This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document 
Set Server program (XT4914).

mnFromShortItemNumberITMMATH_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

szFromBranchPlantMCUcharNONENONE

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.

szFromLocationLOCNcharNONENONE

The storage location from which goods will be moved.

szFromLotNumberLOTNcharNONENONE

A number that identifies a lot or a serial number. A lot is a group of items with similar characteristics.

szProgramIDPIDcharNONENONE

The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry 
interactive program is P4210, and the number of the Print Invoices batch process report is R42565. The program ID is a variable length value. 
It is assigned according to a structured syntax in the form TSSXXX, where: T The first character of the number is alphabetic and identifies the 
type, such as P for Program, R for Report, and so on. For example, the value P in the number P4210 indicates that the object is a 
program. SS The second and third characters of the number are numeric and identify the system code. For example, the value 42 in the number P4210 
indicates that this program belongs to system 42, which is the Sales Order Processing system. XXX The remaining characters of the numer are 
numeric and identify a unique program or report. For example, the value 10 in the number P4210 indicates that this is the Sales Order Entry 
program.

Related Functions

B4000150 Get Branch Constants
B9800100 Get Audit Information
XF41021 Update F41021 Locations

Related Tables

F4105 Item Cost File
DeleteAllRelatedCostRecords

DeleteAllRelatedCostRecords

Item Cost I/O

Major Business Rule

Object Name: XF4105

Parent DLL: COPBASE

Location: Client/Server

Language: C

Functional Description

Purpose

This function deletes all cost records from the Item Cost table (F4105) that are related to an 

obsolete Item Master, Item Branch or Item Location record.


Setup Notes and Prerequisites

The Item Number (ITM), Branch (MCU), Location (LOCN), Lot (LOTN) and Mode (MODE) are required input 

parameters.  The Location and Lot are required only if the Mode = 3.


Mode = 1 if you wish to delete by Item only.

Mode = 2 if you wish to delete by Item and Branch.

Mode = 3 if you wish to delete by Item, Branch, Location and Lot.


Technical Specification


This function fetches the F4105 for the keys passed in and the Mode.  The corresponding F4105 records 

are deleted.  


Data Structure

DXF4105E - Delete All Related Cost Records

Parameter NameData ItemData TypeReq/OptI/O/Both
mnShortItemNumberITMMATH_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

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.

szLocationLOCNcharNONENONE

The storage location from which goods will be moved.

szLotLOTNcharNONENONE

A number that identifies a lot or a serial number. A lot is a group of items with similar characteristics.

cModeMODEcharNONENONE

The processing mode used in Purchase Order Consolidator to signify when specific orders are being processed.

cSuppressErrorMsgEV01charNONENONE

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

cErrorCodeERRCcharNONENONE

This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document 
Set Server program (XT4914).

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.

Related Functions

B4000150 Get Branch Constants
B9800100 Get Audit Information
XF41021 Update F41021 Locations

Related Tables

F4105 Item Cost File
EditF4105

EditF4105

Item Cost I/O

Major Business Rule

Object Name: XF4105

Parent DLL: COPBASE

Location: Client/Server

Language: C

Data Structure

DXF4105H - Edit F4105

Parameter NameData ItemData TypeReq/OptI/O/Both
mnIdentifierShortItemITMMATH_NUMERICOPTNONE

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

szIdentifier2ndItemLITMcharOPTNONE

A number that identifies the item. The system provides three separate item numbers plus an extensive cross-reference capability to 
alternative item numbers. The three types of item numbers are: Item Number (short) An 8-digit, computer-assigned item number. 2nd Item Number A 
25-digit, user defined, alphanumeric item number. 3rd Item Number  Another 25-digit, user defined, alphanumeric item number. In addition to 
these three basic item numbers, the system provides an extensive cross-reference search capability. You can define numerous 
cross-references to alternative part numbers. For example, you can define substitute item numbers, replacements, bar codes, customer numbers, or 
supplier numbers.

szIdentifier3rdItemAITMcharOPTNONE

The system provides three separate item numbers plus an extensive cross-reference capability to alternate item numbers. These item 
numbers are as follows: 1.  Item Number (short) - An 8-digit, computer-assigned item number. 2.  2nd Item Number - The 25-digit, free-form, user 
defined alphanumeric item number. 3.  3rd Item Number - Another 25-digit, free-form, user defined alphanumeric item number.  In addition to 
these three basic item numbers, an extensive cross-reference search capability has been provided (see XRT). Numerous cross references to 
alternate part numbers can be user defined, such as substitute item numbers, replacements, bar codes, customer numbers, or supplier 
numbers.

szCostCenterMCUcharOPTNONE

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.

szLocationLOCNcharOPTNONE

The storage location from which goods will be moved.

szLotLOTNcharOPTNONE

A number that identifies a lot or a serial number. A lot is a group of items with similar characteristics.

szLedgTypeLEDGcharOPTNONE

A user defined code (40/CM) that specifies the basis for calculating item costs. Cost methods 01 through 19 are reserved for J.D. Edwards 
use.

cCostLevelCLEVcharOPTNONE

A code that indicates whether the system maintains one overall inventory cost for the item, a different cost for each branch/plant, or a 
different cost for each location and lot within a branch/plant. The system maintains inventory costs in the Inventory Cost table (F4105). Valid codes 
are:    1   Item level    2   Item/Branch level    3   Item/Branch/Location level

cCostingSelectionInventorCSINcharOPTNONE

Internal field used to indicate that a cost record is the inventory costing method selected.  For example, if the inventory costing method is 
'01'(40/CM), an I will be stored in the '01' cost record (if it exists).

cCostingSelectionPurchasiCSPOcharOPTNONE

Internal field used to indicate that a cost record is the purchasing costing method selected.  For example, if the purchasing costing method 
is '01'(40/CM), a P will be stored in the '01' cost record (if it exists).

mnAmountUnitCostUNCSMATH_NUMERICOPTNONE

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

cStockingTypeSTKTcharOPTNONE

A user defined code (41/I) that indicates how you stock an item, for example, as finished goods or as raw materials. The following stocking 
types are hard-coded and you should not change them:    0   Phantom item    B Bulk floor stock    C Configured item    E Emergency/corrective 
maintenance    F Feature    K Kit parent item    N Nonstock  The first character of Description 2 in the user defined code table indicates if the item 
is purchased (P) or manufactured (M).

szErrorMessageIDDTAIcharOPTNONE

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.

cErrorCodeERRCcharOPTNONE

This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document 
Set Server program (XT4914).

cSuppressErrorMessageEV01charOPTNONE

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

mnCarryingCostCRCSMATH_NUMERICOPTNONE

Reserved for J.D. Edwards. 

mnOverstockCostOSTCMATH_NUMERICOPTNONE

Future use - APS A value that identifies the APS overstock cost.

szLotGradeLOTGcharOPTNONE

A code that indicates the grade of a lot. The grade is used to indicate the quality of the lot. Examples include the following:    A1   Premium 
grade    A2   Secondary grade  The grade for a lot is stored in the Lot Master table (F4108).

mnStockoutCostSTOCMATH_NUMERICOPTNONE

Future use - APS A code that identifies the APS stockout cost.

cEditCodeEDITcharOPTNONE

cCostChangedFlagCCFLcharOPTNONE

A flag that identifies items in which costs have changed. Valid values are:      0 Costs have not changed. 1 Costs have changed.

szUserIdUSERcharOPTNONE

The code that identifies a user profile.

szProgramIdPIDcharOPTNONE

The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry 
interactive program is P4210, and the number of the Print Invoices batch process report is R42565. The program ID is a variable length value. 
It is assigned according to a structured syntax in the form TSSXXX, where: T The first character of the number is alphabetic and identifies the 
type, such as P for Program, R for Report, and so on. For example, the value P in the number P4210 indicates that the object is a 
program. SS The second and third characters of the number are numeric and identify the system code. For example, the value 42 in the number P4210 
indicates that this program belongs to system 42, which is the Sales Order Processing system. XXX The remaining characters of the numer are 
numeric and identify a unique program or report. For example, the value 10 in the number P4210 indicates that this is the Sales Order Entry 
program.

szWorkStationIdJOBNcharOPTNONE

The code that identifies the work station ID that executed a particular job.

mnTimeOfDayTDAYMATH_NUMERICOPTNONE

The computer clock in hours:minutes:seconds.

jdDateUpdatedUPMJJDEDATEOPTNONE

The date that specifies the last update to the file record.

mnUserReservedNumberURABMATH_NUMERICOPTNONE

This is a 8 position code that is reserved for the user.  JDE does not currently use this field and will not utilize this field in the future.

mnUserReservedAmountURATMATH_NUMERICOPTNONE

This is a 15 position code that is reserved for the user.  JDE does not currently use this field and will not utilize this field in the future.

szUserReservedCodeURCDcharOPTNONE

This is a 2 position code that is reserved for the user.  JDE does not currently use this field and will not utilize this field in the future.

jdUserReservedDateURDTJDEDATEOPTNONE

This is a 6 position code that is reserved for the user.  JDE does not currently use this field and will not utilize this field in the future.

szUserReservedReferenceURRFcharOPTNONE

A 15-position reference that is reserved for the user.  J.D. Edwards does not currently use this field and does not plan to use it in the future.

cActionCodeEV01charOPTNONE

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

szCostingMethodSalesCSMTcharOPTNONE

A user defined code (40/CM) that indicates the cost method that the system uses to calculate the cost of goods sold for the item. Cost 
methods 01-19 are reserved for J.D. Edwards use.

szCostMethodPurchasingPCSMcharOPTNONE

A user defined code (40/CM) that indicates the cost method that the system uses to determine the cost of the item for purchase orders. Cost 
methods 01-19  are reserved for J.D. Edwards use.

Related Functions

B4000150 Get Branch Constants
B9800100 Get Audit Information
XF41021 Update F41021 Locations

Related Tables

F4105 Item Cost File
GetDefaultInvPurchCostMethods

GetDefaultInvPurchCostMethods

Item Cost I/O

Major Business Rule

Object Name: XF4105

Parent DLL: COPBASE

Location: Client/Server

Language: C

Functional Description

Purpose

This function verifies if either the Inventory and/or Purchasing Costing Method exists in the Item 

Cost table (F4105).


Setup Notes and Prerequisites

The Cost Level (CLEV), Item Number (ITM), Branch (MCU), Location (LOCN) and Lot (LOTN) are required 

input parameters.

If the Cost Level is not = '3', the Location and Lot fields are not required.


Technical Specification


This function retrieves the F4105 for the keys passed in.  If a record is not found and the Cost 

Level = 1, get the default value from the Data Dictionary.  If the default value from the Data Dictionary 

equals the Cost Method passed in, load default value to the Inventory and/or Purchasing Costing 

Method.  If record does not exist and the Cost Level = 2 or 3, then retrieve the Branch Constants. The value 

is loaded from the Branch Constants to the Inventory and/or Purchasing Costing Method if the Get 

Branch Constants value is equal to the Costing Method passed in .

Data Structure

DXF4105C - Get Default Inventory Purchasing Cost Methods

Parameter NameData ItemData TypeReq/OptI/O/Both
szCostingMethodLEDGcharNONENONE

A user defined code (40/CM) that specifies the basis for calculating item costs. Cost methods 01 through 19 are reserved for J.D. Edwards 
use.

cCostLevelCLEVcharNONENONE

A code that indicates whether the system maintains one overall inventory cost for the item, a different cost for each branch/plant, or a 
different cost for each location and lot within a branch/plant. The system maintains inventory costs in the Inventory Cost table (F4105). Valid codes 
are:    1   Item level    2   Item/Branch level    3   Item/Branch/Location level

mnShortItemNumberITMMATH_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

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.

szLocationLOCNcharNONENONE

The storage location from which goods will be moved.

szLotLOTNcharNONENONE

A number that identifies a lot or a serial number. A lot is a group of items with similar characteristics.

cInventoryCostingMethodCSINcharNONENONE

Internal field used to indicate that a cost record is the inventory costing method selected.  For example, if the inventory costing method is 
'01'(40/CM), an I will be stored in the '01' cost record (if it exists).

cPurchasingCostingMethodCSPOcharNONENONE

Internal field used to indicate that a cost record is the purchasing costing method selected.  For example, if the purchasing costing method 
is '01'(40/CM), a P will be stored in the '01' cost record (if it exists).

szSalesCostingMethodCSMTcharNONENONE

A user defined code (40/CM) that indicates the cost method that the system uses to calculate the cost of goods sold for the item. Cost 
methods 01-19 are reserved for J.D. Edwards use.

Related Functions

B4000150 Get Branch Constants
B9800100 Get Audit Information
XF41021 Update F41021 Locations

Related Tables

F4105 Item Cost File
GetItemCost

GetItemCost

Item Cost I/O

Major Business Rule

Object Name: XF4105

Parent DLL: COPBASE

Location: Client/Server

Language: C


Data Structure

DXF4105A - Get Item Cost

Parameter NameData ItemData TypeReq/OptI/O/Both
cInventoryCostSelectionCSINcharNONENONE

Internal field used to indicate that a cost record is the inventory costing method selected.  For example, if the inventory costing method is 
'01'(40/CM), an I will be stored in the '01' cost record (if it exists).

mnItemNumberShortITMMATH_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

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.

szInventoryLocationLOCNcharNONENONE

The storage location from which goods will be moved.

szInventoryLotLOTNcharNONENONE

A number that identifies a lot or a serial number. A lot is a group of items with similar characteristics.

cCostLevelCLEVcharNONENONE

A code that indicates whether the system maintains one overall inventory cost for the item, a different cost for each branch/plant, or a 
different cost for each location and lot within a branch/plant. The system maintains inventory costs in the Inventory Cost table (F4105). Valid codes 
are:    1   Item level    2   Item/Branch level    3   Item/Branch/Location level

idItemCostRecordGENLNGIDNONENONE

General purpose ID variable.

cPurchasingCostingSelectionCSPOcharNONENONE

Internal field used to indicate that a cost record is the purchasing costing method selected.  For example, if the purchasing costing method 
is '01'(40/CM), a P will be stored in the '01' cost record (if it exists).

szCostMethodLEDGcharNONENONE

A user defined code (40/CM) that specifies the basis for calculating item costs. Cost methods 01 through 19 are reserved for J.D. Edwards 
use.

cErrorCodeERRcharNONENONE

The Data Field Error Code field is simply a generic data field to pass an error condition flag.  This field is one of the fields that make up the 
external parameter data structure of the Data Dictionary Server.

cCallTypeEV01charNONENONE

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

cReturnF4105RowPointerEV02charNONENONE

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

Related Functions

B4000150 Get Branch Constants
B9800100 Get Audit Information
XF41021 Update F41021 Locations

Related Tables

F4105 Item Cost File
GetItemCostInformation

GetItemCostInformation

Item Cost I/O

Major Business Rule

Object Name: XF4105

Parent DLL: COPBASE

Location: Client/Server

Language: C

Functional Description

Purpose

This function retrieves the cost information for the pointer to the cost record that is passed in.


Setup Notes and Prerequisites

The pointer to the Item Cost table (F4105) is a required input parameter.


Technical Specification


This function uses the pointer passed in to retrieve the item cost information and return it to the 

calling program.  The Costing Method (LEDG), Location (LOCN), Lot (LOTN), Cost (UNCS), Purchasing 

Selection (CSPO), Inventory Selection (CSIN) and Lot Grade (LOTG) are returned.


Data Structure

DXF4105D - Get Item Cost Information

Parameter NameData ItemData TypeReq/OptI/O/Both
idF4105RowPointerGENLNGIDNONENONE

General purpose ID variable.

szLocationLOCNcharNONENONE

The storage location from which goods will be moved.

szLotLOTNcharNONENONE

A number that identifies a lot or a serial number. A lot is a group of items with similar characteristics.

szLotGradeLOTGcharNONENONE

A code that indicates the grade of a lot. The grade is used to indicate the quality of the lot. Examples include the following:    A1   Premium 
grade    A2   Secondary grade  The grade for a lot is stored in the Lot Master table (F4108).

szCostMethodLEDGcharNONENONE

A user defined code (40/CM) that specifies the basis for calculating item costs. Cost methods 01 through 19 are reserved for J.D. Edwards 
use.

mnUnitCostUNCSMATH_NUMERICNONENONE

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

cPurchaseCostingSelectionCSPOcharNONENONE

Internal field used to indicate that a cost record is the purchasing costing method selected.  For example, if the purchasing costing method 
is '01'(40/CM), a P will be stored in the '01' cost record (if it exists).

cInventoryCostingSelectionCSINcharNONENONE

Internal field used to indicate that a cost record is the inventory costing method selected.  For example, if the inventory costing method is 
'01'(40/CM), an I will be stored in the '01' cost record (if it exists).

cCostChangedFlagCCFLcharOPTNONE

A flag that identifies items in which costs have changed. Valid values are:      0 Costs have not changed. 1 Costs have changed.

Related Functions

B4000150 Get Branch Constants
B9800100 Get Audit Information
XF41021 Update F41021 Locations

Related Tables

F4105 Item Cost File
UpdateItemCost

UpdateItemCost

Item Cost I/O

Major Business Rule

Object Name: XF4105

Parent DLL: COPBASE

Location: Client/Server

Language: C

Functional Description

Purpose

This function updates the cost for the costing method in the Item Cost table (F4105).


Setup Notes and Prerequisites

The Costing Method (LEDG), Cost Level (CLEV), Item Number (ITM), Branch (MCU), Location (LOCN), Lot 

(LOTN) and Cost (UNCS) fields are required input parameters.  The Location and Lot are only required if 

the cost level is 3.


Technical Specification


This function updates the cost for the costing method specified in the F4105.  If the costing method 

does not exist, the function Get Default Inv Purch Cost Methods is called to determine the correct 

information for the CSIN and CSPO columns.  When fetching, updating or adding a record, if the cost level 

is a 1, the Branch, Location and Lot fields are blank.  If the cost level is a 2, the Location and 

Lot fields are blank.  If the cost level is a 3, none of the fields are required to be blank.



Data Structure

DXF4105B - Update Item Cost

Parameter NameData ItemData TypeReq/OptI/O/Both
szCostingMethodLEDGcharNONENONE

A user defined code (40/CM) that specifies the basis for calculating item costs. Cost methods 01 through 19 are reserved for J.D. Edwards 
use.

cCostLevelCLEVcharNONENONE

A code that indicates whether the system maintains one overall inventory cost for the item, a different cost for each branch/plant, or a 
different cost for each location and lot within a branch/plant. The system maintains inventory costs in the Inventory Cost table (F4105). Valid codes 
are:    1   Item level    2   Item/Branch level    3   Item/Branch/Location level

mnShortItemNumberITMMATH_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

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.

szLocationLOCNcharNONENONE

The storage location from which goods will be moved.

szLotLOTNcharNONENONE

A number that identifies a lot or a serial number. A lot is a group of items with similar characteristics.

mnCostUNCSMATH_NUMERICNONENONE

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

szProgramIDPIDcharNONENONE

The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry 
interactive program is P4210, and the number of the Print Invoices batch process report is R42565. The program ID is a variable length value. 
It is assigned according to a structured syntax in the form TSSXXX, where: T The first character of the number is alphabetic and identifies the 
type, such as P for Program, R for Report, and so on. For example, the value P in the number P4210 indicates that the object is a 
program. SS The second and third characters of the number are numeric and identify the system code. For example, the value 42 in the number P4210 
indicates that this program belongs to system 42, which is the Sales Order Processing system. XXX The remaining characters of the numer are 
numeric and identify a unique program or report. For example, the value 10 in the number P4210 indicates that this is the Sales Order Entry 
program.

idF4105RowPointerGENLNGIDNONENONE

General purpose ID variable.

szSecondItemNumberLITMcharNONENONE

A number that identifies the item. The system provides three separate item numbers plus an extensive cross-reference capability to 
alternative item numbers. The three types of item numbers are: Item Number (short) An 8-digit, computer-assigned item number. 2nd Item Number A 
25-digit, user defined, alphanumeric item number. 3rd Item Number  Another 25-digit, user defined, alphanumeric item number. In addition to 
these three basic item numbers, the system provides an extensive cross-reference search capability. You can define numerous 
cross-references to alternative part numbers. For example, you can define substitute item numbers, replacements, bar codes, customer numbers, or 
supplier numbers.

szThirdItemNumberAITMcharNONENONE

The system provides three separate item numbers plus an extensive cross-reference capability to alternate item numbers. These item 
numbers are as follows: 1.  Item Number (short) - An 8-digit, computer-assigned item number. 2.  2nd Item Number - The 25-digit, free-form, user 
defined alphanumeric item number. 3.  3rd Item Number - Another 25-digit, free-form, user defined alphanumeric item number.  In addition to 
these three basic item numbers, an extensive cross-reference search capability has been provided (see XRT). Numerous cross references to 
alternate part numbers can be user defined, such as substitute item numbers, replacements, bar codes, customer numbers, or supplier 
numbers.

cPurchasingSelectionCSPOcharNONENONE

Internal field used to indicate that a cost record is the purchasing costing method selected.  For example, if the purchasing costing method 
is '01'(40/CM), a P will be stored in the '01' cost record (if it exists).

cInventorySelectionCSINcharNONENONE

Internal field used to indicate that a cost record is the inventory costing method selected.  For example, if the inventory costing method is 
'01'(40/CM), an I will be stored in the '01' cost record (if it exists).

cGetDefaultFlagEV01charNONENONE

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

cCostChangedFlagCCFLcharOPTNONE

A flag that identifies items in which costs have changed. Valid values are:      0 Costs have not changed. 1 Costs have changed.

Related Functions

B4000150 Get Branch Constants
B9800100 Get Audit Information
XF41021 Update F41021 Locations

Related Tables

F4105 Item Cost File