,PLAN_QTY,SCALE_TYPE, wip_plan_qty, m.actual_qty, c.acctg_cost from gl_item_cst c, gme_material_details m where c.organization_id=242 --and c.inventory_item_id=1014496 and period_id=(select period_id from gmf_period_statuses p where p.period_code='MAR20' and LEGAL_ENTITY_ID =26276 ) and c.organization_id= m.organization_id and c.inventory_item_id= m.inventory_item_id and m.batch_id=(select batch_id from gme_batch_header bh where bh.batch_no='10' and organization_id=242) --and line_type=1
--- material Transactions
select tp.TRANSACTION_TYPE_ID, TRANSACTION_TYPE_NAME, count(transaction_id) times from mtl_material_transactions t,mtl_transaction_types tp where t.organization_id=242 --and transaction_type_id=18 and transaction_date between to_date('01/03/2020 00:00:00','dd-mm-yyyy hh24:mi:ss') and to_date('31/03/2020 23:59:59','dd-mm-yyyy hh24:mi:ss') and t.TRANSACTION_TYPE_ID=tp.TRANSACTION_TYPE_ID group by tp.TRANSACTION_TYPE_ID, TRANSACTION_TYPE_NAME
SELECT R.ROWID FROM Fnd_Concurrent_Requests R
-----------material Transactions with cost ------------------------
select distinct to_char(transaction_date) dt, t.transaction_type_id,i.segment1, tp.transaction_type_name , c.ACCTG_COST from mtl_material_transactions t , mtl_transaction_types tp, mtl_system_items_b i, gl_item_cst c where t.organization_id=261 and t.transaction_type_id=tp.transaction_type_id and t.organization_id=i.organization_id and t.inventory_item_id=i.inventory_item_id and to_char(transaction_date,'YYYYMM')='202101' and i.organization_id=c.organization_id and i.inventory_item_Id=c.inventory_item_id and c.period_id(+)=6340 --39