GetNumberOfRelatedItems

Get Number Of Related Items

Major Business Rule

Object Name: B3001320

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose

This function reads the ECO Parts List file (F3013) and counts the number related items (i.e. records 
having a value greater than zero in the RSQ, Related Sequence, field) associated with a primary item 

on the ECO Parts List file.


1.2Setup Notes and Prerequisites

None.

1.3Special Logic

There is no special logic within this function.

2.Technical Specifications

2.4Processing 

1.Select all rows from the F3013 (ECO Parts List) table which match the Order number and Primary 
Sequence number passed in as input.


2.Count all fetched records which have a related sequence number (RSQ field) greater than zero.


        After all fetched records have been read, return the total count of related items to the 

calling program.

^

Data Structure

D3001320 - Get Number Of Related Items

Parameter NameData ItemData TypeReq/OptI/O/Both
mnOrderNumberDOCOMATH_NUMERICNONENONE

A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry, 
and so on.

mnPrimarySequencePSQMATH_NUMERICNONENONE

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.

cSuppressErrorMessagesEV01charNONENONE

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

mnNumberOfRelatedItemsMATH01MATH_NUMERICNONENONE

- - - Good Performance Low Value. 

cReleaseRequestEV02charNONENONE

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

Related Functions

B3000780 Get ECO Parts List Sequentially

Related Tables

None