GetDesignator

Get Designator

Minor Business Rule

Object Name: B3001260

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose

This business function will, when passed an Item Number, Branch/Plant code, and a category code, 

return the three digit designator code from one of ten different fields in 4102 table.


1.2Setup Notes and Prerequisites


The equivalencies of the category codes follow:

• S1=SRP1
• S2=SRP2
• S3=SRP3
• S4=SRP4
• S5=SRP5
• P1=PRP1
• P2=PRP2
• P3=PRP3
• P4=PRP4
• P5=PRP5

1.3Special Logic


The logic for this function is basically a group of ten if/then statements. If the processing option 

is S1, then the designator code is retrieved from the SRP1 field of 4102 table at the passed item 

number and Branch/Plant code and returned to the calling form in the PRPX variable.  If a 4102 record is 

not found and Suppress Error Messages is "1", return "0002" in the Error Message Id field; if Suppress 

Error Messages is "0", do not set an error on this condition or return error codes in Error Message 

Id.



^

Data Structure

D3001260 - Get Designator

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.

szDesignatorVariablePXcharNONENONE

User defined codes (5 separate codes are allowed) which can be used to generate selective reporting based on user assigned values of 
these codes.

szCategoryCodePXcharNONENONE

User defined codes (5 separate codes are allowed) which can be used to generate selective reporting based on user assigned values of 
these codes.

cSuppressErrorMessagesEV01charNONENONE

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

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

None

Related Tables

F4102 Item Branch File