AccessRecordInF41061

Access Record In F41061

Major Business Rule

Object Name: B4100250

Parent DLL: COPBASE

Location: Client/Server

Language: C

Functional Description
Purpose
This function fetches, changes, adds or deletes records to the Supplier Catalog table (F41061).

Setup Notes and Prerequisites

The Address Number (AN8), Item Number (ITM), Branch/Plant (MCU), Currency Code (CRCD), Unit of 

Measure (UOM), Expired Date (EXDJ), Catalog Number (CATN) and Quantity (UORG) are required parameters.


Access Method:

F= Fetch

D= Delete

U= Update

I= Insert


Special Logic:

None

Technical Specification

This function fetches, deletes, updates or inserts records to the database based on the Access Method 
passed in.  The record is fetched from the Supplier Catalog table with the keys passed in and the 

appropriate action is taken.


Edits:

None.

Retrievals:

AccessMethod:F)etch
D)elete

U)pdate

I)nsert


Use the values of each key field to access the database table. Use the GetAuditInfo function to stamp 

the user jobn, updj, and tday in the record for update and insert.


Returns:

Return the ErrorMessage when the SetGBRError is set to 1, else set the Error.

^

Data Structure

D4100250 - Access Record In F41061

Parameters:
Data Item Data Structure DescriptionI/ORequired
AN8AddressNumberI/0Y

ITMItemNumberI/0Y

MCUBusinessUnitI/0Y

CRCDCurrencyCodeI/0Y

UOMUnitOfMeasureI/0Y

EXDJExpiredDateI/0Y

CATNCatalogNumberI/0Y

UORGQuantityI/0Y

LITM2ndItemNumberI/0N

AITM3rdItemNumberI/0N

PRRCUnitCostI/0N

EFTJEffectiveDateI/0N

PIDProgramIDI/0N

EV01SetGBRErrorI/0N

DTAIErrorMessageI/0N

ERRAccessMethodI/0N



^

Parameter NameData ItemData TypeReq/OptI/O/Both
mnAddressNumberAN8MATH_NUMERICNONENONE

A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or 
location.

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

szBusinessUnitMCUcharNONENONE

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.

szCurrencyCodeCRCDcharNONENONE

A code that identifies the currency of a transaction. 

szUnitOfMeasureUOMcharNONENONE

A user defined code (00/UM) that indicates the quantity in which to express an inventory item, for example, CS (case) or BX (box).

jdExpiredDateEXDJJDEDATENONENONE

The date on which a transaction, text message, agreement, obligation, or preference has expired or been completed.

szCatalogNumberCATNcharNONENONE

This is a grouping of suppliers and items for pricing purposes.

mnQuantityUORGMATH_NUMERICNONENONE

The quantity of units affected by this transaction.

sz2ndItemNumberLITMcharNONENONE

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.

sz3rdItemNumberAITMcharNONENONE

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.

mnUnitCostPRRCMATH_NUMERICNONENONE

The unit cost of one item, as purchased from the supplier, excluding freight,taxes, discounts, and other factors that might modify the actual 
unit cost you record when you receive the item.

jdEffectiveDateEFTJJDEDATENONENONE

The date when a transaction, contract, obligation, preference, or policy rule becomes effective.

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.

cSetGBRErrorEV01charNONENONE

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.

cAccessMethodERRcharNONENONE

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.

Related Functions

B9800100 Get Audit Information

Related Tables

F41061 Supplier Price/Catalog File