GetMasterConfigurationIDNo

GetMasterConfigurationIDNo

Minor Business Rule

Object Name: N3201410

Parent DLL: CMFG

Location: Client/Server

Language: NER

1.Functional Description

1.1Purpose
The Business Function will retrieve Configuration ID (CFGID) based on System Code,

Order Number, Order Type, Line Number, Company Key and Order Suffix (Regular Mode).

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

Line Number is not being used for System Code "48" (Work Oder).

This function will return CFGID and CFGCID as zero if there is an error (in addition to the error message).

The same Business Function will retrieve Order Number, Order Type, Line Number, Company Key and Order Suffix, based on System Code , 

Configuration ID and Component ID (Reverse Mode).


1.1Setup Notes and Prerequisites
F3201 records are written.

1.2

1.3Special Logic

The Business Function  involves no special Logic


2.Technical Specifications


2.1Parameters:

Data Item Data Structure DescriptionI/ORequiredNotes SYSystem CodeIY DOCOOrder NumberI/OY** Required as input for regular 

mode DCTOOrder TypeI/OY* KCOOCompany KeyI/ON LNIDLine NumberI/OY* SFXOOrder SuffixI/ON SUPPSSuppress Error MessageIN DTAIError Message 

IDON CFGIDConfiguration ID #O/IY**** Required as input for reverse mode CFGCIDComponent IDO/IY**

2.2Related Tables 

Table Table Description F3201Configured Master

2.3Related Business Functions

Source NameFunction Name N3201130


2.4Processing 


Configuration ID = zero
Component ID = zero

Open F3201

If Open is successful

If (Company Key <= BLANK)

Company Key  = "*"

End If

If (Order Suffix <= BLANK)

Order Suffix  = "*"

End If

If  System Code == "48"

   Perform SelectFetchKeyed(using partial key (without line number)

Else

   Perform SelectFetchKeyed (using full  secondary index)

   End If

If Fetch was NOT successful
    Perform SelectFetchKeyed (using full primary index)

                  If Fetch was NOT successful

         Load Error Message with the proper code.

       End If    

End If

Else

Load Error Message with the proper code.

If SuppessErrorMessage not equal 1 (one)

Set Error

End If

End If

Close F3201

If (Error Message > BLANK && Configuration ID == zero)

If (Suppress Error Message != 1)

Set NER Error

End If

End If


Data Structure

D3201410 - GetMasterConfigurationIDNo

Parameter NameData ItemData TypeReq/OptI/O/Both
szSystemCodeSYcharREQNONE

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.

mnConfigurationIDNumberCFGIDMATH_NUMERICOPTNONE

An identifier that represents a unique configuration. It is generated by a next number value and is the key to the configuration tables.

mnComponentIDNumberCFGCIDMATH_NUMERICOPTNONE

A number that represents a component in a configuration. This number, which is generated by next numbers, always restarts at 1 and 
increments, based on the number of components in the configuration.

szProgramIdPIDcharOPTNONE

The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry 
interactive program is P4210, and the number of the Print Invoices batch process report is R42565. The program ID is a variable length value. 
It is assigned according to a structured syntax in the form TSSXXX, where: T The first character of the number is alphabetic and identifies the 
type, such as P for Program, R for Report, and so on. For example, the value P in the number P4210 indicates that the object is a 
program. SS The second and third characters of the number are numeric and identify the system code. For example, the value 42 in the number P4210 
indicates that this program belongs to system 42, which is the Sales Order Processing system. XXX The remaining characters of the numer are 
numeric and identify a unique program or report. For example, the value 10 in the number P4210 indicates that this is the Sales Order Entry 
program.

Related Functions

None

Related Tables

None