Functional Description
Purpose
The purpose of this business function is to calculate the check digit modulo 10 for a given number.
Setup Notes and Prerequisites
Special Logic
This function has two input parameters. Only one of them has to be passed. If both are passed, first
one (mnNumberToCalc15d0) will be used.
The first parameter type is MATH_NUMERIC [15]
The second parameter type is STRING [30]
The intention to have two input parameters it to allow calculating the Check Digit Modulo 10 for
numbers up to 15 digits or up to 30 digits.
If the number that you want to calculate the Check Digit Modulo 10 is granter than 15 digits, you
need to pass this number using the second parameter (szNumberToCalc30). If this is the case, before
calling the BF, move your numeric value into a string variable (e.g. DESC) and pass this string variable
into szNumberToCalc30.
Technical Specification
INPUT PARAMETERS:
If 15 digits number is not passed, then it will use the 30 digits number szNumberToCalc30.
If both numbers come in blank, the program will return no values back and cErrorFlag is set to
'E'.
OUTPUT PARAMETRES (return):
cCheckDigitModulo10
just if the number is 14 digits or less.
'S' - The number with check digit is granter than 15
characters, then only the return variable
szNumberWithCheckDigit30 will have a value.
mnNumberWithCheckDigit15 will have
'W' - The number with check digits is granter than 30 characters, then
mnNumberWithCheckDigit15 and szNumberWithCheckDigit30 will have
return a value.
' ' - Not errors found.
D0000285 - Calculate Modulo 10 Check Digit
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnNumberToCalc15d0 | MN15D0 | MATH_NUMERIC | OPT | INPUT |
This is a generic field used as a work field in Everest. | ||||
szNumberToCalc30 | DESC | char | OPT | INPUT |
A description, remark, name, or address. | ||||
cCheckDigitModulo10 | EV01 | char | OPT | OUTPUT |
An option that specifies the type of processing for an event. | ||||
mnNumberWithCheckDigit15 | MN15D0 | MATH_NUMERIC | OPT | OUTPUT |
This is a generic field used as a work field in Everest. | ||||
szNumberWithCheckDigit30 | DESC | char | OPT | OUTPUT |
A description, remark, name, or address. | ||||
cErrorFlag | EV01 | char | OPT | OUTPUT |
An option that specifies the type of processing for an event. |
None |
None |