Vous êtes sur la page 1sur 9

MJ to ML Data Flow

Involved Huron transactions# MLX125

MJ interface file having UK data: MLL.MJ.MERGED.RTC

MJ interface file having ROI data: MLL.MJ.MERGED.RTC.ROI

Jobs Involved# ML175DN0(UK), ML675DN0(ROI)

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

Pseudocode of wastage calculation


MJ has bypassed the wastage record because based on WASTAGE-SOURCE-CD as ‘1’ it considered that
the wastage record was from SR and it was not actually a MJ’s wastage.

From below snapshot it is evident that for the same RO-NO & TPN, TXML0BPL was already loaded with
wastage record from SR

Wastage from SR#

Data loaded in TXHN0BPL


Data loaded in WI interface file

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

Scenario2# Actual wastage from MJ

TPN info for the corresponding EAN in TXHN0CUT


Pseudocode of wastage calculation

Data loaded in TXML0BPL


Data loaded in wi interface file

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
MJ Authorized SSP wastage

Involved Huron transactions# MLX127

MJ interface file having UK data:

MJL.MLEXPT.AUTH.SSP.EAN.CDC
LPL.MLLPSSP.LPX511

MJ interface file having ROI data:

IJL.MLEXPT.AUTH.SSP.EAN.CDC
LPL.MLLPSSP.LPX511.ROI

Data loaded in TXML0BPL

Data loaded in wi interface file

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
MJ Unauthorized SSP wastage

Involved Huron transactions# MLX127

MJL.MLEXPT.UNAUTH.SSP.EAN.CDC
LPL.MLLPSSP.LPX511

IJL.MLEXPT.UNAUTH.SSP.EAN.CDC
LPL.MLLPSSP.LPX511.ROI

TPN INFO for the corresponding EAN in TXHN0CUT

Data loaded in TXML0BPL

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

Vous aimerez peut-être aussi