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 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'.
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
D3100700 - Store W.O. Type And Count
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
cWOType | TYPS | char | NONE | NONE |
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
| ||||
cIOFlag | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
idLinkedListPointer | GENLNG | ID | NONE | NONE |
General purpose ID variable. | ||||
mnWOTypeCount | MATH01 | MATH_NUMERIC | NONE | NONE |
- - - Good Performance Low Value. | ||||
szErrorMessage | DTAI | char | OPT | NONE |
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
| ||||
cPassFlagB3100700 | EV01 | char | OPT | BOTH |
An option that specifies the type of processing for an event. |
None |
None |