SELECT COUNT(*)
, mmtt.organization_id
, mtt.transaction_type_name
, meaning action
, transaction_source_type_name
, mmtt.transaction_type_id
, mmtt.transaction_source_type_id
, mmtt.transaction_action_id
FROM mtl_material_transactions_temp mmtt
, mtl_transaction_types mtt
, fnd_lookup_values_vl lkp
, mtl_txn_source_types src
WHERE organization_id IN (2448,2434,2435)
AND mtt.transaction_type_id = mmtt.transaction_type_id
AND mmtt.transaction_source_type_id = src.transaction_source_type_id
AND lkp.lookup_type = 'MTL_TRANSACTION_ACTION'
AND lkp.lookup_code = TO_CHAR( mmtt.transaction_action_id )
GROUP BY
mmtt.organization_id
, mmtt.transaction_type_id
, mmtt.transaction_source_type_id
, mmtt.transaction_action_id
, mtt.transaction_type_name
, meaning
, transaction_source_type_name
, mmtt.organization_id
, mtt.transaction_type_name
, meaning action
, transaction_source_type_name
, mmtt.transaction_type_id
, mmtt.transaction_source_type_id
, mmtt.transaction_action_id
FROM mtl_material_transactions_temp mmtt
, mtl_transaction_types mtt
, fnd_lookup_values_vl lkp
, mtl_txn_source_types src
WHERE organization_id IN (2448,2434,2435)
AND mtt.transaction_type_id = mmtt.transaction_type_id
AND mmtt.transaction_source_type_id = src.transaction_source_type_id
AND lkp.lookup_type = 'MTL_TRANSACTION_ACTION'
AND lkp.lookup_code = TO_CHAR( mmtt.transaction_action_id )
GROUP BY
mmtt.organization_id
, mmtt.transaction_type_id
, mmtt.transaction_source_type_id
, mmtt.transaction_action_id
, mtt.transaction_type_name
, meaning
, transaction_source_type_name
No comments:
Post a Comment