F4818CheckApprovalStatus

F4818 Check Approval Status

Minor Business Rule

Object Name: N3003050

Parent DLL: CMFGBASE

Location: Client/Server

Language: NER

1.Functional Description

1.1Purpose

The function will not allow the user to enter a new routing or change an existing routing prior to a routing which is either in process or has been 

approved.  Moreover, this function will change the approval status of a new approval routing to a ' ' (In process) instead of 'p' (pending) that belongs to a group 

who is already in process of approving.


1.2Setup Notes and Prerequisites


1.3Special Logic

There is no special logic within this function.

2.Technical Specifications


2.4Processing 
The function will check the approval status of the next sequence number within the same group number.  If there is no next sequence number in the same 
group, it will check the approval status of the first record in the next group.  If in each case the status is approved ('A') or inprocess (' ') than the function 

will return Error Message Id as '1.'  Based on which the form event rules will display an appropriate error message.  Further, it will change the approval 

status of the new entered approval routing to (' '), in process, if the new routing belongs to a group who is already in process of approving.

^

Data Structure

D3003050 - F4818 Check Approval Status

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.

mnSequenceNumberOSEQMATH_NUMERICNONENONE

For OneWorld, the sequence by which users can set up the order in which their valid environments are displayed. For World, a sequence or 
sort number that the system uses to process records in a user defined order.

mnGroupingNumberGRPGMATH_NUMERICNONENONE

A number used to combine similar records.

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.

cApprovalStatusAPFLcharNONENONE

A user defined code (30/ST) that indicates the approval status of an engineering change order. For example:    A Accept (initiates 
notification of next review group)    R Reject (stops the notification process)

cSuppressErrorMessageSUPPScharNONENONE

A flag indicating whether or not runtime error messaging will occur when an error message is issued from a business function.        0 = allow 
runtime error message handling.        1 = suppress runtime error message handling.

Related Functions

None

Related Tables

None