You are on page 1of 8

SR to ML Data Flow (out of stock feed)

Involved Huron transactions# MLX005

SR interface file having UK data: SRL.SRMLOSXA.SR466.V0

SR interface file having ROI data: SRL.SRMLOSXA.SR466.V0.ROI

Jobs Involved# ML140DN0(UK), ML640DN0(ROI)

As seen in below snippet from huron transaction# MLX005 wastage source code and wastage type code
are assigned with default values for every record from SR feed that gets added to TXML0BPL table. Also
note that wastage quantity is defaulted to zero.

Data loaded in TXML0BPL table#


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

SR to ML Data Flow (wastage feed)

Involved Huron transactions# MLX120

SR interface file having UK data - SRL.SRMLWSXA.SR468.EARLY.V0, SRL.SRMLWSXA.SR468.V0

SR interface file having ROI data - SRL.SRMLWSXA.SR468.EARLY.V0.ROI,


SRL.SRMLWSXA.SR468.V0.ROI
Jobs Involved#

uk ROI
ML142DN0 ML642DN0
ML145DN0 ML645DN0

SR EARLY WASTAGE

Data loaded in TXML0BPL table


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

SR wastage Rejections

SR wastage record with wastage value as zero will be pushed for rejections and will be loaded in
TXHN4BPL
Rejected Data loaded in TXHN4BPL

SR Wastage Deletions

SR wastage record with wastage status as ‘D” will be deleted from TXML0BPL and from below
snapshot it is evident that the corresponding record is not found in TXML0BPL
SR wastages

DATA LOADED IN TXML0BPL


Data interfaced in WI 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

SR wastage rejections
If the sr.wastage value is received as zero then such a record gets pushed for rejection and will be
written to the rejection table# TXHN4BPL

You might also like