INL Landed Unit Cost Trend

Description

Categories
Enginatics, R12 only
Repository
GitHub
Unit landed cost per item over its landed cost shipments, broken down into item cost, charges and taxes, with the change against the item's previous shipment in the same organization.

Unit amounts are the current landed cost allocations in functional currency divided by the shipment line's primary quantity, Estimated Unit Landed Cost the first calculation. The previous shipment is taken from the shipments within the parameter selection.

SQL 96 lines

Parameters 7

ParameterTypeList of values SQL
Operating UnitLOV
ish.org_id in (select haouv.organization_id from hr_all_organization_units_vl haouv where haouv.name=:operating_unit)
Organization CodeLOV
ish.organization_id in (select mp.organization_id from mtl_parameters mp where mp.organization_code=:organization_code)
Shipment Date FromDate
ish.ship_date>=:shipment_date_from
Shipment Date ToDate
ish.ship_date<:shipment_date_to+1
SupplierLOV
isl.ship_line_group_id in (select islg.ship_line_group_id from inl_ship_line_groups islg, ap_suppliers aps where islg.party_id=aps.party_id and aps.vendor_name=:supplier)
ItemLOV
isl.inventory_item_id in (select msiv.inventory_item_id from mtl_system_items_vl msiv where ish.organization_id=msiv.organization_id and msiv.concatenated_segments=:item)
Country of OriginLOV
nvl(rsl.country_of_origin_code,plla.country_of_origin_code) in (select ftv.territory_code from fnd_territories_vl ftv where ftv.territory_short_name=:country_of_origin)