K_PRDDLTM - Product Lead Time Transactions During The Day

File Name . . . . K_PRDDLTM
   Library . . . .   K3S_5DTA
 Format Descr. . . Prod lead time trans during day
 Format Name . . . RK_PRDDLTM
 File Type . . . . PF            Unique Keys-  N

 Field Name FMT Start Lngth Dec Key Field Description
 PP_COMP     A      1     1         Company ID
 PP_LOCN     A      2     5         Location ID
 PP_SUPL     A      7    10         Supplier ID
 PP_SUPLSUB  A     17    10         Sub supplier ID
 PP_SUPLUSR  A     27    10         Supplier user system
 PP_SUPLUSB  A     37    10         Supplier user sub
 PP_PROD     A     47    25         Product ID
 PP_BIRTH    L     72    10         Product LT trans birth
 PP_LASTUPD  L     82    10         Product LT trans last
 PP_ORDDATE  L     92    10         Product order date
 PP_ORDRECV  L    102    10         Product receive date
 PP_QTYRECV  P    112     7   0     Quantity received
 PP_QTYORDR  P    116     7   0     Quantity ordered
 PP_PO#      A    120    10         PO number
 PP_USEFLAG  P    130     1   0     Transaction used flag
 PP_SKIPLT   P    131     1   0     Skip LT forecast flag

 PP_USEFLAG Status Legend
 0 = Not Processed
 1 = Processed Successfully
 2 = Lead Time Turned Off
 3 = Skip LT Forecasting
 4 = Loc/Supl/Product Not On File
 5 = Invalid Transaction
 6 = Daily Hold Out Processing
 7 = PO Line Cancelled


When creating records for cancellations, set PP_USEFLAG = 7, PP_SKIPLT = 1, PP_QTYORDR = ordered qty,
PP_QTYRECV = 0, PP_ORDRECV = PP_ORDDATE.


If entire PO is cancelled, send a K_PRODLTM cancelled record for each item on the PO.
The night process will automatically set the PO status to cancelled in the K_INTORDL record.