Functional Description
Purpose
The purpose of this function is to take user entered data and format in string format for update to
the database. All data is stored in the Database as a String but is displayed on the screen as either
a String (in the case of 'A' or 'T' data types), a MATH_NUMERIC field (for 'N' data types) or as a
JDEDATE field (for 'D' data types). The appropriate editing and conversion must be made for each data
type.
'A'lphanumeric data - Edited for length and right or left justified per the F1215 definition.
'T'ime data - the string is parsed and the ':' separators are removed.
'N'umeric data - the MATH_NUMERIC data is converted to a String with correct decimal padding.
'D'ate data - the date is entered into a JDEDATE structure which is then converted into a
MATH_NUMERIC structure in Julian date format. This is then converted into a string ready for update.
Setup Notes and Prerequisites
Special Logic
Technical Specification
Main
Convert DataItem Size from BSFN data structure to an int to be used in internal functions
Switch on FieldType
corresponding to the number of decimals in the MATH_NUMERIC.
If FieldType is 'T'
Call I1300190_EditTime
If FieldType is 'D'
Call I1300190_EditDate
Return
I1300190_EditAlpha
If Justification == L
Edit String for Length
Else
Edit String for Length
Right Justify and pad with blanks
Return
I1300190_EditNumeric
Load up parameters and call "Math Numeric to String" - B0800001
Copy string from DS0800001 to return String
Return
I1300190_EditTime
Parse out any ':' separators to be found in the string
Return
I1300200_DisplayDate
Call "Convert Date to Julian" - B9800210
Load up parameters and call "Math Numeric to String" - B0800001
Parse out the Days
Parse out the Years
Parse out Century
Convert Century string to an integer
Subtract 19 from the Century integer
Convert Century integer to Century character
Concatenate Century character, Year and Days to get new Julian Date String
Return
D1300200 - F1216 Edit Data for Display
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szDataItemField | FB01 | char | NONE | NONE |
The Glossary for spec item 01. client defined and maintained. | ||||
cTypeField | FDTT | char | NONE | NONE |
'A'lphanumeric data Edited for length and right or left justified per the F1215 definition.
| ||||
mnDataItemSize | DTAS | MATH_NUMERIC | NONE | NONE |
The field size of the data item.
Note: All amount fields should be entered as 15 bytes, 0 decimals, and the data item type should be P
| ||||
cDataDisplayDecimals | CDEC | char | NONE | NONE |
A value that designates the number of decimals in the currency, amount, or quantity fields the system displays. For example, U.S. Dollars
| ||||
cJustifyLeftorRight | LRA | char | NONE | NONE |
A code that specifies the justification of the text in the field. Valid values are: R Right justification L Left justification | ||||
jdDate | DATE01 | JDEDATE | NONE | NONE |
Event point for JDE Date. | ||||
mnNumericData0 | GNUM0 | MATH_NUMERIC | NONE | NONE |
This field is used for Numeric Specification Data. | ||||
mnNumericData1 | GNUM1 | MATH_NUMERIC | NONE | NONE |
This field is used for Numeric Specification Data. | ||||
mnNumericData2 | GNUM2 | MATH_NUMERIC | NONE | NONE |
This field is used for Numeric Specification Data. | ||||
mnNumericData3 | GNUM3 | MATH_NUMERIC | NONE | NONE |
This field is used for Numeric Specification Data. | ||||
mnNumericData4 | GNUM4 | MATH_NUMERIC | NONE | NONE |
This field is used for Numeric Specification Data. | ||||
mnNumericData5 | GNUM5 | MATH_NUMERIC | NONE | NONE |
This field is used for Numeric Specification Data. | ||||
mnNumericData6 | GNUM6 | MATH_NUMERIC | NONE | NONE |
This field is used for Numeric Specification Data. | ||||
mnNumericData7 | GNUM7 | MATH_NUMERIC | NONE | NONE |
This field is used for Numeric Specification Data. | ||||
mnGenericNumeric8 | GNUM8 | MATH_NUMERIC | NONE | NONE |
This field is used for Numeric Specification Data. |
None |
None |