F31P21CostClassificationMBF

F31P21 - Cost Classification MBF

Minor Business Rule

Object Name: N31P0300

Parent DLL: CEPM

Location: Client/Server

Language: NER

Functional Description
This NER performs adds, updates, deletes and inquiries on the Cost Classification table (F31P21).


Setup Notes and Prerequisites

The szTransactionAction parameter must be passed to the function to indicate the operation to be performed.  Valid values are:


A = Add

C = Change/Update

D = Delete

I = Inquire


Special Logic

All Cost Classification fields passed to the NER will be validated before the table operation is performed.  Any errors 

encountered will be returned.


Technical Specifications

1.0  If szTransactionAction is equal to A, C, D, or I

1.1  Validate szBranchPlant (MMCU) in Business Unit Master (F0006)

1.2  Validate mnProjectNumber (PRMJ) in Work Order Master (F4801)

1.3  Validate szCostType in UDC 30/CA

1.4  Validate szAccountId in the Account Master (F0901)

1.5  Validate szCostClassification in UDC 31P/C


2.0  If no errors in validation occured

2.1  Perform requested table operation




Data Structure

D31P0300 - F31P21 - Cost Classification MBF

Parameter NameData ItemData TypeReq/OptI/O/Both
szTransactionActionTNACcharOPTNONE

A code that indicates the activity you want to perform on the transaction. In an EDI transaction, this code represents the Transaction Set 
Purpose Code or Change Code.

cSuppressErrorMessageSUPPScharOPTNONE

A flag indicating whether or not runtime error messaging will occur when an error message is issued from a business function.        0 = allow 
runtime error message handling.        1 = suppress runtime error message handling.

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).

szBranchPlantMMCUcharOPTNONE

A code that represents a high-level business unit. Use this code to refer to a branch or plant that might have departments or jobs, which 
represent lower-level business units, subordinate to it. For example:     o Branch/Plant (MMCU)     o Dept A (MCU)     o Dept B (MCU)     o Job 123 
(MCU) Business unit security is based on the higher-level business unit.

mnProjectNumberPRJMMATH_NUMERICOPTNONE

A number that identifies an EPM project in the system. The project must be set up in the Add/Revise Project program (P31P011).

szCostTypeCOSTcharOPTNONE

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.

szAccountIdAIDcharOPTNONE

A number that the system assigns to each general ledger account in the Account Master table (F0901) to uniquely identify it. 

szCostClassificationCTCLcharOPTNONE

A user defined code 31P/CC that the system uses to associate cost types or account numbers with cost buckets, such as material costs, 
labor costs, other costs, or special costs. Correct cost classification ensures that costs are rolled up into the correct cost bucket within the EPM 
Project Workbench program (P31P001). 

jdDateUpdatedUPMJJDEDATEOPTNONE

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

szUserIdUSERcharOPTNONE

The code that identifies a user profile.

szWorkStationIdJOBNcharOPTNONE

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

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.

mnTimeOfDayTDAYMATH_NUMERICOPTNONE

The computer clock in hours:minutes:seconds.

Related Functions

None

Related Tables

None