OPM Production Batch GME and INV tables relate together for a given batch
Oracle Process Manufacturing Process Execution OPM Production Batch GME and INV tables relate together for a given batch The following SQL*Plus queries show how the GME and INV tables relate together for a given batch. In each statement, please replace the value '12345' with the required Batch Number, and 'PR1' with the relevant Plant Code or Organization. 1) Batch select gbh.* from gme_batch_header gbh where gbh.batch_no = '12345' and gbh.organization_id = (select organization_id from org_organization_definitions ood where ood.organization_code = 'PR1'); 2) Batch Material Details select ood.organization_code, gbh.batch_no, gbh.batch_id, gmd.* from gme_material_details gmd, gme_batch_header gbh, org_organization_definitions ood where gmd.batch_id = gbh.batch_id and gbh.batch_no = '12345' and gbh.organization_id = ood.organization_id and ood.organization_code = 'PR1' order by gbh.batch_id, gmd.material_detail_i; ...