VerifyAndGetMfgConstants

Verify And Get MFG Constants

Major Business Rule

Object Name: B3000440

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose

Verify that the Manufacturing Constants  record exists and return a pointer to the Manufacturing 
Constants

Record.  


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
• 'b7'b7
1.3Special Logic

If a pointer to the record is returned, this pointer must be cleared in the application using the BF 

FreePtrtoDataStructure.


2.Technical Specifications


2.4Processing 

Edits:

1.0.  Initialize the DS F3009Pointer to NULL.


2.0.  Fetch the Manufacturing Constants Record where MCU = DS Business Unit.


3.0.  If Fetch failed, return messages.

3.1.  If DS Call Type is equal to '1', return error messages.
3.1.1.  Assign DS Error Message ID = '4430' (Constants not set up).
3.1.2.  If DS Suppress Error Message is not equal to '1', SetGBRError where error message is 

'4430' ( Constants not set up) and DS Business Unit is highlighted.


4.0.  If Fetch is successful, return pointer and messages.

4.1.  If DS Call Type is equal to '2', return error messages.
4.1.  Assign DS Error Message ID = '4501' (Record Already Exists).
4.2.  If DS Suppress Error Message is not equal to '1', SetGBRError where error message is 

'4502' (Record Already Exists) and DS Business Unit is highlighted.


4.2.  If  DS Call Type is not equal to '2' and DS Return Pointer is equal to '1', return pointer 
to the Manufacturing Constants Record.

4.2.1.  Allocate memory for the Manufacturing Constants Record.
4.2.2.  If Memory Allocation is successful, Assign DS F3009 Pointer = Address Manufacturing 
Constants Record.

4.2.3.  If Memory Allocation is not successful, return error messages.
4.2.3.1.  Assign DS Error Message ID = '4366' (No Memory).
4.2.3.2.  If DS Suppress Error Message is not equal to '1', SetGBRError where error 

message is '4366' and DS Business Unit is highlighted.


Returns:

1.  If Call Type is equal to '1' and the fetch fails, return Error Message ID '4430' (Constants not 

set up).

2.  If Call Type is equal to '2' and the fetch is successful, return Error Message ID '4501' (Record 
Already Exists).

3.  If Return Pointer is equal to '1', the fetch is successful, and the memory allocation is 

successful, return the pointer to the data structure.




Data Structure

D3000440 - Verify And Get MFG Constants

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

cReturnPointerEV01charNONENONE

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

cCallTypeEV01charNONENONE

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

cSuppressErrorMessageEV01charNONENONE

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

idF3009PointerGENLNGIDNONENONE

General purpose ID variable.

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

B4000460 Free Ptr To Data Structure

Related Tables

F3009 Job Shop Manufacturing Constants