VerifyAndGetItemCostComponent

Verify And Get Item Cost Component

Major Business Rule

Object Name: B3000600

Parent DLL: CMFG

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose

The purpose of this business function is to retrieve a complete row from the Item Cost Component 
Table (F30026).  If Return code is a '1' then return the pointer to DS, and allocate memory.



1.2Setup Notes and Prerequisites

The setup notes and prerequisites contains information that needs to be provided to the application 
developer to successfully use attach the business function.  Important prerequisite Business Functions 

that need to be run and any additional relevant information (what event points, limitations, data 

structure peculiarities) should be detailed.

• Use bullet points

1.3Special Logic

This section should be used when additional logic is used in the Business Function for application 
specific functionality or exceptional situations.


2.Technical Specifications



2.4Processing 


if the PointerTo F30026 is not NULL then exit.

Retrievals: 

1.0  Fetch F30026 record with key passed in DS.


2.0.  If Fetch failed, return messages.

2.1.  If DS Call Type is equal to '1', return error messages.
2.1.1.  Assign DS Error Message ID = '0002'.
2.1.2.  If DS ERR SuppressError is not equal to '1', SetGBRError where error message is '0002' 
and DS Cost Type is highlighted.


3.0.  If Fetch is successful, check if user wants to return pointer and messages.

3.1.  If DS Call Type is equal to '2', return error messages.
3.1.1  Assign DS Error Message ID = '4502'(Record Already Exists).
3.1.2  If DS ERR SuppressError is not equal to '1', SetGBRError where error message is 
'4502' (Record Already Exists) and DS Cost Type is highlighted.

3.2.  If fetch was successful and DS EV01 Return Code is a '1', then allocate memory for the 
F30026 record and copy information into the pointer.



Errors:
The ErrorMessage is the error message to set, and the error message to return.

If SuppressError != 1 then use jdeSetGBRError, else suppress the set.


Returns:

Optionally (if ReturnCode = '1') return GENLNG pointer to the F30026 Data structure
^

Data Structure

D3000600 - Get Item Cost Component

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

szBranchMCUcharNONENONE

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.

szLedgerTypeLEDGcharNONENONE

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.

szCostTypeCOSTcharNONENONE

A code that designates each element of cost for an item. Examples of the cost object types are:   o  A1  Purchased raw material   o  B1  
Direct labor routing rollup   o  B2  Setup labor routing rollup   o  C1  Variable burden routing rollup   o  C2  Fixed burden routing rollup   o  Dx  Outside 
operation routing rollup   o  Xx  Extra add-ons, such as electricity and water  The optional add-on computations usually operate with the type 
Xx extra add-ons. This cost structure allows you to use an unlimited number of cost components to calculate alternative cost rollups. The 
system then associates these cost components with one of six user defined summary cost buckets.

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.

cSuppressErrorERRcharNONENONE

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.

idPointerToF30026GENLNGIDNONENONE

General purpose ID variable.

cPointerReturnCodeEV01charNONENONE

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

cCallTypeEV01charNONENONE

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

Related Functions

None

Related Tables

F30026 Item Cost Component Add-Ons