GetConfigParentOrder

GetConfigParentOrder

Minor Business Rule

Object Name: N3201490

Parent DLL: CMFG

Location: Client/Server

Language: NER

1.Functional Description

1.1Purpose
The Business Function will retrieve Configured Parent Order Number  based on System Code,

Order Number, Order Type , Line Number, Company Key and Order Suffix.

Note: Optional parameters are: Company Key and Order Suffix (if not loaded they will be internally represented as "*").

This function will return Configured Parent Order Number as ZERO if there is NO parent Order Number.

Note: if there is an error the error message is passed back.


1.2Setup Notes and Prerequisites
F3201 and F3215 records are written.


1.3Special Logic

The Business Function  involves no special Logic


2.Technical Specifications


2.1Parameters:

Data Item Data Structure DescriptionI/ORequiredNotes SYSystem CodeIY DOCOOrder NumberIY DCTOOrder TypeIY KCOOCompany 

KeyIN LNIDLine NumberIY SFXOOrder SuffixIN SUPPSSuppress Error MessageIN DTAIError Message IDON DOCOParent Order Number OY

2.2Related Tables 

Table Table Description F3215Configurator Component Table

2.3Related Business Functions

Source NameFunction Name


2.4Processing 


Configured Parent ID = zero

Error Message  = " "

Call N3201410 to get Configuration ID and Component ID 

If CFGID > ZERO
Open F3215

If Open is successful

Perform F3215SelectFetchKeyed (using partial primary index)

If Fetch was successful

Save Parent ID Number (to be used as Component ID)

If (Parent ID Number > zero)

Call N3201410 to get Parent Order Number 

(passing SY, CFGID and CFGCID)
End If
Else

Load Error Message with the proper code.

End If

Else

Load Error Message with the proper code.

End If

Close F3215

Else

Load Error Message with the proper code.

End If

If (BF Error Message ID && Configured Parent ID <= zero)

If SuppessErrorMessage not equal 1 (one)
Set Error

End If

End If

Data Structure

D3201490 - GetConfigParentOrder

Parameter NameData ItemData TypeReq/OptI/O/Both
szSystemCodeSYcharOPTNONE

A user defined code (98/SY) that identifies a system. Valid values include: 01 Address Book 03B Accounts Receivable 04 Accounts 
Payable 09 General Accounting 11 Multicurrency

mnOrderNumberDOCOMATH_NUMERICOPTNONE

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.

szOrderTypeDCTOcharOPTNONE

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

szCompanyKeyKCOOcharOPTNONE

A number that, along with order number and order type, uniquely identifies an order document (such as a purchase order, a contract, a 
sales order, and so on). If you use the Next Numbers by Company/Fiscal Year facility, the Automatic Next Numbers program (X0010) uses the 
order company to retrieve the correct next number for that company. If two or more order documents have the same order number and order 
type, the order company lets you locate the desired document. If you use the regular Next Numbers facility, the order company is not used to 
assign a next number. In this case, you probably would not use the order company to locate the document.

mnLineNumberLNIDMATH_NUMERICOPTNONE

A number that identifies multiple occurrences, such as line numbers on a purchase order or other document. Generally, the system assigns 
this number,but in some cases you can override it.

szOrderSuffixSFXOcharOPTNONE

In the A/R and A/P systems, a code that corresponds to the pay item. In the Sales Order and Procurement systems, this code identifies 
multiple transactions for an original order. For purchase orders, the code is always 000. For sales orders with multiple partial receipts against an 
order, the first receiver used to record receipt has a suffix of 000, the next has a suffix of 001, the next 002, and so on.

cSuppressErrorMessageSUPPScharOPTNONE

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.

szErrorMessageIDDTAIcharOPTNONE

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.

mnParentOrderNumberDOCOMATH_NUMERICOPTNONE

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.

Related Functions

None

Related Tables

None