ScrubTaxID

Scrub Tax ID

Minor Business Rule

Object Name: N0800014

Parent DLL: CFND

Location: Client/Server

Language: NER

Functional Description
The purpose of this Named ER is to scrub any non numeric char (eg special characters) off the input tax id.  It returns the scrubbed tax 
id and the length of the scrubbed tax id.


Setup Notes


Technical Specifications


Parameters


Data Item Data Structure DescriptionI/ORequired  TableNotes
SSNszUnScrubIdIR

DS20szScrubTaxIdOThe scrub tax id contains only numeric 

char

MATH01mnTaxIdLengthOActual Length of the Scrub Tax Id


Related Tables 


Table Table Description



Processing


Starting from the 1st char of the unscrubb tax id to the last char of the unscrub tax id,

    On each char, convert the char to numeric value 

           If the numeric value >=0 and <=9

                 Concatenate the character to the szScrubTaxId

           Endif



After all characters of the unscrub tax id are looked at, the szScrubTaxId will have only numeric characters

mnTaxIdLength = length (szScrubTaxID)

    



^

Data Structure

DN0800014 - Scrub Tax ID

Parameter NameData ItemData TypeReq/OptI/O/Both
szUnscrubTaxIDSSNcharNONENONE

A number that indicates the tax ID. In the United States, the tax ID is the social security number. In Canada, it is the social insurance number. 
If you add employee information for a non-US or non-Canadian company, you can leave this field blank. However, if the international code is 
set to Y and the default company is non-Canadian and non-United States, you can enter a 16-character number for the tax ID. The system 
does not permit duplicate tax ID numbers. Also, the number cannot include dashes. For example, if a social security number of nn-nn-nnnn is 
used, the number should be entered as follows: 123456789.

szScrubTaxIDDS20charNONENONE

A 20 character generic description.

mnTaxIDLengthMATH01MATH_NUMERICNONENONE

- - - Good Performance Low Value. 

Related Functions

None

Related Tables

None