DetermineApprovalRouteCode

Determine Approval Route Code

Minor Business Rule

Object Name: B4300340

Parent DLL: CDIST

Location: Client/Server

Language: C

This function will determine the Approval Route Code that will be used for a purchase order (based on processing options set) and validate 
the existence of that approval route code^

Data Structure

D4300340 - Determine Approval Route Code

Parameter NameData ItemData TypeReq/OptI/O/Both
szOrderTypeDCTOcharNONENONE

A user defined code (00/DT) that identifies the type of document. This code also indicates the origin of the transaction. J.D. Edwards has 
reserved document type codes for vouchers, invoices, receipts, and time sheets, which create automatic offset entries during the post 
program. (These entries are not self-balancing when you originally enter them.) The following document types are defined by J.D. Edwards and 
should not be changed: P Accounts Payable documents   R Accounts Receivable documents   T Payroll documents   I Inventory documents  
O Purchase Order Processing documents   J General Accounting/Joint Interest Billing documents   S Sales Order Processing documents

szUserIDSignedOnUSERcharNONENONE

The code that identifies a user profile.

szBranchPlantMCUcharNONENONE

An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit 
might be a warehouse location, job, project, work center, branch, or plant. You can assign a business unit to a document, entity, or person for 
purposes of responsibility reporting. For example, the system provides reports of open accounts payable and accounts receivable by 
business unit to track equipment by responsible department. Business unit security might prevent you from viewing information about business units 
for which you have no authority.

szApprovalRouteCodeARTGcharNONENONE

A code that determines to whom an order is routed for approval.

szApprovalProcessingOptionVL16charNONENONE

The list of selection values associated with a selection item in the Dream Writer. This list is generated by the use of the '*VALUES' keyword 
in data selection set-up. Elements 1 and 2 of this array are also used to contain the upper and lower value for the keyword '*RANGE' 
utilized by the data selection processing in the Dream Writer.

cSuppressErrorMessageEV01charNONENONE

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

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.

Related Functions

B4000150 Get Branch Constants
B4000370 Get Default Branch
B9800100 Get Audit Information
B9800140 Get User Address Book Number

Related Tables

F41001 Inventory Constants
F43008 Approval Levels