INV Serial Numbers

Description

Categories
Enginatics
Repository
GitHub
Serial numbers in any status (defined, in stores, issued out of stores, in transit, in receiving, in WIP), one row per serial number, with current organization, subinventory and locator, the last transaction source, the customer of a serial issued on a sales order and the genealogy parent.

Organization is the current organization; for an issued serial it is the organization that issued it. Customer is the sold-to customer of the sales order of the last transaction, blank when the order no longer exists. Last Transaction Type and Date are blank where Oracle did not record the last transaction on the serial.

Use INV Transaction Register (Serial Number Detail) for the full transaction history of a serial.

SQL 111 lines

Parameters 12

ParameterTypeList of values SQL
Organization CodeLOV
mp.organization_code=:organization_code
ItemLOV
msiv.concatenated_segments=:item
Serial Number likeChar
msn.serial_number like :serial_number
Current StatusLOV
msn.current_status=:current_status_id
SubinventoryLOV
msn.current_subinventory_code=:subinventory
Lot NumberLOV
msn.lot_number=:lot_number
Last Source TypeLOV
msn.last_txn_source_type_id=:last_source_type_id
Sales OrderChar
mso.segment1=:sales_order
CustomerLOV
hp.party_name=:customer
Ship Date FromDate
msn.ship_date>=:ship_date_from
Ship Date ToDate
msn.ship_date<:ship_date_to+1
DFF DisplayLOV
select xxen_util.dff_columns(p_table_name=>'mtl_serial_numbers',p_table_alias=>'x',p_row_id=>'row_id',p_display_mode=>:dff_display) sql_text from dual