VerifyUniqueConfigIDExists

VerifyUniqueCfgIDExists

Minor Business Rule

Object Name: N3201570

Parent DLL: CMFG

Location: Client/Server

Language: NER

1.Functional Description

1.1Purpose
The Business Function will be used to verify if History Records  (CFGID = 0) exist in F3211

for given Parent (short) Number and Unique Configuration ID .

Note: In some cases it is possible to use Actual ConfigurationID to obtain Parent (short) Number

 and Unique Configuration ID.
1.2Setup Notes and Prerequisites
None


1.3Special Logic

None


2.Technical Specifications


2.1Parameters:

Data Item Data Structure DescriptionI/ORequiredNotes

CFGIDConfiguration ID NumberIO

KITParent NumberIRShort Item Number

CFGSIDUnique Configuration ID IR

SUPPSSuppress Error MessageIO

DTAIError Message IDOO

EV01Unique Config ID ExistsOR1- exists, 0- does not exists



2.2Related Tables 

Table Table Description

F3211Configurator Segment Detail

F3215Configurator Component Table



2.3Related Business Functions

Source NameFunction Name

N3201580CreateConfigHistoryRecords




2.4Processing

BF UniqueCfgIDExists = 0

UniqueConfigID_CFGSID=" "

ConfigurationID = 0

ComponentID =1

ParentID =0

ParentNoKit(Short) = 0

If BF ParentNoKit(Short) <= zero OR BF UniqueConfigurationID <= BLANK

Open F3215

If Open was successful

F3215.FetchSingle

Load UniqueConfigID_CFGSID

Load ParentNoKit(Short)

Else

Load Error Message ID with the proper code

If (Suppress Error Message !=1)

Set Error

End If

End If

Else

UniqueConfigID_CFGSID = BF UniqueConfigurationID

ParentNoKit(Short) = BF ParentNoKit(Short

End If

If  ParentNoKit(Short) > zero AND  UniqueConfigurationID > BLANK 

Open F3211
If Open is Successful

FetchSingle using CFGID=0, KIT and CFGSID
If Fetch is Successful

BF UniqueCfgIDExists = 1
End If
Close F3211

Else
Load Error Message ID with the proper code

If (Suppress Error Message !=1)

Set Error

End If

End If
End If



Data Structure

D3201570 - VerifyUniqueConfigIDExists

Parameter NameData ItemData TypeReq/OptI/O/Both
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.

mnParentNumberShortKitKITMATH_NUMERICOPTNONE

The system provides for three separate item numbers.    1.   Item Number (short) - An eight-digit, computer assigned, completely 
non-significant item number.    2.   2nd Item Number - The 25-digit, free form, user defined alphanumeric item number.    3.   3rd Item Number - Another 
25-digit, free form, user defined alphanumeric item number.

szUniqueConfigurationIDCFGSIDcharOPTNONE

An identifier that represents a unique configuration. It is generated from an encryption algorithm.  Regardless of the number of segments or 
levels in the configured item, the system always converts the information into a 32-character digest. The digest is always a full 32 characters 
in length, consists of numbers and characters, and does not contain any blanks. You cannot determine the initial value from the digest, and it 
has no significant meaning.

cUniqueConfigIDExistsEV01charOPTNONE

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

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.

cCheckF3215EV01charOPTNONE

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

Related Functions

None

Related Tables

None