Advanced SQL I.6 FS Bridges
Advanced SQL I.6 FS Bridges
------------------
-- Bridge items --
------------------
- Phase 2:
After processing, the input table should be emptied without any possibility of
deleting record belonging to a concurrent process.
A DB error should impact only the record that have trigerred it, not the others.
These errors should be logged into Z_ERR_ITEM if any.
----------------------
-- Bridge item sets --
----------------------
Records of input table Z_INPT_ITEM_SET_DETAIL will be processed in order to
populate or update records in the table Z_ITEM_SET_DETAIL.
The result must be equivalent to processing the records one by one in ascending
INPT_ID order.
Quantities in the input table replace existing quantities in Z_ITEM_SET_DETAIL
(they are not additive).
A null or zero quantity means that this detail should be removed from the set.
- Phase 2:
After processing, the input table should be emptied without any possibility of
deleting record belonging to a concurrent process.
A DB error should impact only the record that have trigerred it, not the others.
These errors should be logged into Z_ERR_ITEM_SET_DETAIL if any.
------------------------
-- Bridge LPN details --
------------------------
Records of input table Z_INPT_LPN_DETAIL will be processed in order to populate or
update records in the table Z_LPN_DETAIL.
LPN_NUMBERs that are not in Z_LPN are created with default values.
The result must be equivalent to processing the records one by one in ascending
INPT_ID order.
Quantities in the input table replace existing quantities in Z_LPN_DETAIL (same
LPN, same ITEM).
A null or zero quantity means that this item should be removed from the LPN.
- Phase 2:
After processing, the input table should be emptied without any possibility of
deleting record belonging to a concurrent process.
A DB error should impact only the record that have trigerred it, not the others.
These errors should be logged into Z_ERR_LPN or Z_ERR_ITEM_SET_DETAIL if any.
----------------------
-- Bridge LPN locks --
----------------------
Records of input table Z_INPT_LPN_LOCK will be processed in order to populate or
update records in the table Z_LPN_LOCK.
LPN_NUMBERs that are not in Z_LPN are created with default values.
The result must be equivalent to processing the records one by one in ascending
INPT_ID order.
Adding an existing lock codes for the same LPN does nothing but it is not an error.
Adding a null LOCK_CODE to a LPN means that all lock codes are removed from this
LPN.
- Phase 2:
After processing, the input table should be emptied without any possibility of
deleting record belonging to a concurrent process.
A DB error should impact only the record that have trigerred it, not the others.
These errors should be logged into Z_ERR_LPN or Z_ERR_LPN_LOCK if any.
-------------------
-- Bridge pallet --
-------------------
Records of input table Z_INPT_PLT will be processed in order to populate or update
records in the table Z_LPN.
LPN numbers in LPN_NUMBER or PLT_NUMBER that are not in Z_LPN are created in Z_LPN
with default values (if needed).
The result must be equivalent to processing the records one by one in ascending
INPT_ID order.
- Phase 2:
After processing, the input table should be emptied without any possibility of
deleting record belonging to a concurrent process.
A DB error should impact only the record that have trigerred it, not the others.
These errors should be logged into Z_ERR_LPN if any.
----------------
-- Bridge LPN --
----------------
Records of input table Z_INPT_LPN will be processed in order to populate or update
records in the table Z_LPN.
LPN numbers in LPN_NUMBER that are not in Z_LPN are created in Z_LPN with default
values (if needed).
The result must be equivalent to processing the records one by one in ascending
INPT_ID order.
Existing records (matching LPN_NUMBER) should be updated (LOCATION_ID and
LPN_STATUS). New records are inserted.
The LPN_STATUS 99 is special: it means that the LPN should be deleted.
- Phase 2:
After processing, the input table should be emptied without any possibility of
deleting record belonging to a concurrent process.
A DB error should impact only the record that have trigerred it, not the others.
These errors should be logged into Z_ERR_LPN if any.
- Phase 3:
When deleting a pallet, the deletion must be propagated to every contained LPN
recursively without triggering any error.
When changing the status or the location of a pallet, this change should be
propagated to every contained LPN recursively.