lot exp analysis

Download Lot Exp Analysis

If you can't read please download the document

Upload: sree-laxmi-adibhatla

Post on 28-Oct-2015

55 views

Category:

Documents


2 download

DESCRIPTION

hljk

TRANSCRIPT

Exp date during lot creation (Misc Receipt): INVLTENT.pld: SELECT expiration_action_date INTO l_exp_action_date... SELECT expiration_action_date INTO l_exp_action_date FROM mtl_lot_numbers WHERE lot_number = l_lot_number AND inventory_item_id = l_inventory_item_id AND organization_id = l_org_id; EXCEPTION WHEN no_data_found THEN NULL; END; IF l_exp_action_date IS NULL THEN l_exp_action_date := app_date.field_to_date('lot_entry.lot_exp iration_date') + to_number(name_in('mtl_lot_reference.expirat ion_action_interval')); END IF; app_date.date_to_field(l_exp_action_date,'lot_entry.expiration_ac tion_date'); /* Also populate mtl lot reference for consistency */ app_date.date_to_field(l_exp_action_date,'mtl_lot_reference.expir ation_action_date'); END IF; --Bug#5731987 Begin End IF (NVL(name_in('mtl_lot_reference.existing_lot'), 'FALSE') = 'FALS E' AND lot_lib.global_copied_lot 'Y')--Global Lot ER,In case it is copied lot,then keep expiration_action_date field disabled. THEN app_item_property.set_property('lot_entry.expiration_action_date ',enterable,property_on); END IF; END IF; --INVCONV end END IF; -265 IF (to_number (name_in ('lot_control.trx_act')) = 1) THEN -- Bug 9662IF ((to_number (name_in ('mtl_lot_reference.shelf_life_code')) = 2) OR (to_number (name_in ('mtl_lot_reference.shelf_life_code')) = 4)) THEN -- Flexdate change for bug #774739 IF (app_date.field_to_date ('lot_entry.lot_expiration_date') p_mtli_lot => p_mti_trx_ => p_mtlt_lot_rec ,p_mmtt_trx_rec _rec ,p_table => p_table ,x_lot_expiration_date => x_lot_expi ration_date ,x_return_status => x_return_s tatus); END IF; IF (x_lot_expiration_date IS NULL) THEN IF l_transaction_date IS NOT NULL THEN x_lot_expiration_date:=l_transaction_date+l_shelf_life_days; ELSE x_lot_expiration_date:=SYSDATE+l_shelf_life_days; END IF; END IF; ELSE x_lot_expiration_date:=SYSDATE+l_shelf_life_days; END IF; Misc Rcpt: on line - exp date without time stamp. On lot/serial - with time stamp. Batch Details: Pending lots: no exp date Batch reservation: calls inv_reservation_pub.create_reservations inturn Batch auto detail: wms_rule_extn_pvt.InitQtyTree , gme_reservations_pvt.auto_det ail_batch In GMETTMTX.fmb: mtl_trx_line_val.check_lot_expired when validate item trigger of lpn name for batch release: GME_TRANSACTIONS_PVT.IS_LOT_EXPIRED => p_mmtt_trx