OPM Recipe Upload – Oracle EBS SQL Report
Oracle E-Business Suite SQL report from the Enginatics Library powered by Blitz Report™.
Overview
Run this report in Excel in seconds: download Blitz Report™ free (your first 30 reports are free) or try it in the online demo.
Report Parameters
Upload Mode, Organization Code, Recipe
Oracle EBS Tables Used
mtl_parameters, fm_form_mst_b, gmd_routings_b, gmd_status_vl, fnd_user, gmd_recipes_vl, org_access_view, mtl_system_items_vl, gmd_recipe_validity_rules, gmd_operations_vl, fm_rout_dtl, gmd_recipe_routing_steps, fm_matl_dtl, gmd_recipe_step_materials, gmd_recipe_process_loss, hz_cust_accounts, gmd_recipe_customers, gmd_recipe_orgn_activities, gmd_operation_activities, gmd_recipe_orgn_resources
Report Categories
Related Reports
OPM Recipe Details, CAC Inventory Organization Summary, OPM Formula Where-Used, CAC OPM Costed Formula
Running This SQL Without Blitz Report
The SQL source can be run in any SQL client. Some Oracle EBS SQL reports in this library use functions from the utility package xxen_util – install it first. Blitz Report™ adds parameters, Excel output with pivots, scheduling and security on top.
Download & Import Options
| Resource | Link |
|---|---|
| Excel Example Output | Example |
| Blitz Report™ XML Import | OPM_Recipe_Upload.xml |
| SQL Source | OPM Recipe Upload.sql |
| Full Report on Enginatics | www.enginatics.com/reports/opm-recipe-upload/ |
Case Study & Technical Analysis: OPM Recipe Upload
Executive Summary
The OPM Recipe Upload maintains process manufacturing recipes in Oracle Process Manufacturing (OPM), the Recipe Management structure that defines how a product is made. A recipe is downloaded as a multi-row structure covering the recipe header, validity rules, routing steps, step materials, process losses, customers, organisation activities and organisation resources, and each row is typed so that the user can see which part of the recipe it belongs to.
Business Challenge
- Complex recipe structure: A recipe spans a header, validity rules, steps, materials, losses and resources, and keying each part in the form is slow and error prone.
- Versioning and validity: Products are made by a recipe under specific validity rules, such as organisation, quantity range and dates, and those rules must be correct for each product.
- Customer-specific and organisation-specific data: Some recipes apply to particular customers or organisations, and the upload must maintain those links.
The Solution
- Typed rows: Each row carries a row type of Recipe, Validity Rule, Routing Step, Step Material, Process Loss, Customer, Org Operation or Org Resource, so the file reads as the recipe’s structure.
- Recipe header detail: The header returns organisation, recipe number and version, formula, routing, status, yield, process loss, owner and flexfield values.
- Validity rule detail: Each validity rule shows its use, product, revision, preference, standard, minimum and maximum quantities, detail unit of measure and effective dates.
- Step and material detail: Routing steps show the operation and version, step quantity and yield, and step materials show the item, line type and transfer and delay values.
Technical Architecture (High Level)
Primary Tables
GMD_RECIPES_VL: the recipe header, used as the root of every row type.GMD_RECIPE_VALIDITY_RULES: the validity rules that define where and how a recipe applies.GMD_RECIPE_ROUTING_STEPS: the recipe’s routing steps with step quantity and operation yield.GMD_RECIPE_STEP_MATERIALS: the materials consumed or produced in each step.GMD_RECIPE_PROCESS_LOSS: the process loss definitions for the recipe.GMD_RECIPE_CUSTOMERS: the customers associated with the recipe.GMD_RECIPE_ORGN_ACTIVITIESandGMD_RECIPE_ORGN_RESOURCES: the organisation-level activities and resources of the recipe.GMD_OPERATIONS_VLandGMD_OPERATION_ACTIVITIES: the operations and their activities.FM_FORM_MST_B,FM_ROUT_DTLandFM_MATL_DTL: the formula, routing detail and formula material lines the recipe is built from.MTL_PARAMETERS,MTL_SYSTEM_ITEMS_VLandHZ_CUST_ACCOUNTS: the organisation, item and customer references.ORG_ACCESS_VIEW: the organisations accessible to the current responsibility.
Logical Relationships
- Each recipe in
GMD_RECIPES_VLlinks to its owner organisation inMTL_PARAMETERS, and only recipes not marked for deletion are returned. - Validity rules join to the recipe on the recipe identifier and to
MTL_SYSTEM_ITEMS_VLfor the product. - Routing steps join
FM_ROUT_DTLto the recipe’s routing and then toGMD_RECIPE_ROUTING_STEPSon the routing step identifier. - Step materials join to the recipe and to the routing step, and their item is resolved through
FM_MATL_DTLandMTL_SYSTEM_ITEMS_VL. - Process losses, customers and organisation activities join to the recipe, with activities linked to
GMD_OPERATION_ACTIVITIESby operation line. - Organisation resources join to the recipe and the operation activity in the same way as activities.
- The row types are combined with
union alland ordered by recipe, version, row type, step, product and validity rule.
Parameters & Filtering
- Upload Mode: Chooses whether the file is used to create or update recipes. Every row type is returned only when the mode includes update.
- Organization Code: Restricts the recipes to one owner organisation.
- Recipe: Restricts the recipes to one recipe number.
Performance & Optimization
- Organisation access filter: Each branch of the union is restricted to owner organisations in
ORG_ACCESS_VIEWfor the current responsibility, so recipes outside the user’s access are not read. - Mode check first: The condition on the upload mode is applied to every branch, so downloads that do not require the detail rows return only the header rows.
FAQ
Q: How do I download a recipe with its routing steps and materials in OPM? A: Set the Recipe and Organization Code parameters and run the report in update mode. The Routing Step and Step Material rows show each step and its materials.
Q: What does a Validity Rule row represent? A: A validity rule defines the product, organisation, quantity range, revision and effective dates for which a recipe applies, and each one is a separate row under its recipe.
Q: Which columns identify the step a material belongs to? A: The step column holds the routing step number, and the material rows carry the same recipe and routing step identifiers.
Useful Links
- Blitz Report™ – World’s Fastest Oracle EBS Reporting Tool
- Oracle Discoverer Replacement – Import Worksheets into Blitz Report™
- Oracle EBS Reporting Toolkits by Blitz Report™
- Blitz Report™ FAQ & Community Q&A
- Supply Chain Hub by Blitz Report™
- Blitz Report™ Customer Case Studies
- Oracle EBS Reporting Blog
- Oracle EBS Reporting Resource Centre
© Enginatics GmbH