timb25
21st July 2005, 15:30
We needed a way to keep history from the production planning table (tisfc010). More information than what the costing tables kept.
First I made a copy of the tisfc010 table. Then I added a sequence number field to the copy. Next, I created a trigger placed on the tisfc010 table. Upon Insert or Update of the tisfc010, I inserted a record into the copy with sequence=0. If a tisfc010 record was updated, another record was inserted into the copy table with the next sequence number. This was working very wellÂ….. However.
Whenever a date was changed on the Production Order table (tisfc001), the planning for that order disappeared in table (tisfc010). I do not write to the tisfc010 in my trigger, only read. I don't understand why this is happening. Does anyone have any suggestions? Thanks.
-Tim
First I made a copy of the tisfc010 table. Then I added a sequence number field to the copy. Next, I created a trigger placed on the tisfc010 table. Upon Insert or Update of the tisfc010, I inserted a record into the copy with sequence=0. If a tisfc010 record was updated, another record was inserted into the copy table with the next sequence number. This was working very wellÂ….. However.
Whenever a date was changed on the Production Order table (tisfc001), the planning for that order disappeared in table (tisfc010). I do not write to the tisfc010 in my trigger, only read. I don't understand why this is happening. Does anyone have any suggestions? Thanks.
-Tim