BuildStatusCodeIndex

Order Activity Rules

Major Business Rule

Object Name: B4000010

Parent DLL: COPBASE

Location: Client/Server

Language: C

Functional Description

Purpose

This business function builds an index to store all of the allowed status codes.

Setup Notes and Prerequisites


Special Logic




Technical Specification





Returns the index with the line status code fields passed.  (The size of the index can vary depending 
upon the order type/line type inquired on). 




^

Data Structure

D4000010A - Build Status Code Index

Parameter NameData ItemData TypeReq/OptI/O/Both
mnLineNumberCDLMATH_NUMERICNONENONE

The length of the user defined code. It cannot be greater than 10 characters.

cAllowDuplicateEV02charNONENONE

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

cNumericFlagEV03charNONENONE

A radio button that specifies the level at which trace/track result is to be displayed.  Select the Detail to display all transactions except IB, IX, 
and IZ types.  Or, select Derivative Lots Only to display only those transactions that may have created new derivative lot. 

szLineStatusCodeDSC2charNONENONE

A second, 30-character description, remark, or explanation.

idCacheHandleAddressGENLNGIDNONENONE

General purpose ID variable.

Related Functions

None

Related Tables

F4211 Sales Order Detail File
F4311 Purchase Order Detail File
CheckAllowedStatusCodes

CheckAllowedStatusCodes

Order Activity Rules

Major Business Rule

Object Name: B4000010

Parent DLL: COPBASE

Location: Client/Server

Language: C

Functional Description

Purpose

This business function compares the status code to the index of valid status codes to see if the 
status code is set up in the Order Activity Rules.


Setup Notes and Prerequisites


Special Logic




Technical Specification




Check to see if each of the parameters passed is set up as a valid status code in the predefined 

index.  If the status code is not in the index, issue error '0425' and return CONTINUE_GBR.




^

Data Structure

D4000010B - Check Allowed Status Codes

Parameter NameData ItemData TypeReq/OptI/O/Both
szOtherAllowed1A1TRcharNONENONE

This is an optional field indicating a status that can be performed as the next step in the order process. Although this is not the preferred or 
expected next step, this field is an allowed override. The system does not allow you to initiate an order line step or status not defined as either 
the expected next status or an allowed status. Other allowed status codes let you bypass processing steps. These codes are often 
referred to in processing options as  "override next status codes."

szOtherAllowed2A2TRcharNONENONE

This is an optional field indicating a status that can be performed as the next step in the order process. Although this is not the preferred or 
expected next step, this field is an allowed override. The system does not allow you to initiate an order line step or status not defined as either 
the expected next status or an allowed status. Other allowed status codes let you bypass processing steps. These codes are often 
referred to in processing options as  "override next status codes."

szOtherAllowed3A3TRcharNONENONE

This is an optional field indicating a status that can be performed as the next step in the order process. Although this is not the preferred or 
expected next step, this field is an allowed override. The system does not allow you to initiate an order line step or status not defined as either 
the expected next status or an allowed status. Other allowed status codes let you bypass processing steps. These codes are often 
referred to in processing options as  "override next status codes."

szOtherAllowed4A4TRcharNONENONE

This is an optional field indicating a status that can be performed as the next step in the order process. Although this is not the preferred or 
expected next step, this field is an allowed override. The system does not allow you to initiate an order line step or status not defined as either 
the expected next status or an allowed status. Other allowed status codes let you bypass processing steps. These codes are often 
referred to in processing options as  "override next status codes."

szOtherAllowed5A5TRcharNONENONE

This is an optional field indicating a status that can be performed as the next step in the order process. Although this is not the preferred or 
expected next step, this field is an allowed override. The system does not allow you to initiate an order line step or status not defined as either 
the expected next status or an allowed status. Other allowed status codes let you bypass processing steps. These codes are often 
referred to in processing options as  "override next status codes."

szNextStatusCodeNXTRcharNONENONE

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

idCacheHandleAddressGENLNGIDNONENONE

General purpose ID variable.

cSuppressErrorMessageEV01charNONENONE

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

cErrorCodeEV02charNONENONE

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

Related Functions

None

Related Tables

F4211 Sales Order Detail File
F4311 Purchase Order Detail File
CheckForOrdActRuleDeltOK

CheckForOrdActRuleDeltOK

Order Activity Rules

Major Business Rule

Object Name: B4000010

Parent DLL: COPBASE

Location: Client/Server

Language: C

Functional Description

Purpose

The purpose of this function is to check if the Protect Line flag is set on.  If so, issue error.



Technical Specification




Check to see if passed parameter contains a '1'.  If so, issue error '0382'and return CONTINUE_GBR.




^

Data Structure

D4000010E - Check For Order Activity Rule - Delete OK

Parameter NameData ItemData TypeReq/OptI/O/Both
cProtectLineFlagEV01charNONENONE

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

szLastStatusTRTYcharNONENONE

A user defined code (40/AT) that indicates the status of the line.

Related Functions

None

Related Tables

F4211 Sales Order Detail File
F4311 Purchase Order Detail File
CheckOrderLineNextStatusExistenc

CheckOrderLineNextStatusExistenc

Order Activity Rules

Major Business Rule

Object Name: B4000010

Parent DLL: COPBASE

Location: Client/Server

Language: C

Functional Description

Purpose

This business function checks to see if any open sales or purchase orders exist in the F4211 or F4311 
tables.   



Technical Specification




Fetch row in Sales Order Detail with the above three parameters.  If a row is found that matches the 

above three parameters, move a '1' to EV01.   If fetch fails, fetch row in Purchase Order Detail with 

the same three parameters.  If a row is found that matches the above three parameters, move '1' to 

EV01.






Data Structure

D4000010C - Check Order Line Next Status Existence

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

szNextStatusCodeNXTRcharNONENONE

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

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

cProtectLineFlagEV01charNONENONE

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

Related Functions

None

Related Tables

F4211 Sales Order Detail File
F4311 Purchase Order Detail File
CompareNewIndexToIndexList

CompareNewIndexToIndexList

Order Activity Rules

Major Business Rule

Object Name: B4000010

Parent DLL: COPBASE

Location: Client/Server

Language: C

Functional Description

Purpose

Compare an Index Item to the Index Link List.  If the CallType is 1, the set an error message on and 
return the error code of 1 if the Index doesn't exist in the Index Link List.  If CallType is 2, set 

an error message on and return the error code of 1 if the Index does exist in the Index List. 




Technical Specification



1.Search the Index Link List if

Numeric Or String = 1 :  Use Numeric Index To Delete as the key to compare.

Numeric Or String = 2 :  Use String Index To Delete as the key to compare.

2.If the ThisIsIndex is set to 1, then the Index in the link list is to be compared.

If Call Type = 1, set an error message on and set an Error Code to 1 if the Index exist in the 

list.

If Call Type = 2, set an error message on and set an Error Code to 1 if the Index does not 

exist in 

the list.




^

Data Structure

D4000010I - Compare New Index To Index List

Parameter NameData ItemData TypeReq/OptI/O/Both
szCompareStringDSC2charNONENONE

A second, 30-character description, remark, or explanation.

mnCompareNumericCDLMATH_NUMERICNONENONE

The length of the user defined code. It cannot be greater than 10 characters.

cNumericFlagEV01charNONENONE

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

cIndexExistEV02charNONENONE

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

cCallTypeEV03charNONENONE

A radio button that specifies the level at which trace/track result is to be displayed.  Select the Detail to display all transactions except IB, IX, 
and IZ types.  Or, select Derivative Lots Only to display only those transactions that may have created new derivative lot. 

idCacheHandleAddressGENLNGIDNONENONE

General purpose ID variable.

Related Functions

None

Related Tables

F4211 Sales Order Detail File
F4311 Purchase Order Detail File
DeleteIndexFromIndexList

DeleteIndexFromIndexList

Order Activity Rules

Major Business Rule

Object Name: B4000010

Parent DLL: COPBASE

Location: Client/Server

Language: C

Functional Description

Purpose

Delete an Index Item from the Index Link List.  If Delete All Duplicate is set to a 1, then all nodes 
with the same are deleted from the Index Link List .





Technical Specification




1.Search the Index Link List if
Numeric Or String = 1 :  Use Numeric Index To Delete as the key to compare.

Numeric Or String = 2 :  Use String Index To Delete as the key to compare.

2.If Delete All Duplicate = 1, delete the entire node from the Link List.

If Delete All Duplicate is not equal to 1 and 

if the duplicate counter is greater than zero, then decrement the duplicate counter by 

one.

if the duplicate counter is zero, then delete the entire node from the Link List.

3.If the Link List node is pointed to NULL is Current, First, and Last Item, then destroy the 

Link 

List completely and reset to NULL.






^

Data Structure

D4000010H - Delete Index From Index List

Parameter NameData ItemData TypeReq/OptI/O/Both
szStringIndexToDeleteDSC2charNONENONE

A second, 30-character description, remark, or explanation.

mnNumericIndexToDeleteCDLMATH_NUMERICNONENONE

The length of the user defined code. It cannot be greater than 10 characters.

cNumericFlagEV01charNONENONE

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

cDeleteAllDuplicatesEV02charNONENONE

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

cErrorCodeERRcharNONENONE

The Data Field Error Code field is simply a generic data field to pass an error condition flag.  This field is one of the fields that make up the 
external parameter data structure of the Data Dictionary Server.

idCacheHandleAddressGENLNGIDNONENONE

General purpose ID variable.

cDeleteKeyIndexEV01charNONENONE

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

Related Functions

None

Related Tables

F4211 Sales Order Detail File
F4311 Purchase Order Detail File
DestroyIndexLinkList

DestroyIndexLinkList

Order Activity Rules

Major Business Rule

Object Name: B4000010

Parent DLL: COPBASE

Location: Client/Server

Language: C

Functional Description

Purpose

This business function deletes a status code from the index.




Technical Specification



Return the index with the line status code passed deleted from the index. 



^

Data Structure

D4000010K - Destroy Cache Index

Parameter NameData ItemData TypeReq/OptI/O/Both
idCacheHandleAddressGENLNGIDNONENONE

General purpose ID variable.

Related Functions

None

Related Tables

F4211 Sales Order Detail File
F4311 Purchase Order Detail File
UpdateAllowedStatusRowList

UpdateAllowedStatusRowList

Order Activity Rules

Major Business Rule

Object Name: B4000010

Parent DLL: COPBASE

Location: Client/Server

Language: C

Functional Description

Purpose

Update Index Link List created by BuildStatusCodeList.  If the Allow Status Code is not equal to the 
Original Status Code, the update the list accordingly.



Technical Specification



1.If the Original Status Code is not equal to the new Status Code Allowed, then update the link 

list as followed.  


a.If the Orginal is blank and the new  Status Code Allowed is not blank, verify that 

the Status Code Allowed is currently exist in the Link List.  If currently exist in the link 

list, then increment the row value. If not exist in the Link List, add to the link list 

with row value equals to 1, and ThisIsIndex = o.  


b.If the Original Status Code is not blank and the new Status Code Allowed is not 

blank
, then :
Locate the Original Status Code in the Link List.  If found, decrement the row value by 

1.  Locate the new Status Code in the Link List.  If found, increment the row value by 1; else  add to 

the Link List and set row value to 1 and ThisIsIndex to 0.


c.If the Original Status Code is not blank and the new Status Code Allowed is blank, 

then: Locate the Original Status Code, if found, decrement row by 1.







^

Data Structure

D4000010J - Update Allowed Status Row List

Parameter NameData ItemData TypeReq/OptI/O/Both
szOriginalNextStatusCodeNXTRcharNONENONE

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

szOriginalStatusAllowed1A1TRcharNONENONE

This is an optional field indicating a status that can be performed as the next step in the order process. Although this is not the preferred or 
expected next step, this field is an allowed override. The system does not allow you to initiate an order line step or status not defined as either 
the expected next status or an allowed status. Other allowed status codes let you bypass processing steps. These codes are often 
referred to in processing options as  "override next status codes."

szNextStatusCodeNXTRcharNONENONE

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

szStatusCodeAllowed1A1TRcharNONENONE

This is an optional field indicating a status that can be performed as the next step in the order process. Although this is not the preferred or 
expected next step, this field is an allowed override. The system does not allow you to initiate an order line step or status not defined as either 
the expected next status or an allowed status. Other allowed status codes let you bypass processing steps. These codes are often 
referred to in processing options as  "override next status codes."

szOriginalStatusAllowed2A2TRcharNONENONE

This is an optional field indicating a status that can be performed as the next step in the order process. Although this is not the preferred or 
expected next step, this field is an allowed override. The system does not allow you to initiate an order line step or status not defined as either 
the expected next status or an allowed status. Other allowed status codes let you bypass processing steps. These codes are often 
referred to in processing options as  "override next status codes."

szStatusCodeAllowed2A2TRcharNONENONE

This is an optional field indicating a status that can be performed as the next step in the order process. Although this is not the preferred or 
expected next step, this field is an allowed override. The system does not allow you to initiate an order line step or status not defined as either 
the expected next status or an allowed status. Other allowed status codes let you bypass processing steps. These codes are often 
referred to in processing options as  "override next status codes."

szOriginalStatusAllowed3A3TRcharNONENONE

This is an optional field indicating a status that can be performed as the next step in the order process. Although this is not the preferred or 
expected next step, this field is an allowed override. The system does not allow you to initiate an order line step or status not defined as either 
the expected next status or an allowed status. Other allowed status codes let you bypass processing steps. These codes are often 
referred to in processing options as  "override next status codes."

szStatusCodeAllowed3A3TRcharNONENONE

This is an optional field indicating a status that can be performed as the next step in the order process. Although this is not the preferred or 
expected next step, this field is an allowed override. The system does not allow you to initiate an order line step or status not defined as either 
the expected next status or an allowed status. Other allowed status codes let you bypass processing steps. These codes are often 
referred to in processing options as  "override next status codes."

szOriginalStatusAllowed4A4TRcharNONENONE

This is an optional field indicating a status that can be performed as the next step in the order process. Although this is not the preferred or 
expected next step, this field is an allowed override. The system does not allow you to initiate an order line step or status not defined as either 
the expected next status or an allowed status. Other allowed status codes let you bypass processing steps. These codes are often 
referred to in processing options as  "override next status codes."

szStatusCodeAllowed4A4TRcharNONENONE

This is an optional field indicating a status that can be performed as the next step in the order process. Although this is not the preferred or 
expected next step, this field is an allowed override. The system does not allow you to initiate an order line step or status not defined as either 
the expected next status or an allowed status. Other allowed status codes let you bypass processing steps. These codes are often 
referred to in processing options as  "override next status codes."

szOriginalStatusAllowed5A5TRcharNONENONE

This is an optional field indicating a status that can be performed as the next step in the order process. Although this is not the preferred or 
expected next step, this field is an allowed override. The system does not allow you to initiate an order line step or status not defined as either 
the expected next status or an allowed status. Other allowed status codes let you bypass processing steps. These codes are often 
referred to in processing options as  "override next status codes."

szStatusCodeAllowed5A5TRcharNONENONE

This is an optional field indicating a status that can be performed as the next step in the order process. Although this is not the preferred or 
expected next step, this field is an allowed override. The system does not allow you to initiate an order line step or status not defined as either 
the expected next status or an allowed status. Other allowed status codes let you bypass processing steps. These codes are often 
referred to in processing options as  "override next status codes."

idCacheHandleAddressGENLNGIDNONENONE

General purpose ID variable.

Related Functions

None

Related Tables

F4211 Sales Order Detail File
F4311 Purchase Order Detail File
ValidateAllowStatusLineList

ValidateAllowStatusLineList

Order Activity Rules

Major Business Rule

Object Name: B4000010

Parent DLL: COPBASE

Location: Client/Server

Language: C

Data Structure

D4000010L - Validate Allow Status Line List

Parameter NameData ItemData TypeReq/OptI/O/Both
idStatusLineListGENLNGIDNONENONE

General purpose ID variable.

cErrorCodeEV01charNONENONE

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

szNextStatusCodeNXTRcharNONENONE

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

szAllowedStatusCode1A1TRcharNONENONE

This is an optional field indicating a status that can be performed as the next step in the order process. Although this is not the preferred or 
expected next step, this field is an allowed override. The system does not allow you to initiate an order line step or status not defined as either 
the expected next status or an allowed status. Other allowed status codes let you bypass processing steps. These codes are often 
referred to in processing options as  "override next status codes."

szAllowedStatusCode2A2TRcharNONENONE

This is an optional field indicating a status that can be performed as the next step in the order process. Although this is not the preferred or 
expected next step, this field is an allowed override. The system does not allow you to initiate an order line step or status not defined as either 
the expected next status or an allowed status. Other allowed status codes let you bypass processing steps. These codes are often 
referred to in processing options as  "override next status codes."

szAllowedStatusCode3A3TRcharNONENONE

This is an optional field indicating a status that can be performed as the next step in the order process. Although this is not the preferred or 
expected next step, this field is an allowed override. The system does not allow you to initiate an order line step or status not defined as either 
the expected next status or an allowed status. Other allowed status codes let you bypass processing steps. These codes are often 
referred to in processing options as  "override next status codes."

szAllowedStatusCode4A4TRcharNONENONE

This is an optional field indicating a status that can be performed as the next step in the order process. Although this is not the preferred or 
expected next step, this field is an allowed override. The system does not allow you to initiate an order line step or status not defined as either 
the expected next status or an allowed status. Other allowed status codes let you bypass processing steps. These codes are often 
referred to in processing options as  "override next status codes."

szAllowedStatusCode5A5TRcharNONENONE

This is an optional field indicating a status that can be performed as the next step in the order process. Although this is not the preferred or 
expected next step, this field is an allowed override. The system does not allow you to initiate an order line step or status not defined as either 
the expected next status or an allowed status. Other allowed status codes let you bypass processing steps. These codes are often 
referred to in processing options as  "override next status codes."

Related Functions

None

Related Tables

F4211 Sales Order Detail File
F4311 Purchase Order Detail File