Correct Wayne, that is why we have a problem. The primary key to the table includes Item ID, Warehouse, Cost type, and Group ID which in our case is the lot number.
Only lotted items are showing instances of right space-padded item id's. I have many instances where I have two records for the same item, warehouse, lot combination; one without trailing spaces in the item id and one with trailing spaces in the item id. In all but a very few instances, the record without the trailing spaces does not contain any record tag information (date/user created, date/user last updated, etc)