F4101UpdateABCCode

Update ABC Code to F4102 and F4101

Minor Business Rule

Object Name: B4100750

Parent DLL: COPBASE

Location: Client/Server

Language: C

Functional Description

Purpose
Update Item Master Table (F4101) with the new ABC Codes to either Sales, Gross Margin, or Investment 
based on the SalesMarginAvgUpdate flag passed in.


Setup Notes and Prerequisites

None

Special Logic

None

Technical Specifications

This function first sets the key for the Item Master Table (ShortItemNumber), then updates the record 
with the ABC codes passed in and audit information. 

 

^

Data Structure

D4100750B - F4101 Update ABC Codes

Data Item Data Structure DescriptionI/ORequired

ITM        ShortItemNumber             I   Y

ABC        ABCCode                   I

EV01        SalesMarginAvgUpdate       I

PID        ProgramID                   I



^

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

cABCCodeABC0charNONENONE

Everest Parent Data Item

cSalesMarginAvgFlagEV01charNONENONE

Enter a '1' or Blank to update Sales ABC.
Enter a '2' to update Gross Margin.

Enter a '3' to update Average  Investment.ab 


^

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

B9800100 Get Audit Information

Related Tables

F4101 Item Master
F4102 Item Branch File
F4102UpdateABCCode

F4102UpdateABCCode

Update ABC Code to F4102 and F4101

Minor Business Rule

Object Name: B4100750

Parent DLL: COPBASE

Location: Client/Server

Language: C

Functional Description

Purpose
Update Item Branch Table (F4102) with the new ABC Codes to either Sales, Gross Margin, or Investment 
based on the SalesMarginAvgUpdate flag passed in.


Setup Notes and Prerequisites

None

Special Logic

None

Technical Specifications

This function first sets the key for the Item Master Table. The key is ShortItemNumber if 
UpdateAllItems equals '1' or else it's ShortItemNumber and Branch/Plant.  Then, it  updates the record(s) with 

the ABC codes passed in and audit information. 

 


^

Data Structure

D4100750A - F4102 Update ABC Codes

Data Item Data Structure DescriptionI/ORequired

ITM        ShortItemNumber        I    Y

MCU        BranchPlant                  I    Y

ABC        ABCCode                     I

EV01          UpdateAllItems               I

EV02        SalesMarginAvgUpdate         I

PID        ProgramID                    I


^

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.

cUpdateAllItemsEV01charNONENONE

Enter a '1'to update all records matching Short Item Number passed in.
Enter a ' 'to update only the record found with ITM and MCU passed  in.ab 


^

cSalesMarginAvgFlagEV02charNONENONE

Enter a '1' or Blank to update Sales ABC. 
Enter a '2' to update Gross Margin.

Enter a '3' to update Average  Investment.ab 


^

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.

cABCCodeABC0charNONENONE

Everest Parent Data Item

Related Functions

B9800100 Get Audit Information

Related Tables

F4101 Item Master
F4102 Item Branch File