VerifyChildWorkOrdersExist

Verify Child Work Orders Exist

Minor Business Rule

Object Name: B3100130

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose
This business function will validate that the Work Order Table (F4801) contains at least one Child 
Work Order for a given Work Order Number. This function will return a code '1'in the errorcode field, if 

any Child WO's are found and '0' if no Child WO's are found.


1.2Setup Notes and Prerequisites

• None.

1.3Special Logic

None.

2.Technical Specifications


2.4Processing 

Retrievals:
Check  the Work Order table (F4801) for a record using Parent Document Number (PARS) as the key 
field. The Parent WO Number must not be Work Order Number itself.


Returns:

If the any Child WO is found, the function will return '1' in the Error Code field, and '0' if  Child 
WO's are not found. If the Message Code is input as 'Y', the error message (Number - 1866) will be 

returned. 


^

Data Structure

D3100130 - Verify Child Work Orders Exist

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

cErrorCodeERRCcharNONENONE

This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document 
Set Server program (XT4914).

cMessageCodeMSGAcharNONENONE

A code to indicate which messages should be displayed. A Y code will display all messages, including those that have been cleared or 
processed, but not those already deleted. Any value other than Y will display current messages only.

Related Functions

None

Related Tables

F4801 Work Order Master File