Académique Documents
Professionnel Documents
Culture Documents
Scenario 1#
Below is the pseudocode of wastage calculation logic happening in MLX125 huron txn. Since there was
an existing row in TXML0BPL for the respective TPN with wastage source code as 1 the huron program
treats it as wastage data from SR and does not apply any wastage calculation and bypasses the record
From below snapshot it is evident that for the same RO-NO & TPN, TXML0BPL was already loaded with
wastage record from SR
Before record gets loaded in WI interface file the huron program checks below condition to rewrite the
wastage quantity and wastage weight based on sell weight indicator for the respective TPN(Tesco
product no)
Before record gets loaded in WI interface file the huron program checks below condition to rewrite the
wastage quantity and wastage weight based on sell weight indicator for the respective TPN(Tesco
product no)
MJL.MLEXPT.AUTH.SSP.EAN.CDC
LPL.MLLPSSP.LPX511
IJL.MLEXPT.AUTH.SSP.EAN.CDC
LPL.MLLPSSP.LPX511.ROI
Before record gets loaded in WI interface file the huron program checks below condition to rewrite the
wastage quantity and wastage weight based on sell weight indicator for the respective TPN(Tesco
product no)
MJL.MLEXPT.UNAUTH.SSP.EAN.CDC
LPL.MLLPSSP.LPX511
IJL.MLEXPT.UNAUTH.SSP.EAN.CDC
LPL.MLLPSSP.LPX511.ROI
Data interfaced in WI
Before record gets loaded in WI interface file the huron program checks below condition to rewrite the
wastage quantity and wastage weight based on sell weight indicator for the respective TPN(Tesco
product no)
If BPR_SWGT_IND = 'B' or 'P' OR 'W'
BPR_WSTGE_WGHT =
TXML0BPL.BPR_WSTGE_QY / 2.205
BPR_WSTGE_QY = 0.00
ELSE
BPR_WSTGE_WGHT = 0
BPR_WSTGE_QY = TXML0BPL.BPR_WSTGE_QY
END-IF