GetNextStatusCodeShell

Get Next Status Code Shell

Minor Business Rule

Object Name: B4200410

Parent DLL: CDIST

Location: Client/Server

Language: C

This function will retrieve a record from Order Activity Rule table (F42003) with the  OrderType, 
Line Type,  Next status passed in.  If record exist in F42003 and the Last Status Code passed in is less 

than 900,  load the Last Status Code with the Next Status passed in.   If the Override Next Status 

Code is blank, then load the Next Status Code with the Next Status Code retrieved from F42003.  If the 

Override Next Status Code is not blank and if the Override Next Status Code equals to either Next Status 

retrieved or any AllowStatus  retrieved,  load the Next Status with Override Next Status; otherwise 

load Next Status with Next Status retrieved

Data Structure

D4200410 - Get Next Status Code Shell

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

szLineTypeLNTYcharNONENONE

A code that controls how the system processes lines on a transaction. It controls the systems with which the transaction interfaces, such as 
General Ledger, Job Cost, Accounts Payable, Accounts Receivable, and Inventory Management. It also specifies the conditions under 
which a line prints on reports, and it is included in calculations. Codes include the following: S Stock item   J Job cost   N Nonstock item   F Freight  
T Text information   M Miscellaneous charges and credits   W Work order

szOverrideNextStatusCodeNXT2charNONENONE

User defined code (40/AT) that specifies what the next standard step is in the processing cycle for this order type. You set up the steps for 
the processing cycle on the Order Activity Rules form.

szLastStatusCodeLTTRcharNONENONE

A code (system 40/type AT) specifying the last step in the processing cycle that this order line has successfully completed.

szNextStatusCodeNXTRcharNONENONE

A user defined code (system 40/type AT) indicating the next step in the order flow of the line type.

cLedgerRecordYNWRTHcharNONENONE

A code that tells the system to write a record to the history table (F42199  for Sales Order Management and F43199 for Purchase Order 
Management). Valid codes are:    Y Write a record for selected fields to the history table    N Do not write a record to the history table 

cSuppressErrorMessageEV01charNONENONE

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

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).

Related Functions

B4000260 Line Type - Activity Rules
B4000960 Verify Override Next Status Code

Related Tables

None