ValidateCOBRABasedOnValue

Validate COBRA Based On Value

Minor Business Rule

Object Name: N0800381

Parent DLL: CHRM

Location: Client/Server

Language: NER

1.Functional Description

1.1Purpose


This function is called from P08992. It validates the data item based on the value entered and returns description. For example - if the passed in data 

item is TARA or TARR, it validates the GEO code value and returns description. If the passed in data item is AN8, ANN8, ANPA or MNTR, it validates the 

address book value and returns name. If the passed in value is longer than the data item length, it returns the error. 



1.2Setup Notes and Prerequisites


Source Data Structure


Data Item Data Structure DescriptionI/OReqNotes

DTAIszDataItemIyA code that identifies and defines a unit of 

information.

BSDOszBasedOnI/OyA value that the Based on item is compared against.

DL01szDescription001OnThe description of the value.

DTAIszErrorMessageIDOnThe error message is returned if the passed in value 

is longer than the data item length.

SUPPScSuppressErrorMessageInMay suppress Error Message.

BSDOszBasedOnStorageFormatI/On

MATH08mnDataItemTypeOn

MATH08mnNumberDisplayDecimalsOn




2.2Related Tables 

Table Table Description F060116Employee Master Information F9210Data Field Specifications

2.3Related Business Functions

NONE



1.3Special Logic



2.Technical Specifications



1.0Check to see if the Based On Value entered is blank or not. 

1.1If the based on value is not blank, call Get Data Dictionary Definition function to get the data item description, length and data type.
1.2Fetch from F9210 to see if  the data item allows upper case only characters and if it allows blanks.
1.3If it allows only upper case characters, then convert the data item to upper case.

1.4Check to see if the data item is equal to TARA or TARR

1.4.1Validate GEO Code value and return description.
1.5Check to see if the data item is equal to AN8 or ANN8 or ANPA or MNTR
1.5.1Validate Address Book Value and return name.
1.6Validate any value other than a tax area or address book.
1.7Check to see if the szErrorMessageID is blank.
1.7.1Check if the value entered is longer than the data item length.
1.7.1.1If the value is longer than the data item length, set the szErrorMessageID to display 031N error
1.8If the szErrorMessageID is not blank, do the following
1.8.1Check to see if the szErrorMessageID is equal to 019U
1.8.1.1Call Text Substitution Error function. 
1.8.2If the ErrorMessageID is not equal to 019U, see if the data item allows blank entry. If it does do nothing.



Data Structure

D0800381 - Validate COBRA Based On Value

Data Item Data Structure DescriptionI/OReqNotes
DTAIszDataItemIyA code that identifies and defines a unit of 

information.

BSDOszBasedOnI/OyA value that the Based on item is compared against.

DL01szDescription001OnThe description of the value.

DTAIszErrorMessageIDOnThe error message is returned if the passed in value 

is longer than the data item length.

SUPPScSuppressErrorMessageInMay suppress Error Message.

BSDOszBasedOnStorageFormatI/OnA number that the Based On item is compared against.

MATH08mnDataItemTypeOn

MATH08mnNumberDisplayDecimalsOn


Parameter NameData ItemData TypeReq/OptI/O/Both
szDataItemDTAIcharREQINPUT

Data Item  ab Data Structure  Descriptionab  I/Oab  Reqab Notes
DTAIabab  szDataItemababab  Iab  yabA code that identifies and defines a unit of information.


szBasedOnBSDOcharREQBOTH

Data Item  ab Data Structure  Descriptionab  I/Oab  Reqab Notes
BSDOabab  szBasedOnababab  I/Oab  yabA value that the Based on item is compared against.

szDescription001DL01charOPTOUTPUT

Data Item  ab Data Structure  Descriptionab  I/Oab  Reqab Notes
DL01abab  szDescription001abab  Oab  nabThe description of the value.


szErrorMessageIDDTAIcharOPTOUTPUT

Data Item  ab Data Structure  Descriptionab  I/Oab  Reqab Notes
DTAIabab  szErrorMessageIDabab  Oab  nabThe error message is returned if the passed in value is longer 

than the data item length.

cSuppressErrorMessageSUPPScharOPTINPUT

Data Item  ab Data Structure  Descriptionab  I/Oab  Reqab Notes
SUPPSabab  cSuppressErrorMessageab  Iab  nabMay suppress Error Message.

szBasedOnStorageFormatBSDOcharOPTBOTH

Data Item  ab Data Structure  Descriptionab  I/Oab  Reqab Notes

mnDataItemTypeMATH08MATH_NUMERICOPTOUTPUT

Event point for Math Numeric.

mnNumberDisplayDecimalsMATH08MATH_NUMERICOPTOUTPUT

Event point for Math Numeric.

Related Functions

None

Related Tables

None