Oracle Ebs-sql (INV-3): Check Warehouse inventory value details. SQL

Source: Internet
Author: User

SELECT
A.subinventory_code Sub-Library code
, d.description subpackage Description
, B.segment1 material code
, B.description material description
, b.primary_unit_of_measure units
, SUM (a.primary_transaction_quantity) number
, C.material_cost cost
, To_char (SUM (a.primary_transaction_quantity) *c.material_cost, ' 99999999999999.9999 ') amount
, To_char (sysdate, ' yyyy-mm-dd HH:MM:SS ') Reporting date
From
INV. Mtl_onhand_quantities_detail A,
INV. Mtl_system_items_b B,
Bom. Cst_item_costs C,
INV. Mtl_secondary_inventories D
WHERE
a.organization_id = X
and a.organization_id=b.organization_id
and c.inventory_item_id (+) =b.inventory_item_id
and a.inventory_item_id=b.inventory_item_id
--and a.subinventory_code like ' t% '
and c.cost_type_id (+) =1000
and D.secondary_inventory_name=a.subinventory_code
and d.organization_id=b.organization_id
GROUP by
B.segment1
, b.description
, A.subinventory_code
, B.primary_unit_of_measure
, C.material_cost
, d.description
ORDER BY
A.subinventory_code

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.