Query to Find Out Move Order Number for Work Order with Transacted Quantity: There could be scenarios where for some reason you need to know Move Order number for Work Order Material Line which has be transacted. Once quantity is transacted, no record exists for that move order number to be found. The below query can be used to find out All Move Order Numbers generated for that relevant Work Order. SELECT a.REQUEST_NUMBER, mmt.TRANSACTION_SOURCE_ID, mmt.TRANSACTION_SOURCE_NAME, mmt.* FROM mtl_material_transactions mmt, mtl_txn_request_lines b, mtl_txn_request_headers a, wip_entities w WHERE --mmt.transaction_id = 55356941 --AND mmt.move_order_line_id = b.line_id AND b.header_id = a.header_id and mmt.TRANSACTION_SOURCE_ID = w.WIP_ENTITY_ID and w.WIP_ENTITY_NAME = ' WO30683' "Change Work Order Number to Relevant Work Order" Special Thanks to Waqas Munir (PwC Pakistan)
Comments
Post a Comment