StoreWOTypeAndCount

Store W.O. Type And Count

Major Business Rule

Object Name: B3100700

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose

This function will create a linked list to store WO Types (TYPS) and keep a count of the number of 

times each WO Type was passed in to the business function. The function will also output the stored WO 

Types and their counts on demand.


1.2Setup Notes and Prerequisites

• None.

1.3Special Logic

None.


2.Technical Specifications


2.4Processing 

If the I/O Flag is 'O' and no nodes exist on the linked list then return error '0002' and end the 

business function.

If the I/O Flag is 'I' then attempt to find the WO Type (TYPS) value in the linked list. 

If there is a match then update that WO Type's Count by 1.
If the WO Type was not found then create a new node in the linked list that will store the WO Type 

and it's Count. Set the Count value of the new node to '1'.

If the I/O Flag is 'O' then read the next node in the linked list, output it's WO Type and Count 
values, and destroy the node after it has been read.


Note: Global Variable cPassFlagB3100700 = '1' means GetNextLinkedListItem, Else 

GetFirstLinkedListItem.


----- Program Flow -------

1. Initialize Output Variables



Data Structure

D3100700 - Store W.O. Type And Count

Parameter NameData ItemData TypeReq/OptI/O/Both
cWOTypeTYPScharNONENONE

A user defined code (00/TY) that indicates the classification of a work order or engineering change order. You can use work order type as a 
selection criterion for work order approvals.

cIOFlagEV01charNONENONE

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

idLinkedListPointerGENLNGIDNONENONE

General purpose ID variable.

mnWOTypeCountMATH01MATH_NUMERICNONENONE

- - - Good Performance Low Value. 

szErrorMessageDTAIcharOPTNONE

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.

cPassFlagB3100700EV01charOPTBOTH

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

Related Functions

None

Related Tables

None