Skip to the content.

OPM Formula Upload – Oracle EBS SQL Report

Oracle E-Business Suite SQL report from the Enginatics Library powered by Blitz Report™.

Overview

OPM Formula Upload ================== Create or update Oracle Process Manufacturing (OPM / GMD) Formulas via the public API GMD_FORMULA_PUB / GMD_FORMULA_DETAIL_PUB.

Row model

One spreadsheet row per formula LINE. The header columns (Organization Code, Formula, Formula Version, Description, Class, Owner, Header Scale Type, Status, header attributes) repeat on every line of the same formula. Each line carries its Line Type (Ingredient / Product / By-Product) plus its item, quantity, UOM, scale, and line attributes. Rows of the same formula (Organization Code + Formula + Formula Version) must be contiguous.

Every formula must have at least one Ingredient AND at least one Product (OPM requirement) - a header-only formula is rejected.

Upload modes

Create - empty template for new formulas. Create, Update - downloads existing formulas in the chosen organization for review/edit and allows adding new ones. Existing formulas are matched on Organization Code + Formula + Formula Version.

Notes

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, Formula

Oracle EBS Tables Used

fnd_user, gmd_status_vl, fm_form_mst_vl, fm_matl_dtl, mtl_parameters, mtl_system_items_vl, org_access_view

Report Categories

Enginatics, R12 only, Upload

OPM Recipe Upload, CAC OPM Costed Formula, OPM Formula Details, OPM Formula Where-Used

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_Formula_Upload.xml
SQL Source OPM Formula Upload.sql
Full Report on Enginatics www.enginatics.com/reports/opm-formula-upload/

Case Study & Technical Analysis: OPM Formula Upload

Executive Summary

This upload creates and updates process manufacturing formulas in Oracle Process Manufacturing (OPM), the recipes that define the ingredients, products and by-products of a process. It downloads the formulas of an organization, one spreadsheet row per formula line, and lets a formulation or product development team add formulas, change quantities and attributes, and add lines. Changes are applied through the public GMDFORMULAPUB and GMDFORMULADETAILPUB APIs, so the OPM rules are enforced on every row. It is used when new formulas are loaded from a development system, when many formula quantities are revised, or when formulas are copied between organizations. Blitz Report™ provides the spreadsheet in which the formulas are reviewed and edited.

Business Challenge

The Solution

Technical Architecture (High Level)

Primary Tables

Logical Relationships

  1. FM_FORM_MST_VL is joined to FM_MATL_DTL on the formula identifier, so each line carries its header.
  2. The owner organization of the formula is joined to MTL_PARAMETERS.
  3. Each line’s item is joined to MTL_SYSTEM_ITEMS_VL on inventory item and organization.
  4. The owner user and formula status are looked up from FND_USER and GMD_STATUS_VL.
  5. Deleted formulas and inactive formulas are excluded, and the owner organization is limited to the organizations the responsibility can access.
  6. An outer query orders the lines within each formula as ingredients, then products, then by-products, and by line number.

Parameters & Filtering

Performance & Optimization

FAQ

Q: Why does an upload row fail for a formula with no product? A: OPM requires at least one ingredient and one product on every formula. A header-only formula is rejected by the API.

Q: Can I change the status of a formula through this upload? A: No. New formulas are created in status New, and status changes are workflow operations that this upload does not drive.

Q: Which fields identify an existing formula on update? A: The organization code, formula number and version. These cannot be changed on update.


© Enginatics GmbH