0% found this document useful (0 votes)
21 views2 pages

ECC Phase4 Am

The document contains an SQL query that selects data from various tables related to material transactions in an inventory system. The query retrieves organization codes, item details, transaction quantities and dates, user information, and other fields to output material transfer records.

Uploaded by

pooja8shinde
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views2 pages

ECC Phase4 Am

The document contains an SQL query that selects data from various tables related to material transactions in an inventory system. The query retrieves organization codes, item details, transaction quantities and dates, user information, and other fields to output material transfer records.

Uploaded by

pooja8shinde
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

SELECT

mp.organization_code "Org Code",

mp.attribute5 "Legacy Site Code",

mmt.subinventory_code "From Sub Inventory",

inv_project.get_locator(mmt.locator_id, mmt.organization_id) "From Locator",

mmt.transfer_subinventory "To Sub Inventory",

inv_project.get_locator(mmt.transfer_locator_id,mmt.transfer_organization_id) "To Locator",

msib.segment1 "Item",

msib.description "Description",

msib.attribute1 "COUPA UIN",

msib.attribute2 "MFG Part Number",

msib.attribute4 "Windchill Part Number",

mmt.transaction_quantity "Quantity",

mmt.transaction_uom "Unit Of Measure",

(msib.list_price_per_unit * mmt.transaction_quantity ) "Total Value",

mmt.transaction_date "Transaction Date" ,

mtst.transaction_source_type_name "Source Type",

mtt.transaction_type_name "Transaction Type",

mmt.transaction_id,

mmt.created_by,

fu.user_name "User"

from

mtl_parameters mp,

mtl_material_transactions mmt,

mtl_transaction_types mtt,

mtl_txn_source_types mtst,

mtl_system_items_b msib,

fnd_user fu

WHERE
mp.organization_id=mmt.organization_id

AND mmt.transaction_type_id=mtt.transaction_type_id

AND mmt.transaction_source_type_id = mtt.transaction_source_type_id

AND mmt.transaction_source_type_id=mtst.transaction_source_type_id

AND mmt.organization_id=msib.organization_id

AND mmt.inventory_item_id=msib.inventory_item_id

AND mmt.created_by = fu.user_id

AND msib.organization_id = mp.organization_id

AND mmt.inventory_item_id = msib.inventory_item_id

--and MP.ORGANIZATION_ID = 103

--and mp.organization_code = 'AAA'

--And mmt.transaction_date between '01-NOV-22' and '09-NOV-22'

--AND msib.segment1 = '10068038'

AND 1=1

order by

mp.organization_code,

msib.segment1,

mmt.transaction_date desc,

mmt.transaction_id desc

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy