SteveH@DJG
Member
We have effectively tracked down the Data Dictionary default settings for defaulting expiration dates. These are set in CENTCHG and DCYR. We then effectively pushed out the default from expiration dates of 12/31/2010 to 12/31/2030 for newly entered data records.
The issue we then had to hurdle was how to identify tables and fields that needed to be extended to the new expiry date via SQL scripting and manual inspection. We did this by utilizing the data dictionary (F9210) and XREF (F980021) tables in JDE. First, we looked for DATE data types in the DD that had key phrases in them like "END", "THRU", and "EXPIR". Once we found this list of data fields we queried against the XREF tables looking for tables that utilized these data fields. Next, we generated queries that would inspect these fields in these tables for dates hard coded to the old expiry date of 12/31/2010 (110365). Queries where we found at least 1 record with a 12/31/2010 date in them were flagged as potential tables we needed to look at. Of course, we also found files that should have this date in it like fiscal date patterns and such that we would leave alone.
The next step was to review these records flagged as truly expiry dates and generate SQL scripts to effectively update these fields to our new default expiry date of 12/31/2030 from 12/31/2010. This part we have almost completed as far as we can tell. We came up with roughly 25+ files that we had to review and/or create scripts for.
Has anyone come up with a better solution or completed this exercise that would be willing to share their approach. We would like to double check to make sure we didn't miss anything.
Thanks,
The issue we then had to hurdle was how to identify tables and fields that needed to be extended to the new expiry date via SQL scripting and manual inspection. We did this by utilizing the data dictionary (F9210) and XREF (F980021) tables in JDE. First, we looked for DATE data types in the DD that had key phrases in them like "END", "THRU", and "EXPIR". Once we found this list of data fields we queried against the XREF tables looking for tables that utilized these data fields. Next, we generated queries that would inspect these fields in these tables for dates hard coded to the old expiry date of 12/31/2010 (110365). Queries where we found at least 1 record with a 12/31/2010 date in them were flagged as potential tables we needed to look at. Of course, we also found files that should have this date in it like fiscal date patterns and such that we would leave alone.
The next step was to review these records flagged as truly expiry dates and generate SQL scripts to effectively update these fields to our new default expiry date of 12/31/2030 from 12/31/2010. This part we have almost completed as far as we can tell. We came up with roughly 25+ files that we had to review and/or create scripts for.
Has anyone come up with a better solution or completed this exercise that would be willing to share their approach. We would like to double check to make sure we didn't miss anything.
Thanks,