gfasbender
5th December 2001, 07:42
Overview:
Baan provides an "Exchange" module which is a facility for batch communication between Baan tables and other sources of data (ASCII files). While this is a powerful tool, it falls short in two areas, which I have enhanced. One, it does not provide a facility for testing exchange schemes without actually loading the data. Two, though it produces error messages, their vagueness often requires developers to waste valuable time in resolving them.
Solution: Validate Import Exchange Data (tuxch9223m000):
This session is a pre-processor for validating ASCII input files. Since it is a pre-processor, data is validated without being inserted into a table. This saves considerable time as it avoids loading and reloading company data each time an exchange scheme is tested. With this pre-processor, the exchange scheme test cycle can be performed until all errors are resolved.
The validation process is designed for import exchange schemes, only. Software contained in exchange scheme conditions are not processed and are not in scope for this session. The following are examples of the error level checks performed by the pre-processor:
Exchange Scheme Level Validations
The input ASCII file exists in the Data Path directory and it is accessible.
Record Level Validations
The data on the input record doesn't already exist in the table.
The number of delimited fields on the record matches the ASCII file definition.
Valid text header lines with data fields are defined with a text domain.
Text trailer lines exist that correspond to the text header.
Field Level Validations
Fields defined as numeric can only have the follow characters "01234567890-+."
Fields defined as numeric can not be blank or (null).
Fields defined as dates have the format defined in the Exchange Scheme.
Reference Level Validations
All reference data in fields, including combination fields, that are not blank and have a reference to another table, actually exists in that table. (No more 606 errors).
Attached zip file includes:
tuxch9223.bc - the session source code
tuxch9223.doc - Word 97 information document
Enjoy!
Baan provides an "Exchange" module which is a facility for batch communication between Baan tables and other sources of data (ASCII files). While this is a powerful tool, it falls short in two areas, which I have enhanced. One, it does not provide a facility for testing exchange schemes without actually loading the data. Two, though it produces error messages, their vagueness often requires developers to waste valuable time in resolving them.
Solution: Validate Import Exchange Data (tuxch9223m000):
This session is a pre-processor for validating ASCII input files. Since it is a pre-processor, data is validated without being inserted into a table. This saves considerable time as it avoids loading and reloading company data each time an exchange scheme is tested. With this pre-processor, the exchange scheme test cycle can be performed until all errors are resolved.
The validation process is designed for import exchange schemes, only. Software contained in exchange scheme conditions are not processed and are not in scope for this session. The following are examples of the error level checks performed by the pre-processor:
Exchange Scheme Level Validations
The input ASCII file exists in the Data Path directory and it is accessible.
Record Level Validations
The data on the input record doesn't already exist in the table.
The number of delimited fields on the record matches the ASCII file definition.
Valid text header lines with data fields are defined with a text domain.
Text trailer lines exist that correspond to the text header.
Field Level Validations
Fields defined as numeric can only have the follow characters "01234567890-+."
Fields defined as numeric can not be blank or (null).
Fields defined as dates have the format defined in the Exchange Scheme.
Reference Level Validations
All reference data in fields, including combination fields, that are not blank and have a reference to another table, actually exists in that table. (No more 606 errors).
Attached zip file includes:
tuxch9223.bc - the session source code
tuxch9223.doc - Word 97 information document
Enjoy!