+ All Categories
Home > Documents > r12 opm api

r12 opm api

Date post: 23-Nov-2015
Category:
Upload: dheeraj-thapa
View: 273 times
Download: 16 times
Share this document with a friend
Description:
provides information about R12 API related to OPM module.
84
Oracle® Process Manufacturing API Reference Guide Release 12 Part No. E05081-01 April 2007
Transcript
  • Oracle Process ManufacturingAPI Reference GuideRelease 12Part No. E05081-01

    April 2007

  • Oracle Process Manufacturing API Reference Guide, Release 12

    Part No. E05081-01

    Copyright 2006, 2007, Oracle. All rights reserved.

    Primary Author: Madhavi Agarwal, Harry Anthony, Samyukta Koda, Michael Laverty, Sudha Seshadri

    The Programs (which include both the software and documentation) contain proprietary information; they are provided under a license agreement containing restrictions on use and disclosure and are also protected by copyright, patent, and other intellectual and industrial property laws. Reverse engineering, disassembly, ordecompilation of the Programs, except to the extent required to obtain interoperability with other independently created software or as specified by law, is prohibited.

    The information contained in this document is subject to change without notice. If you find any problems in the documentation, please report them to us in writing. This document is not warranted to be error-free. Except as may be expressly permitted in your license agreement for these Programs, no part of these Programs may be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose.

    If the Programs are delivered to the United States Government or anyone licensing or using the Programs on behalf of the United States Government, the following notice is applicable:

    U.S. GOVERNMENT RIGHTSPrograms, software, databases, and related documentation and technical data delivered to U.S. Government customers are "commercial computer software" or "commercial technical data" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of the Programs, including documentation and technical data, shall be subject to the licensing restrictions set forth in the applicable Oracle license agreement, and, to the extent applicable, the additional rights set forth in FAR 52.227-19, Commercial Computer Software--Restricted Rights (June 1987). Oracle Corporation, 500 Oracle Parkway, Redwood City, CA 94065.

    The Programs are not intended for use in any nuclear, aviation, mass transit, medical, or other inherently dangerous applications. It shall be the licensee's responsibility to take all appropriate fail-safe, backup, redundancy and other measures to ensure the safe use of such applications if the Programs are used for such purposes, and we disclaim liability for any damages caused by such use of the Programs.

    The Programs may provide links to Web sites and access to content, products, and services from third parties. Oracle is not responsible for the availability of, or any content provided on, third-party Web sites. You bear allrisks associated with the use of such content. If you choose to purchase any products or services from a third party, the relationship is directly between you and the third party. Oracle is not responsible for: (a) the qualityof third-party products or services; or (b) fulfilling any of the terms of the agreement with the third party, including delivery of products or services and warranty obligations related to purchased products or services.Oracle is not responsible for any loss or damage of any sort that you may incur from dealing with any third party.

    Oracle, JD Edwards, PeopleSoft, and Siebel are registered trademarks of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

  • iii

    Contents

    Send Us Your Comments

    Preface

    1 Oracle Process Manufacturing APIs: General InformationUnderstanding Oracle Process Manufacturing APIs............................................................... 1-1Getting API Information from the Oracle Integration Repository and the Electronic TechnicalReference Manual (eTRM)........................................................................................................ 1-2Messages and Errors.................................................................................................................. 1-3

    2 Oracle Process Manufacturing Cost Management APIsOracle Process Manufacturing Cost Management API Packages............................................ 2-1Oracle Process Manufacturing Cost Management API Package Listings................................2-2

    . drpRCnlAr2RnuulQpM:mpRi:rPMylAr2RnuulACpMMPMylEA-u

    Oracle Process Manufacturing Process Planning API Packages.............................................. 3-1Oracle Process Manufacturing Process Planning API Package Listings................................. 3-1

    1 drpRCnlAr2RnuulQpM:mpRi:rPMyl3:pCPi4lQpMpynGnMilEA-u

    Oracle Process Manufacturing (OPM) Quality Management API Packages...........................4-1Quality Management API Package Listings............................................................................. 4-2

    O drpRCnl7e5nR2rtulEA-u

    Oracle E-Records API Packages................................................................................................ 5-1Oracle E-Records API Package Listings.................................................................................... 5-2

  • iv

    6 OPM Process Execution APIsOPM Process Execution API Packages..................................................................................... 6-1Process Execution API Package Listings................................................................................... 6-1

    . dAQlAr2t:Ril/n6nC20GnMilEA-u

    OPM Product Development API Packages...............................................................................7-1OPM Product Development API Package Listings.................................................................. 7-3

    -Mtn-

  • v

    Send Us Your Comments

    Oracle Process Manufacturing API Reference Guide, Release 12Part No. E05081-01

    Oracle welcomes customers' comments and suggestions on the quality and usefulness of this document. Your feedback is important, and helps us to best meet your needs as a user of our products. For example:

    Are the implementation steps correct and complete? Did you understand the context of the procedures? Did you find any errors in the information? Does the structure of the information help you with your tasks? Do you need different information or graphics? If so, where, and in what format? Are the examples correct? Do you need more examples?

    If you find any errors or have any other suggestions for improvement, then please tell us your name, the name of the company who has licensed our products, the title and part number of the documentation andthe chapter, section, and page number (if available).

    Note: Before sending us your comments, you might like to check that you have the latest version of the document and if any concerns are already addressed. To do this, access the new Applications Release Online Documentation CD available on Oracle MetaLink and www.oracle.com. It contains the most current Documentation Library plus all documents revised or released recently.

    Send your comments to us using the electronic mail address: [email protected]

    Please give your name, address, electronic mail address, and telephone number (optional).

    If you need assistance with Oracle software, then please contact your support representative or Oracle Support Services.

    If you require training or instruction in using Oracle software, then please contact your Oracle local officeand inquire about our Oracle University offerings. A list of Oracle offices is available on our Web site at www.oracle.com.

  • vii

    Preface

    Intended AudienceWelcome to Release 12 of the Oracle Process Manufacturing API Reference Guide.

    See Related Information Sources on page viii for more Oracle Applications product information.

    TTY Access to Oracle Support ServicesOracle provides dedicated Text Telephone (TTY) access to Oracle Support Services within the United States of America 24 hours a day, seven days a week. For TTY support, call 800.446.2398.

    Documentation AccessibilityOur goal is to make Oracle products, services, and supporting documentation accessible, with good usability, to the disabled community. To that end, our documentation includes features that make information available to users of assistive technology. This documentation is available in HTML format, and contains markup to facilitate access by the disabled community. Accessibility standards will continue to evolve over time, and Oracle is actively engaged with other market-leading technology vendors to address technical obstacles so that our documentation can be accessible to allof our customers. For more information, visit the Oracle Accessibility Program Web site at http://www.oracle.com/accessibility/ .

    Accessibility of Code Examples in DocumentationScreen readers may not always correctly read the code examples in this document. The conventions for writing code require that closing braces should appear on an otherwise empty line; however, some screen readers may not always read a line of text that consists solely of a bracket or brace.

  • viii

    Accessibility of Links to External Web Sites in DocumentationThis documentation may contain links to Web sites of other companies or organizationsthat Oracle does not own or control. Oracle neither evaluates nor makes any representations regarding the accessibility of these Web sites.

    Structure1 Oracle Process Manufacturing APIs: General Information2 Oracle Process Manufacturing Cost Management APIs3 Oracle Process Manufacturing Process Planning APIs4 Oracle Process Manufacturing Quality Management APIs5 Oracle E-Records APIs6 OPM Process Execution APIs7 OPM Product Development APIs

    Related Information Sources

    Integration RepositoryThe Oracle Integration Repository is a compilation of information about the service endpoints exposed by the Oracle E-Business Suite of applications. It provides a complete catalog of Oracle E-Business Suite's business service interfaces. The tool lets users easily discover and deploy the appropriate business service interface for integration with any system, application, or business partner.

    The Oracle Integration Repository is shipped as part of the E-Business Suite. As your instance is patched, the repository is automatically updated with content appropriate for the precise revisions of interfaces in your environment.

    Do Not Use Database Tools to Modify Oracle Applications DataOracle STRONGLY RECOMMENDS that you never use SQL*Plus, Oracle Data Browser, database triggers, or any other tool to modify Oracle Applications data unless otherwise instructed.

    Oracle provides powerful tools you can use to create, store, change, retrieve, and maintain information in an Oracle database. But if you use Oracle tools such as SQL*Plus to modify Oracle Applications data, you risk destroying the integrity of your data and you lose the ability to audit changes to your data.

    Because Oracle Applications tables are interrelated, any change you make using an Oracle Applications form can update many tables at once. But when you modify Oracle Applications data using anything other than Oracle Applications, you may change a row in one table without making corresponding changes in related tables. If your tables get out of synchronization with each other, you risk retrieving erroneous information

  • ix

    and you risk unpredictable results throughout Oracle Applications.

    When you use Oracle Applications to modify your data, Oracle Applications automatically checks that your changes are valid. Oracle Applications also keeps track of who changes information. If you enter information into database tables using database tools, you may store invalid information. You also lose the ability to track whohas changed your information because SQL*Plus and other database tools do not keep arecord of changes.

  • Oracle Process Manufacturing APIs: General Information 1-1

    1Oracle Process Manufacturing APIs:

    General Information

    Understanding Oracle Process Manufacturing APIsOracle Process Manufacturing APIs import field-specific data from an existing system into the Oracle Process Manufacturing application-specific tables. The imported information has the same detail as if you entered it manually using the appropriate Oracle Process Manufacturing application window. Oracle Process Manufacturing APIsare packaged PL/SQL subprograms that you call from other PL/SQL subprograms or anonymous blocks of code. To use these APIs, write a PL/SQL subprogram to pass the appropriate parameters to the APIs. A typical calling subprogram also manages the database connection, and may write to log files during execution.

    Oracle Application Shared PackagesOracle Process Manufacturing APIs use shared library objects from the Oracle Applications Schema (FND) which also have a set of detailed error messages for debugging purposes. Oracle ensures that the APIs function as designed, but does not support customer generated programs that use the APIs. The Oracle Process Manufacturing APIs call subprograms from the following standard Oracle Applicationspackages:

    Package Name Package Description

    FND_API Contains the standard Oracle Applications API version checking function. This is used bythe API to check for valid API version numbers.

  • 1-2 Oracle Process Manufacturing API Reference Guide

    Package Name Package Description

    FND_MESSAGE Contains the standard Oracle Applications messaging function. This is used by the storedprocedure to report status and error handling.

    FND_PUB_MSG Contains the standard Oracle Applications message retrieval function used to interrogate the procedure messages.

    These packages are installed as part of the current release. Refer to the Oracle Applications Developers Guide for additional details.

    Getting API Information from the Oracle Integration Repository and the Electronic Technical Reference Manual (eTRM)

    The Oracle Integration Repository is a compilation of information about the service endpoints exposed by the Oracle E-Business Suite of applications. It provides a complete catalog of the Oracle E-Business Suite business service interfaces, including Application Program Intefaces (APIs). The tool lists the appropriate business service interface for integration with other systems. The Oracle Integration Repository is shipped as part of the Oracle E-Business Suite. As your instance is patched, the repository is automatically updated with content appropriate for the precise revisions of interfaces in your environment.

    You can start the repository like any other Oracle E-Business Suite application, provided that you are logged in as a user with sufficient permissions, such as system administrator. From the Navigator menu, select the Integration Repository responsibility, then click the Integration Repository link that appears.

    The Integration Repository displays common API information, and the following attributes of any APIs that you select:

    API Package Information

    API Signature Code

    API Parameters

    Name

    Mode (IN, OUT or IN OUT)

    Datatype

  • Oracle Process Manufacturing APIs: General Information 1-3

    Default Value

    English Language Description

    Note: The Oracle Integration Repository supports the exporting of API data into a comma-delimited (.CSV) format. Printable Page views are also available.

    For complete information on the Oracle Integration Repository refer to the Oracle Integration Repository User's Guide or the Oracle Applications Online Help.

    Important: To view the datatype of a column or the definition of a PL/SQL Record or SQL Table that is referenced in the API using a %TYPE, %ROWTYPE, or INDEX BY Table Type use the SQL*Plus DESCRIBE command. You can also refer to the Oracle Applications Electronic Technical Reference Manual [http://etrm.oracle.com] for this information.

    Using the Electronic Technical Reference Manual (eTRM)The eTRM is an easy to use web-based utility that provides technical reference information about the Oracle Applications data model of Oracle Applications. The eTRM dynamic reports provide information on the tables, views, indexes, and other structured data that make up the Oracle Applications E-Business suite. You must have an OracleMetaLink account [http://metalink.oracle.com] to access the eTRM [http://etrm.oracle.com].

    When using the eTRM to discover detailed API parameter information (for example, %ROWTYPE Record structure), make sure to browse the R12 FND Database Objects. The Oracle Process Manufacturing Quality Management Tables are listed under the GMD heading. For complete information on using the eTRM refer to the eTRM Online Help, or the following OracleMetaLink Articles:

    ETRM DIRECT ACCESS DOCUMENT (Article 150230.1)

    ETRM Troubleshooting guide (Article 278456.1)

    ETRM QUICK START GUIDE (Article 150268.1)

    Messages and ErrorsWhen an API runs, it returns one of the following status codes which you can write to a log:

    S for Success

  • 1-4 Oracle Process Manufacturing API Reference Guide

    E for Error

    U for Unexpected Status

    Q for could not calculate the total input and output quantities

    APIs also generate result messages. Programs calling APIs can then get the messages from the message list, and process them. These messages are displayed by issuing them to the user when calling the API from an interactive process, or writing them to database tables or log files when calling the API from a batch process.

    Messages are stored in an encoded format to let API callers determine message names using the standard functions provided by the message dictionary. The structure of the message list is private. Neither API developers nor API callers can access this list exceptby calling the API message utility routines.

    The following utility functions are defined in the FND_MSG_PUB package:

    Initialize - Initializes the API message list

    Add - Creates a message to the API message list

    Get - Retrieves a message from the API message list

    Count_Msg - Returns the number of messages in the API message list

    Delete - Removes one or more messages from the API message list

    Reset - Resets the index used in getting messages

    Count_And_Get - Returns the number of messages in the API message list. If this number is one, then it also returns the message data

    Refer to the Oracle Applications Developers Guide for complete documentation of these functions and procedures for usage information.

    To add a message to the API message list, use the regular message dictionary procedures FND_MESSAGE.SET_NAME and FND_MESSAGE.SET_TOKEN to set the message name and tokens on the message dictionary stack. Then call FND_MSG_PUB.ADD to fetch the messages off the message dictionary stack and add it to the API message list.

    To get a message from the API message list, API callers use the procedure FND_MSG_PUB.GET. This procedure operates in the following modes:

    First - Gets the first message in the API message list

    Next - Gets the next message in the API message list

    Last - Gets the last message in the API message list

  • Oracle Process Manufacturing APIs: General Information 1-5

    Previous - Gets the previous message in the API message list

    Specific - Gets a specific message from the API message list

    Error MessagesIf an API generates an error, then a detailed and translatable error message is returned. You can log and interpret these messages before rerunning the API. Use the Message Dictionary and the Messages Window to query, edit, and define error messages. Refer to the Oracle Applications Developers Guide for complete documentation on the Message Dictionary and the Messages Window. Edit your application messages before your routines call them from a form, and before your users request detailed messages from a form. Define your messages according to the Oracle Applications message standards in the Oracle Applications Developers Guide.

  • Oracle Process Manufacturing Cost Management APIs 2-1

    2Oracle Process Manufacturing Cost

    Management APIs

    Oracle Process Manufacturing Cost Management API PackagesThe following are the packages containing the OPM Cost management APIs. Confirm that these packages are loaded in your instance so that the interfacing subprograms can compile successfully.

    Package Name Package Description

    GMF_ALLOCATIONDEFINITION_PUB Public level package used for creating, updating and deleting allocation definitions.

    GMF_ACTUAL_COST_ADJUSTMENT_PUB Public level package used for creating, updating, and deleting the Actual Cost Adjustment related costs.

    GMF_ITEMCOST_PUB Public level package for OPM Item Cost API.

    GMF_LOTCOSTADJUSTMENT_PUB Public level package used for creating, updating, and deleting Lot Cost Adjustment related costs.

    GMF_BURDENDETAILS_PUB Public level package for creating, updating, deleting, and retrieving overhead details.

    GMF_RESOURCECOST_PUB Public level package for OPM Resource Cost API.

  • 2-2 Oracle Process Manufacturing API Reference Guide

    Oracle Process Manufacturing Cost Management API Package ListingsListed in this section are the subprograms for each Public Cost Management API Package.

    Tip: To list the parameters of an API, use the SQL*Plus command DESCRIBE. For example, DESCRIBE GMF_ALLOCATIONDEFINITION_PUB lists all of the parameter information for all the APIs in the GMF_ALLOCATIONDEFINITION_PUB package.

    For English language descriptions of the parameters of each API, refer to the Oracle Applications Integration Repository. For the structure of the database objects used to define an API's %ROWTYPE Record parameters and INDEX BY Table of Records parameters (previously known as PL/SQL Tables) refer to the Oracle Applications Electronic Technical Reference Manual (eTRM).

    Package: GMF_ALLOCATIONDEFINITION_PUB

    API Name Subprogram Name API Description

    Create Allocation Definitions API

    CREATE_ALLOCATION_DEFINITION

    Creates new allocation definitions in the Allocation Basis table.

    Delete Allocation Definitions API

    DELETE_ALLOCATION_DEFINITION

    Deletes allocation definitions from theAllocation Basis table.

    Update Allocation Definitions API

    UPDATE_ALLOCATION_DEFINITION

    Updates allocation definitions in the Allocation Basis table.

    The GMF_ALLOCATIONDEFINITION_PUB package defines and uses the following custom PL/SQL Record Type:

  • Oracle Process Manufacturing Cost Management APIs 2-3

    TYPE Allocation_Definition_Rec_Type IS RECORD( alloc_id NUMBER, alloc_code gl_aloc_mst.alloc_code%TYPE, legal_entity_id gmf_legal_entities.legal_entity_id%TYPE, alloc_method NUMBER, line_no NUMBER, item_id NUMBER, item_number mtl_item_flexfields.item_number%TYPE, basis_account_id gl_aloc_bas.basis_account_id%TYPE, basis_account_key gl_aloc_bas.basis_account_key%TYPE, balance_type NUMBER, bas_ytd_ptd NUMBER, basis_type NUMBER, fixed_percent NUMBER, cmpntcls_id NUMBER, cost_cmpntcls_code cm_cmpt_mst.cost_cmpntcls_code%TYPE, analysis_code cm_alys_mst.cost_analysis_code%TYPE, organization_id gl_aloc_bas.organization_id%TYPE, organization_code mtl_parameters.organization_code%TYPE, delete_mark gl_aloc_bas.delete_mark%TYPE := 0 , user_name fnd_user.user_name%TYPE);

    Package: GMF_ACTUAL_COST_ADJUSTMENT_PUB

    API Name Subprogram Name API Description

    Create Actual Cost Adjustment API

    CREATE_ACTUAL_COST_ADJUSTMENT

    Validates the input parameters and starts the private actual cost adjustment procedure for creating theactual cost adjustment.

    Delete Actual Cost Adjustment API

    DELETE_ACTUAL_COST_ADJUSTMENT

    Validates the input parameters and starts the private actual cost adjustment procedure for deleting theactual cost adjustment.

  • 2-4 Oracle Process Manufacturing API Reference Guide

    API Name Subprogram Name API Description

    Get Actual Cost Adjustment API

    GET_ACTUAL_COST_ADJUSTMENT

    Validates the input parameters and starts the private actual cost adjustment procedure to retrieve the actual cost adjustment.

    Update Actual Cost Adjustment API

    UPDATE_ACTUAL_COST_ADJUSTMENT

    Validates the input parameters and starts the private actual cost adjustment procedure to update the actual cost adjustment.

    The GMF_ACTUAL_COST_ADJUSTMENT_PUB package defines and uses the following custom PL/SQL Record Type:

  • Oracle Process Manufacturing Cost Management APIs 2-5

    TYPE ADJUSTMENT_REC_TYPE IS RECORD ( organization_id CM_ADJS_DTL.ORGANIZATION_ID%TYPE, organization_code MTL_PARAMETERS.ORGANIZATION_CODE%TYPE, inventory_item_id CM_ADJS_DTL.INVENTORY_ITEM_ID%TYPE, item_number MTL_ITEM_FLEXFIELDS.ITEM_NUMBER%TYPE, cost_type_id CM_ADJS_DTL.COST_TYPE_ID%TYPE, cost_mthd_code CM_MTHD_MST.COST_MTHD_CODE%TYPE, period_id CM_ADJS_DTL.PERIOD_ID%TYPE, calendar_code CM_CLDR_HDR_B.CALENDAR_CODE%TYPE, period_code CM_CLDR_DTL.PERIOD_CODE%TYPE, cost_cmpntcls_id CM_ADJS_DTL.COST_CMPNTCLS_ID%TYPE, cost_cmpntcls_code CM_CMPT_MST.COST_CMPNTCLS_CODE%TYPE, cost_analysis_code CM_ADJS_DTL.COST_ANALYSIS_CODE%TYPE, cost_adjust_id CM_ADJS_DTL.COST_ADJUST_ID%TYPE, adjust_qty CM_ADJS_DTL.ADJUST_QTY%TYPE, adjust_qty_uom CM_ADJS_DTL.ADJUST_QTY_UOM%TYPE, adjust_cost CM_ADJS_DTL.ADJUST_COST%TYPE, reason_code CM_ADJS_DTL.REASON_CODE%TYPE, adjust_status CM_ADJS_DTL.ADJUST_STATUS%TYPE, creation_date CM_ADJS_DTL.CREATION_DATE%TYPE, last_update_login CM_ADJS_DTL.LAST_UPDATE_LOGIN%TYPE, created_by CM_ADJS_DTL.CREATED_BY%TYPE, last_update_date CM_ADJS_DTL.LAST_UPDATE_DATE%TYPE, last_updated_by CM_ADJS_DTL.LAST_UPDATED_BY%TYPE, text_code CM_ADJS_DTL.TEXT_CODE%TYPE, trans_cnt CM_ADJS_DTL.TRANS_CNT%TYPE, delete_mark CM_ADJS_DTL.DELETE_MARK%TYPE, request_id CM_ADJS_DTL.REQUEST_ID%TYPE, program_application_id CM_ADJS_DTL.PROGRAM_APPLICATION_ID%TYPE, program_id CM_ADJS_DTL.PROGRAM_ID%TYPE, program_update_date CM_ADJS_DTL.PROGRAM_UPDATE_DATE%TYPE, attribute_category CM_ADJS_DTL.ATTRIBUTE_CATEGORY%TYPE, attribute1 CM_ADJS_DTL.ATTRIBUTE1%TYPE, attribute2 CM_ADJS_DTL.ATTRIBUTE2%TYPE, attribute3 CM_ADJS_DTL.ATTRIBUTE3%TYPE, attribute4 CM_ADJS_DTL.ATTRIBUTE4%TYPE, attribute5 CM_ADJS_DTL.ATTRIBUTE5%TYPE, attribute6 CM_ADJS_DTL.ATTRIBUTE6%TYPE, attribute7 CM_ADJS_DTL.ATTRIBUTE7%TYPE, attribute8 CM_ADJS_DTL.ATTRIBUTE8%TYPE, attribute9 CM_ADJS_DTL.ATTRIBUTE9%TYPE, attribute10 CM_ADJS_DTL.ATTRIBUTE10%TYPE, attribute11 CM_ADJS_DTL.ATTRIBUTE11%TYPE, attribute12 CM_ADJS_DTL.ATTRIBUTE12%TYPE, attribute13 CM_ADJS_DTL.ATTRIBUTE13%TYPE, attribute14 CM_ADJS_DTL.ATTRIBUTE14%TYPE, attribute15 CM_ADJS_DTL.ATTRIBUTE15%TYPE, attribute16 CM_ADJS_DTL.ATTRIBUTE16%TYPE, attribute17 CM_ADJS_DTL.ATTRIBUTE17%TYPE, attribute18 CM_ADJS_DTL.ATTRIBUTE18%TYPE, attribute19 CM_ADJS_DTL.ATTRIBUTE19%TYPE, attribute20 CM_ADJS_DTL.ATTRIBUTE20%TYPE, attribute21 CM_ADJS_DTL.ATTRIBUTE21%TYPE, attribute22 CM_ADJS_DTL.ATTRIBUTE22%TYPE, attribute23 CM_ADJS_DTL.ATTRIBUTE23%TYPE, attribute24 CM_ADJS_DTL.ATTRIBUTE24%TYPE, attribute25 CM_ADJS_DTL.ATTRIBUTE25%TYPE, attribute26 CM_ADJS_DTL.ATTRIBUTE26%TYPE, attribute27 CM_ADJS_DTL.ATTRIBUTE27%TYPE,

  • 2-6 Oracle Process Manufacturing API Reference Guide

    attribute28 CM_ADJS_DTL.ATTRIBUTE28%TYPE, attribute29 CM_ADJS_DTL.ATTRIBUTE29%TYPE, attribute30 CM_ADJS_DTL.ATTRIBUTE30%TYPE, adjustment_ind CM_ADJS_DTL.ADJUSTMENT_IND%TYPE, subledger_ind CM_ADJS_DTL.SUBLEDGER_IND%TYPE, adjustment_date CM_ADJS_DTL.ADJUSTMENT_DATE%TYPE, user_name FND_USER.USER_NAME%TYPE );

    Package: GMF_ITEMCOST_PUB

    API Name Subprogram Name API Description

    Create Item Cost API CREATE_ITEM_COST Creates a new item cost in the Cost Details table.

    Delete Item Cost API DELETE_ITEM_COST Deletes an item cost from the Cost Details table.

    Retrieve Item Cost API GET_ITEM_COST Retrieves an item cost from the Cost Details table.

    Update Item Cost API UPDATE_ITEM_COST Updates an item cost in the Cost Details table.

    The GMF_ITEMCOST_PUB package defines and uses the following custom PL/SQL Record Types and INDEX BY table Types:TYPE header_rec_type IS RECORD ( period_id cm_cmpt_dtl.period_id%TYPE, calendar_code cm_cldr_hdr_b.calendar_code%TYPE, period_code cm_cldr_dtl.period_code%TYPE, cost_type_id cm_cmpt_dtl.cost_type_id%TYPE, cost_mthd_code cm_mthd_mst.cost_mthd_code%TYPE, organization_id cm_cmpt_dtl.organization_id%TYPE, organization_code mtl_parameters.organization_code%TYPE, inventory_item_id cm_cmpt_dtl.inventory_item_id%TYPE, item_number mtl_item_flexfields.item_number%TYPE, user_name fnd_user.user_name%TYPE );

  • Oracle Process Manufacturing Cost Management APIs 2-7

    TYPE this_level_dtl_rec_type IS RECORD ( cmpntcost_id NUMBER, cost_cmpntcls_id NUMBER, cost_cmpntcls_code cm_cmpt_mst.cost_cmpntcls_code%TYPE, cost_analysis_code cm_cmpt_dtl.cost_analysis_code%TYPE, cmpnt_cost NUMBER, burden_ind NUMBER, total_qty NUMBER, costcalc_orig NUMBER, rmcalc_type NUMBER, delete_mark NUMBER, attribute1 cm_cmpt_dtl.attribute1%TYPE, attribute2 cm_cmpt_dtl.attribute2%TYPE, attribute3 cm_cmpt_dtl.attribute3%TYPE, attribute4 cm_cmpt_dtl.attribute4%TYPE, attribute5 cm_cmpt_dtl.attribute5%TYPE, attribute6 cm_cmpt_dtl.attribute6%TYPE, attribute7 cm_cmpt_dtl.attribute7%TYPE, attribute8 cm_cmpt_dtl.attribute8%TYPE, attribute9 cm_cmpt_dtl.attribute9%TYPE, attribute10 cm_cmpt_dtl.attribute10%TYPE, attribute11 cm_cmpt_dtl.attribute11%TYPE, attribute12 cm_cmpt_dtl.attribute12%TYPE, attribute13 cm_cmpt_dtl.attribute13%TYPE, attribute14 cm_cmpt_dtl.attribute14%TYPE, attribute15 cm_cmpt_dtl.attribute15%TYPE, attribute16 cm_cmpt_dtl.attribute16%TYPE, attribute17 cm_cmpt_dtl.attribute17%TYPE, attribute18 cm_cmpt_dtl.attribute18%TYPE, attribute19 cm_cmpt_dtl.attribute19%TYPE, attribute20 cm_cmpt_dtl.attribute20%TYPE, attribute21 cm_cmpt_dtl.attribute21%TYPE, attribute22 cm_cmpt_dtl.attribute22%TYPE, attribute23 cm_cmpt_dtl.attribute23%TYPE, attribute24 cm_cmpt_dtl.attribute24%TYPE, attribute25 cm_cmpt_dtl.attribute25%TYPE, attribute26 cm_cmpt_dtl.attribute26%TYPE, attribute27 cm_cmpt_dtl.attribute27%TYPE, attribute28 cm_cmpt_dtl.attribute28%TYPE, attribute29 cm_cmpt_dtl.attribute29%TYPE, attribute30 cm_cmpt_dtl.attribute30%TYPE, attribute_category cm_cmpt_dtl.attribute_category%TYPE );

    TYPE this_level_dtl_tbl_type IS TABLE OF this_level_dtl_rec_type INDEX BY BINARY_INTEGER;

    TYPE lower_level_dtl_rec_type IS RECORD ( cmpntcost_id NUMBER, cost_cmpntcls_id NUMBER, cost_cmpntcls_code cm_cmpt_mst.cost_cmpntcls_code%TYPE, cost_analysis_code cm_cmpt_dtl.cost_analysis_code%TYPE, cmpnt_cost NUMBER, delete_mark NUMBER );

    TYPE lower_level_dtl_tbl_type IS TABLE OF lower_level_dtl_rec_type INDEX BY BINARY_INTEGER;

  • 2-8 Oracle Process Manufacturing API Reference Guide

    TYPE costcmpnt_ids_rec_type IS RECORD ( cost_cmpntcls_id NUMBER, cost_analysis_code cm_cmpt_dtl.cost_analysis_code%TYPE, cost_level NUMBER, cmpntcost_id NUMBER );

    TYPE costcmpnt_ids_tbl_type IS TABLE OF costcmpnt_ids_rec_type INDEX BY BINARY_INTEGER;

    Package: GMF_LOTCOSTADJUSTMENT_PUB

    API Name Subprogram Name API Description

    Create Lot Cost Adjustment API

    CREATE_LOT_COST_ADJUSTMENT

    Creates lot cost adjustments in the LotCost Adjustment Basis table.

    Delete Lot Cost Adjustment API

    DELETE_LOT_COST_ADJUSTMENT

    Deletes lot cost adjustments from the Lot Cost Adjustment Basis table.

    Get Lot Cost AdjustmentAPI

    GET_LOT_COST_ADJUSTMEN

    Retrieves the lot cost adjustment details.

    Update Lot Cost Adjustment API

    UPDATE_LOT_COST_ADJUSTMENT

    Updates lot cost adjustments in the Lot Cost Adjustment Basis table.

    The GMF_LOTCOSTADJUSTMENT_PUB package defines and uses the following custom PL/SQL Record Types and INDEX BY table Types:

  • Oracle Process Manufacturing Cost Management APIs 2-9

    TYPE Lc_Adjustment_Header_Rec_TypeISRECORD(adjustment_id gmf_lot_cost_adjustments.adjustment_id%TYPE, legal_entity_id gmf_fiscal_policies.legal_entity_id%TYPE, cost_type_id cm_mthd_mst.cost_type_id%TYPE, cost_mthd_code cm_mthd_mst.cost_mthd_code%TYPE, item_id mtl_item_flexfields.inventory_item_id%TYPE, item_number mtl_item_flexfields.item_number%TYPE, organization_id mtl_parameters.organization_id%TYPE, organization_code mtl_parameters.organization_code%TYPE, lot_number mtl_lot_numbers.lot_number%TYPE, adjustment_date DATE, reason_code cm_reas_cds.reason_code%TYPE, delete_mark gmf_lot_cost_adjustments.delete_mark%TYPE, ATTRIBUTE1 VARCHAR2(240), ATTRIBUTE2 VARCHAR2(240), ATTRIBUTE3 VARCHAR2(240), ATTRIBUTE4 VARCHAR2(240), ATTRIBUTE5 VARCHAR2(240), ATTRIBUTE6 VARCHAR2(240), ATTRIBUTE7 VARCHAR2(240), ATTRIBUTE8 VARCHAR2(240), ATTRIBUTE9 VARCHAR2(240), ATTRIBUTE10 VARCHAR2(240), ATTRIBUTE11 VARCHAR2(240), ATTRIBUTE12 VARCHAR2(240), ATTRIBUTE13 VARCHAR2(240), ATTRIBUTE14 VARCHAR2(240), ATTRIBUTE15 VARCHAR2(240), ATTRIBUTE16 VARCHAR2(240), ATTRIBUTE17 VARCHAR2(240), ATTRIBUTE18 VARCHAR2(240), ATTRIBUTE19 VARCHAR2(240), ATTRIBUTE20 VARCHAR2(240), ATTRIBUTE21 VARCHAR2(240), ATTRIBUTE22 VARCHAR2(240), ATTRIBUTE23 VARCHAR2(240), ATTRIBUTE24 VARCHAR2(240), ATTRIBUTE25 VARCHAR2(240), ATTRIBUTE26 VARCHAR2(240), ATTRIBUTE27 VARCHAR2(240), ATTRIBUTE28 VARCHAR2(240), ATTRIBUTE29 VARCHAR2(240), ATTRIBUTE30 VARCHAR2(240), ATTRIBUTE_CATEGORY VARCHAR2(30), user_name fnd_user.user_name%TYPE);

  • 2-10 Oracle Process Manufacturing API Reference Guide

    TYPE lc_adjustment_dtls_Rec_TypeISRECORD(adjustment_dtl_id gmf_lot_cost_adjustment_dtls.adjustment_dtl_id%TYPE, adjustment_id gmf_lot_cost_adjustment_dtls.adjustment_id%TYPE, cost_cmpntcls_id cm_cmpt_mst.cost_cmpntcls_id%TYPE, cost_cmpntcls_code cm_cmpt_mst.cost_cmpntcls_code%TYPE, cost_analysis_code cm_alys_mst.cost_analysis_code%TYPE, adjustment_cost gmf_lot_cost_adjustment_dtls.adjustment_cost%TYPE, TEXT_CODE NUMBER(22));

    TYPE lc_adjustment_dtls_Tbl_TypeISTABLE OF lc_adjustment_dtls_Rec_TypeINDEX BY BINARY_INTEGER;

    Package: GMF_BURDENDETAILS_PUB

    API Name Subprogram Name API Description

    Create Overhead Details API

    CREATE_BURDEN_DETAILS

    Creates a new overhead detail in the Overhead Details table.

    Delete Overhead Details API

    DELETE_BURDEN_DETAILS

    Deletes an overhead detail from the Overhead Details table.

    Retrieve Overhead Details API

    GET_BURDEN_DETAILS Retrieves an overhead detail from the Overhead Details table.

    Update Overhead Details API

    UPDATE_BURDEN_DETAILS

    Updates the overhead detail in the Overhead Details table.

    The GMF_BURDENDETAILS_PUB package defines and uses the following custom PL/SQL Record Types and INDEX BY table Types:

  • Oracle Process Manufacturing Cost Management APIs 2-11

    TYPE Burden_Header_Rec_Type IS RECORD( organization_id cm_brdn_dtl.organization_id%TYPE , organization_code mtl_parameters.organization_code%TYPE , inventory_item_id mtl_item_flexfields.inventory_item_id%TYPE , item_number mtl_item_flexfields.item_number%TYPE , period_id cm_brdn_dtl.period_id%TYPE , calendar_code cm_brdn_dtl.calendar_code%TYPE , period_code cm_brdn_dtl.period_code%TYPE , cost_type_id cm_brdn_dtl.cost_type_id%TYPE , cost_mthd_code cm_brdn_dtl.cost_mthd_code%TYPE , user_name fnd_user.user_name%TYPE );

    TYPE Burden_Dtl_Rec_Type IS RECORD( burdenline_id NUMBER , resources cr_rsrc_mst.resources%TYPE , cost_cmpntcls_id NUMBER , cost_cmpntcls_code cm_cmpt_mst.cost_cmpntcls_code%TYPE , cost_analysis_code cm_alys_mst.cost_analysis_code%TYPE , burden_usage NUMBER , item_qty NUMBER , item_uom cm_brdn_dtl.item_uom%TYPE , burden_qty NUMBER , burden_uom cm_brdn_dtl.burden_uom%TYPE , burden_factor NUMBER , delete_mark cm_brdn_dtl.delete_mark%TYPE := 0);

  • 2-12 Oracle Process Manufacturing API Reference Guide

    TYPE Burden_Dtl_Tbl_Type IS TABLE OF Burden_Dtl_Rec_Type INDEX BY BINARY_INTEGER;

    TYPE Burdenline_Ids_Rec_Type IS RECORD( resources cm_rsrc_dtl.resources%TYPE , cost_cmpntcls_id NUMBER , cost_analysis_code cm_brdn_dtl.cost_analysis_code%TYPE , burdenline_id NUMBER);

    TYPE Burdenline_Ids_Tbl_Type IS TABLE OF Burdenline_Ids_Rec_Type INDEX BY BINARY_INTEGER;

    Package: GMF_RESOURCECOST_PUB

    API Name Subprogram Name API Description

    Create Resource Cost API

    CREATE_RESOURCE_COST

    Creates a new resource cost in the Resource Cost Details table.

    Delete Resource Cost API

    DELETE_RESOURCE_COST

    Deletes a resource cost from the Resource Cost Details table.

    Retrieve Resource Cost API

    GET_RESOURCE_COST Retrieves a resource cost from the Resource Cost Details table.

    Update Resource Cost API

    UPDATE_RESOURCE_COST

    Updates a resource cost in the Resource Cost Details table.

    The GMF_RESOURCECOST_PUB package defines and uses the following custom PL/SQL Record Type:TYPE Resource_Cost_Rec_Type IS RECORD( resources cm_rsrc_dtl.resources%TYPE, legal_entity_id cm_rsrc_dtl.legal_entity_id%TYPE , organization_id cm_rsrc_dtl.organization_id%TYPE , organization_code mtl_parameters.organization_code%TYPE , period_id cm_rsrc_dtl.period_id%TYPE , calendar_code cm_rsrc_dtl.calendar_code%TYPE , period_code cm_rsrc_dtl.period_code%TYPE , cost_type_id cm_rsrc_dtl.cost_type_id%TYPE , cost_mthd_code cm_rsrc_dtl.cost_mthd_code%TYPE, usage_uom cm_rsrc_dtl.usage_uom%TYPE, nominal_cost cm_rsrc_dtl.nominal_cost%TYPE, delete_mark cm_rsrc_dtl.delete_mark%TYPE := 0, user_name fnd_user.user_name%TYPE);

  • Oracle Process Manufacturing Process Planning APIs 3-1

    3Oracle Process Manufacturing Process

    Planning APIs

    Oracle Process Manufacturing Process Planning API PackagesThe following are the packages containing the OPM Process Planning APIs. Confirm that these packages are loaded in your instance so that the interfacing subprograms can compile successfully.

    Package Name Package Description

    GMP_RESOURCES_PUB Public level package used for creating, updating, and deleting generic resources in OPM.

    GMP_RESOURCE_DTL_PUB Public level package used for creating, updating, and deleting plant resources in OPM.

    GMP_RSRC_AVL_PKG Public level package used for resource availability calculations.

    GMP_CALENDAR_API Public level package used for fetching data from the OPM Shop Calendar. These APIs are used by OPM Process Execution.

    Oracle Process Manufacturing Process Planning API Package ListingsListed in this section are the subprograms for each Public Process Planning API Package.

  • 3-2 Oracle Process Manufacturing API Reference Guide

    Tip: To list the parameters of an API, use the SQL*Plus command DESCRIBE. For example, DESCRIBE GMP_RESOURCES_PUB lists allof the parameter information for all the APIs in the GMP_RESOURCES_PUB package.

    For English language descriptions of the parameters of each API, refer to the Oracle Applications Integration Repository. For the structure of the database objects used to define an API's %ROWTYPE Record parameters and INDEX BY Table of Records parameters (previously known as PL/SQL Tables) refer to the Oracle Applications Electronic Technical Reference Manual (eTRM).

    Package: GMP_RESOURCES_PUB

    API Name Subprogram Name API Description

    Check Data API CHECK_DATA Validates the resource data.

    Delete Resource API DELETE_RESOURCES Deletes an OPM resource.

    Insert Resource API INSERT_RESOURCES Creates a generic resource based on the data entered after validating it.

    Update Resource API UPDATE_RESOURCES Updates the generic resource record with entered values.

    The GMP_RESOURCES_PUB package defines and uses the following custom PL/SQL Record Types and INDEX BY Table of Records Types:TYPE gmp_resources_tab IS TABLE OF cr_rsrc_mst%ROWTYPE INDEX BY BINARY_INTEGER;

    TYPE gmp_resources_dtl_tab IS TABLE OF cr_rsrc_dtl%ROWTYPE INDEX BY BINARY_INTEGER;

    TYPE update_table_rec_type IS RECORD ( p_col_to_update VARCHAR2(30) ,p_value VARCHAR2(30) );

    TYPE update_tbl_type IS TABLE OF update_table_rec_type INDEX BY BINARY_INTEGER;

  • Oracle Process Manufacturing Process Planning APIs 3-3

    Package: GMP_RESOURCE_DTL_PUB

    API Name Subprogram Name API Description

    Check Data API CHECK_DATA Validates the inserted plant resource data.

    Check Instance Data API CHECK_INSTANCE_DATA

    Checks the Resource Instance data before insertion.

    Delete Resource API DELETE_RESOURCES Deletes a resource row from the Plant Resource table.

    Insert Detail Rows API INSERT_DETAIL_ROWS Inserts a detail row in the Plant Resource table.

    Insert Resource Detail API

    INSERT_RESOURCES_DTL

    Creates a new plant resource.

    Insert Resource Instance API

    INSERT_RESOURCE_INSTANCE

    Inserts a resource instance row in the Plant Resource Instance table.

    Update Detail Rows API UPDATE_DETAIL_ROWS Updates a detail row in the Plant Resource table.

    Update Instances API UPDATE_INSTANCES Updates the instance data in the Resource Instance table.

    Update Instance Row API

    UPDATE_INSTANCE_ROW

    Updates the instance row in the Resource Instance table.

    Update Resource Detail API

    UPDATE_RESOURCE_DTL

    Updates a Plant Resource.

    The GMP_RESOURCE_DTL_PUB package defines and uses the following custom PL/SQL Record Types and INDEX BY Table of Records Types:TYPE update_table_rec_type IS RECORD ( p_col_to_update VARCHAR2(30) ,p_value VARCHAR2(30) );

    TYPE update_tbl_type IS TABLE OF update_table_rec_type INDEX BY BINARY_INTEGER;

  • 3-4 Oracle Process Manufacturing API Reference Guide

    TYPE resource_instances_rec IS RECORD ( RESOURCE_ID NUMBER, INSTANCE_ID NUMBER, INSTANCE_NUMBER NUMBER, VENDOR_ID NUMBER, MODEL_NUMBER VARCHAR2(30), SERIAL_NUMBER VARCHAR2(30), TRACKING_NUMBER VARCHAR2(30), EFF_START_DATE DATE, EFF_END_DATE DATE, LAST_MAINTENANCE_DATE DATE, MAINTENANCE_INTERVAL NUMBER, INACTIVE_IND NUMBER, CALIBRATION_FREQUENCY NUMBER, CALIBRATION_PERIOD VARCHAR2(4), CALIBRATION_ITEM_ID NUMBER, LAST_CALIBRATION_DATE DATE, NEXT_CALIBRATION_DATE DATE, LAST_CERTIFICATION_DATE DATE, CERTIFIED_BY VARCHAR2(32), CREATION_DATE DATE, CREATED_BY NUMBER, LAST_UPDATE_DATE DATE, LAST_UPDATED_BY NUMBER, LAST_UPDATE_LOGIN NUMBER ) ;

    TYPE resource_instances_tbl IS TABLE OF resource_instances_rec INDEX BY BINARY_INTEGER;

    Package: GMP_RSRC_AVL_PKG

    API Name Subprogram Name API Description

    Resource Availability Calculations

    RSRC_AVL Returns the available hours for a resource based on the calendar specified during the period after netting out unavailability from the calendar.

    Resource Availability Calculations

    RSRC_AVL Returns the available hours for a resource based on the organization calendar specified during the period after netting out unavailability from the calendar.

    The GMP_RSRC_AVL_PKG package defines and uses the following Variables, custom PL/SQL Record Types, Records, and INDEX BY Table of Records Types:

  • Oracle Process Manufacturing Process Planning APIs 3-5

    gmp_setup BOOLEAN:=FALSE;gmp_api_version NUMBER;gmp_user_id NUMBER;gmp_user_name VARCHAR2(50);gmp_login_id NUMBER;gmp_timestamp DATE;

    TYPE out_cal_shift_typ is RECORD( out_resource_count number, out_cal_date date, out_shift_num number, out_cal_from_date date, out_cal_to_date date);

    out_calendar_record out_cal_shift_typ;

    TYPE cal_tab2 is table of out_cal_shift_typ index by BINARY_INTEGER;out_cal_rec cal_tab2;out_rec cal_tab2;

    Package: GMP_CALENDAR_API

    API Name Subprogram Name API Description

    Get All Dates API GET_ALL_DATES Returns the workdays and days not worked between the specified Start and End dates in the calendar.

    Get Contiguous Periods API

    GET_CONTIGUOUS_PERIODS

    Retrieves contiguous periods of time that add up to the required duration. If the Start date is entered, then the duration is calculated beginning with the start date.

    Get Workday Details API

    GET_WORKDAY_DETAILS

    Returns the workday details.

    Get Workdays API GET_WORK_DAYS Returns the workdays between the specified Start and End dates in the calendar.

    Is Working Day API IS_WORKING_DAY Uses Calendar_id and date to determine if the date entered is a workday.

    Is Working Daytime API IS_WORKING_DAYTIME Uses date and time entered to determine if they are within or outside of the calendar workday.

  • 3-6 Oracle Process Manufacturing API Reference Guide

    The GMP_CALENDAR_API package defines and uses the following custom PL/SQL Record Types and INDEX BY Table of Records Types:TYPE contig_time_rec IS RECORD( start_date DATE, duration NUMBER, end_date DATE);

    TYPE contig_period_tbl IS TABLE OF contig_time_rec INDEX BY BINARY_INTEGER;

    TYPE date_rec IS RECORD ( cal_date DATE, is_workday NUMBER );TYPE date_tbl IS TABLE OF date_rec INDEX BY BINARY_INTEGER;

    TYPE workday_rec IS RECORD( workday DATE);

    TYPE workdays_tbl IS TABLE OF workday_rec INDEX BY BINARY_INTEGER;

    TYPE shopday_dtl_rec IS RECORD ( shift_no NUMBER, shift_start NUMBER , shift_duration NUMBER );

    TYPE shopday_dtl_tbl IS TABLE OF shopday_dtl_rec INDEX BY BINARY_INTEGER;

  • Oracle Process Manufacturing Quality Management APIs 4-1

    4Oracle Process Manufacturing Quality

    Management APIs

    Oracle Process Manufacturing (OPM) Quality Management API PackagesThe following are packages that contain the OPM Quality Management APIs. Confirm that these packages are loaded in your instance so that the interfacing subprograms can compile successfully.

    Package Name Package Description

    GMD_SPEC_PUB Public level package used for creating, modifying, or deleting specifications.

    GMD_SPEC_VRS_PUB Public level specification validity rules package supplying APIs to create or delete specifications and associated specification validity rules.

    GMD_QC_TESTS_PUB Public level QC Tests package containing validation procedures and functions for verifying test and results data.

    GMD_SAMPLES_PUB Public level samples package supplying APIs to create or delete samples and associated entities.

    GMD_RESULTS_PUB Public level results package supplying APIs torecord results and add tests to a sample.

  • 4-2 Oracle Process Manufacturing API Reference Guide

    Package Name Package Description

    GMD_OUTBOUND_APIS_PUB Public level QM package containing APIs to export information to third party products.

    Quality Management API Package ListingsListed in this section are the subprograms for each Public Quality Management API Package. To list the parameters of an API, use the SQL*Plus command DESCRIBE. For example, DESCRIBE GMD_SPEC_PUB lists all of the parameter information for all theAPIs in the GMD_SPEC_PUB package.

    For English language descriptions of the parameters of each API, refer to the Oracle Applications Integration Repository. For the structure of the database objects used to define an API's %ROWTYPE Record parameters and INDEX BY Table of Records parameters (previously called PL/SQL Tables) refer to the Oracle Applications Electronic Technical Reference Manual (eTRM).

    Package: GMD_SPEC_PUB

    API Name Subprogram Name API Description

    Create Specification CREATE_SPEC Inserts a specification into the GMD_SPECIFICATIONS table. Inserts one or more specification tests into the GMD_SPEC_TESTS table.

    Delete Specification DELETE_SPEC Deletes a row in the GMD_SPECIFICATIONS table.

    Delete Specification Tests DELETE_SPEC_TESTS Deletes a row in the GMD_SPEC_TESTS table.

    The GMD_SPEC_PUB package defines and uses the following INDEX BY Table of Records Types:TYPE SPEC_TESTS_TBL IS TABLE OF GMD_SPEC_TESTS%ROWTYPE INDEX BY BINARY_INTEGER;

    TYPE INVENTORY_SPEC_VRS_TBL IS TABLE OF GMD_INVENTORY_SPEC_VRS%ROWTYPE INDEX BY BINARY_INTEGER;

  • Oracle Process Manufacturing Quality Management APIs 4-3

    Package: GMD_SPEC_VRS_PUB

    API Name Subprogram Name API Description

    Create Inventory SpecificationValidity Rules

    CREATE_INVENTORY_SPEC_VRS

    Inserts one or more rows into the GMD_INVENTORY_SPEC_VRS table.

    Create WIP Specification Validity Rules

    CREATE_WIP_SPEC_VRS Inserts one or more rows into the GMD_WIP_SPEC_VRS table.

    Create Customer SpecificationValidity Rules

    CREATE_CUSTOMER_SPEC_VRS

    Inserts one or more rows into the GMD_CUSTOMER_SPEC_VRS table.

    Create Supplier Specification Validity Rules

    CREATE_SUPPLIER_SPEC_VRS

    Inserts one or more rows into the GMD_SUPPLIER_SPEC_VRS table.

    Create Monitoring Specification Validity Rules

    CREATE_MONITORING_SPEC_VRS

    Inserts a row into the GMD_MONITORING_SPEC_VRS table.

    Create Inventory SpecificationValidity Rules

    DELETE_INVENTORY_SPEC_VRS

    Deletes one or more rows in the GMD_INVENTORY_SPEC_VRS table.

    Create WIP Specification Validity Rules

    DELETE_WIP_SPEC_VRS Deletes one or more rows in the GMD_WIP_SPEC_VRS table.

    Create Customer SpecificationValidity Rules

    DELETE_CUSTOMER_SPEC_VRS

    Deletes one or more rows in the GMD_CUSTOMER_SPEC_VRS table.

    Create Supplier Specification Validity Rules

    DELETE_SUPPLIER_SPEC_VRS

    Deletes one or more rows in the GMD_SUPPLIER_SPEC_VRS table.

  • 4-4 Oracle Process Manufacturing API Reference Guide

    API Name Subprogram Name API Description

    Create Monitoring Specification Validity Rules

    DELETE_MONITORING_SPEC_VRS

    Deletes one or more rows in the GMD_MONITORING_SPEC_VRS table.

    The GMD_SPEC_VRS_PUB package defines and uses the following INDEX BY Table of Records Types:TYPE INVENTORY_SPEC_VRS_TBL IS TABLE OF GMD_INVENTORY_SPEC_VRS%ROWTYPE INDEX BY BINARY_INTEGER;

    TYPE WIP_SPEC_VRS_TBL IS TABLE OF GMD_WIP_SPEC_VRS%ROWTYPE INDEX BY BINARY_INTEGER;

    TYPE CUSTOMER_SPEC_VRS_TBL IS TABLE OF GMD_CUSTOMER_SPEC_VRS%ROWTYPE INDEX BY BINARY_INTEGER;

    TYPE SUPPLIER_SPEC_VRS_TBL IS TABLE OF GMD_SUPPLIER_SPEC_VRS%ROWTYPE INDEX BY BINARY_INTEGER;

    TYPE MONITORING_SPEC_VRS_TBL IS TABLE OF GMD_MONITORING_SPEC_VRS%ROWTYPE INDEX BY BINARY_INTEGER;

    Package: GMD_QC_TESTS_PUB

    API Name Subprogram Name API Description

    Create Tests CREATE_TESTS Creates a new test, new test values, or new customer tests.

    Delete Test Headers DELETE_TEST_HEADERS Logically deletes the entity test header from the GMD_QC_TESTS table by setting the DELETE_MARK column to 1.

    Delete Test Values DELETE_TEST_VALUES Deletes one or more rows in the GMD_QC_TEST_VALUEStable.

    Delete Customer Tests DELETE_CUSTOMER_TESTS Deletes one or more rows in the GMD_CUSTOMER_TESTS table.

  • Oracle Process Manufacturing Quality Management APIs 4-5

    The GMD_QC_TESTS_PUB package defines and uses the following INDEX BY Table of Records Types:TYPE QC_TEST_VALUES_TBL IS TABLE OF GMD_QC_TEST_VALUES%ROWTYPE INDEX BY BINARY_INTEGER;

    TYPE QC_CUST_TESTS_TBL IS TABLE OF GMD_CUSTOMER_TESTS%ROWTYPE INDEX BY BINARY_INTEGER;

    Package: GMD_SAMPLES_PUB

    API Name Subprogram Name API Description

    Create Samples CREATE_SAMPLES Inserts master-detail rows into the GMD_SAMPLES, GMD_SAMPLING_EVENT, GMD_SAMPLE_SPEC_DISP, GMD_EVENT_SPEC_DISP,GMD_RESULTS, and GMD_SPEC RESULTS tables.

    Find Matching Specification FIND_MATCHING_SPEC This program for validation purposes. It is not intended for standalone use.

    Delete Samples DELETE_SAMPLES This procedure lets you logically delete one or more rows in the GMD_SAMPLES table by setting the DELETE_MARK column to 1.

    Validate Item Controls VALIDATE_ITEM_CONTROLS

    This program for validation purposes. It is not intended for standalone use.

    Validate Inventory Sample VALIDATE_INV_SAMPLE This program for validation purposes. It is not intended for standalone use.

    Validate Customer Sample VALIDATE_CUST_SAMPLE This program for validation purposes. It is not intended for standalone use.

    Validate WIP Sample VALIDATE_WIP_SAMPLE This program for validation purposes. It is not intended for standalone use.

  • 4-6 Oracle Process Manufacturing API Reference Guide

    API Name Subprogram Name API Description

    Validate Sample VALIDATE_SAMPLE This program for validation purposes. It is not intended for standalone use.

    Validate Location Sample VALIDATE_LOCATION_SAMPLE

    This program for validation purposes. It is not intended for standalone use.

    Validate Resource Sample VALIDATE_RESOURCE_SAMPLE

    This program for validation purposes. It is not intended for standalone use.

    Validate Stability Sample VALIDATE_STABILITY_SAMPLE

    This program for validation purposes. It is not intended for standalone use.

    Package: GMD_RESULTS_PUB

    API Name Subprogram Name API Description

    Validate Input VALIDATE_INPUT This program for validation purposes. It is not intended for standalone use.

    Get Result Information GET_RESULT_INFORMATION

    This program for validation purposes. It is not intended for standalone use.

    Record Results RECORD_RESULTS Modifies a row in GMD_RESULTS. Analyzes input to determine if Result is considered in specification or out of specification and updates the IN_SPEC_IND column of the GMD_SPEC_RESULTS table accordingly.

  • Oracle Process Manufacturing Quality Management APIs 4-7

    API Name Subprogram Name API Description

    Add Tests to Sample ADD_TESTS_TO_SAMPLE Adds tests to an existing sample. Creates rows in the GMD_RESULTS and GMD_SPEC_RESULTS tables.

    The GMD_RESULTS_PUB package defines and uses the following custom Record Type:TYPE RESULTS_REC IS RECORD( UPDATE_INSTANCE_ID GMD_RESULTS.UPDATE_INSTANCE_ID%TYPE, RESULT_ID GMD_RESULTS.RESULT_ID%TYPE, SAMPLE_ID GMD_RESULTS.SAMPLE_ID%TYPE, SAMPLE_NO GMD_SAMPLES.SAMPLE_NO%TYPE, ORGANIZATION_ID GMD_SAMPLES.ORGANIZATION_ID%TYPE, LAB_ORGANIZATION_ID GMD_RESULTS.LAB_ORGANIZATION_ID%TYPE, TEST_CODE GMD_QC_TESTS.TEST_CODE%TYPE, TEST_ID GMD_RESULTS.TEST_ID%TYPE, TEST_REPLICATE_CNT GMD_RESULTS.TEST_REPLICATE_CNT%TYPE, RESULT_VALUE VARCHAR2(80), RESULT_DATE GMD_RESULTS.RESULT_DATE%TYPE, TEST_KIT_INV_ITEM_ID GMD_RESULTS.TEST_KIT_INV_ITEM_ID%TYPE, TEST_KIT_LOT_NUMBER GMD_RESULTS.TEST_KIT_LOT_NUMBER%TYPE, TESTER GMD_RESULTS.TESTER%TYPE, TESTER_ID GMD_RESULTS.TESTER_ID%TYPE, TEST_PROVIDER_CODE GMD_RESULTS.TEST_PROVIDER_CODE%TYPE, TEST_PROVIDER_ID GMD_RESULTS.TEST_PROVIDER_ID%TYPE, SEQ GMD_RESULTS.SEQ%TYPE, IN_SPEC GMD_SPEC_RESULTS.IN_SPEC_IND%TYPE, ASSAY_RETEST GMD_RESULTS.ASSAY_RETEST%TYPE, EVAL_IND GMD_SPEC_RESULTS.EVALUATION_IND%TYPE, ACTION_CODE GMD_SPEC_RESULTS.ACTION_CODE%TYPE, AD_HOC_PRINT_ON_COA_IND GMD_RESULTS.AD_HOC_PRINT_ON_COA_IND%TYPE, PLANNED_RESOURCE GMD_RESULTS.PLANNED_RESOURCE%TYPE, PLANNED_RESOURCE_INSTANCE GMD_RESULTS.PLANNED_RESOURCE_INSTANCE%TYPE, ACTUAL_RESOURCE GMD_RESULTS.ACTUAL_RESOURCE%TYPE, ACTUAL_RESOURCE_INSTANCE GMD_RESULTS.ACTUAL_RESOURCE_INSTANCE%TYPE, PLANNED_RESULT_DATE GMD_RESULTS.PLANNED_RESULT_DATE%TYPE, TEST_BY_DATE GMD_RESULTS.TEST_BY_DATE%TYPE, TEST_QTY GMD_RESULTS.TEST_QTY%TYPE, TEST_QTY_UOM GMD_RESULTS.TEST_QTY_UOM%TYPE, RESERVE_SAMPLE_ID GMD_RESULTS.RESERVE_SAMPLE_ID%TYPE, CONSUMED_QTY GMD_RESULTS.CONSUMED_QTY%TYPE);

    Package: GMD_OUTBOUND_APIS_PUB

    API Name Subprogram Name API Description

    Fetch Results FETCH_RESULTS Retrieves sample groups fromthe GMD_RESULTS table.

  • 4-8 Oracle Process Manufacturing API Reference Guide

    API Name Subprogram Name API Description

    Fetch Composite Results FETCH_COMPOSITE_RESULTS

    Retrieves composite results from the GMD_COMPOSITE_RESULTS, GMD_COMPOSITE_SPEC_DISP, and GMD_COMPOSITE_RESULT_ASSOC tables.

    Fetch Samples FETCH_SAMPLES Retrieves sample groups fromthe GMD_SAMPLES and GMD_SAMPLE_SPEC_DISP tables.

    Fetch Test Methods FETCH_TEST_METHODS Retrieves test method data from the GMD_TEST_METHODS table.

    Fetch Tests FETCH_TESTS Retrieves tests from the GMD_TEST_QC_TESTS, GMD_QC_TEST_VALUES, and GMD_CUSTOMER_TESTS tables.

    Fetch Specification Validity Rules

    FETCH_SPEC_VRS Retrieves specifications, specification tests, and validity rules from the GMD_SPECIFICATIONS, GMD_SPEC_TESTS, GMD_WIP_SPEC_VRS, GMD_CUSTOMER_SPEC_VRS, GMD_INVENTORY_SPEC_VRS, and GMD_SUPPLIER_SPEC_VRS tables.

  • Oracle E-Records APIs 5-1

    5Oracle E-Records APIs

    Oracle E-Records API PackagesThe following are the packages containing the Oracle E-Records APIs. Confirm that these packages are loaded in your instance so that the interfacing subprograms can compile successfully.

    Package Name Package Description

    EDR_ERES_EVENT_PUB Public level APIs to raise an e-signature event or related events in deferred mode.

    EDR_EVENT_RELATIONSHIP_PUB Public level APIs establish relationship between e-record events.

    EDR_EVIDENCESTORE_PUB Public level APIs for the Evidence Store; retrieves the e-record details.

    EDR_TRANS_ACKN_PUB Public level API used to send appropriate acknowledgement to the evidence store for an e-record based on the status of the business transaction.

    EDR_STANDARD_PUB Public level API that contains all general Oracle E-Records utilities.

    EDR_FILES_PUB Public level API that provides a generic file upload management system for uploading files into the Oracle E-Business Suite.

  • 5-2 Oracle Process Manufacturing API Reference Guide

    Oracle E-Records API Package ListingsListed in this section are the subprograms for each Public Oracle E-Records API Package. To list the parameters of an API, use the SQL*Plus command DESCRIBE. For example, DESCRIBE EDR_EVENT_RELATIONSHIP_PUB lists the entire contents of the EDR_EVENT_RELATIONSHIP_PUB package specification

    For English language descriptions of the parameters of each API, refer to the Oracle Applications Integration Repository. For the structure of the database objects used to define an API's %ROWTYPE Record parameters and INDEX BY Table of Records parameters (previously known as PL/SQL Tables) refer to the Oracle Applications Electronic Technical Reference Manual (eTRM).

    Package: EDR_ERES_EVENT_PUB

    API Name Subprogram Name API Description

    Get e-record ID GET_ERECORD_ID Obtains the e-record ID for an event name and event key combination from a table of ERES events.

    Get event details GET_EVENT_DETAILS Obtains the event name and event key from the evidence store for an e-record ID.

    Raise e-signature events

    RAISE_ERES_EVENT Raises normal as well as related events.

    Raise related e-signature events

    RAISE_INTER_EVENT Raises a number of e-signature related events at one time.

    Validate e-record VALIDATE_ERECORD Determines if the e-record with a specificID exists in the evidence store. The return value indicates the result.

    Validate Payload VALIDATE_PAYLOAD Determines if the payload of parameters being passed to raise an ERES event is valid.

    Validate Payload Forms

    VALIDATE_PAYLOAD_FORMS

    Determines if the payload of parameters being passed to raise an ERES event is valid. This API is used from forms.

    The EDR_ERES_EVENT_PUB package defines and uses the following Custom Record Types and INDEX BY Table of Records Types:

  • Oracle E-Records APIs 5-3

    TYPE ERECORD_ID_TBL_TYPE IS TABLE OF NUMBER INDEX BY BINARY_INTEGER;

    TYPE ERES_EVENT_REC_TYPE IS RECORD( EVENT_NAME VARCHAR2(80), EVENT_KEY VARCHAR2(240), ERECORD_ID NUMBER, EVENT_STATUS VARCHAR2(20) DEFAULT NULL, EVENT_XML CLOB DEFAULT NULL, PARAM_NAME_1 VARCHAR2(30) DEFAULT NULL, PARAM_VALUE_1 VARCHAR2(2000) DEFAULT NULL, PARAM_NAME_2 VARCHAR2(30) DEFAULT NULL, PARAM_VALUE_2 VARCHAR2(2000) DEFAULT NULL, PARAM_NAME_3 VARCHAR2(30) DEFAULT NULL, PARAM_VALUE_3 VARCHAR2(2000) DEFAULT NULL, PARAM_NAME_4 VARCHAR2(30) DEFAULT NULL, PARAM_VALUE_4 VARCHAR2(2000) DEFAULT NULL, PARAM_NAME_5 VARCHAR2(30) DEFAULT NULL, PARAM_VALUE_5 VARCHAR2(2000) DEFAULT NULL, PARAM_NAME_6 VARCHAR2(30) DEFAULT NULL, PARAM_VALUE_6 VARCHAR2(2000) DEFAULT NULL, PARAM_NAME_7 VARCHAR2(30) DEFAULT NULL, PARAM_VALUE_7 VARCHAR2(2000) DEFAULT NULL, PARAM_NAME_8 VARCHAR2(30) DEFAULT NULL, PARAM_VALUE_8 VARCHAR2(2000) DEFAULT NULL, PARAM_NAME_9 VARCHAR2(30) DEFAULT NULL, PARAM_VALUE_9 VARCHAR2(2000) DEFAULT NULL, PARAM_NAME_10 VARCHAR2(30) DEFAULT NULL, PARAM_VALUE_10 VARCHAR2(2000) DEFAULT NULL, PARAM_NAME_11 VARCHAR2(30) DEFAULT NULL, PARAM_VALUE_11 VARCHAR2(2000) DEFAULT NULL, PARAM_NAME_12 VARCHAR2(30) DEFAULT NULL, PARAM_VALUE_12 VARCHAR2(2000) DEFAULT NULL,

  • 5-4 Oracle Process Manufacturing API Reference Guide

    PARAM_NAME_13 VARCHAR2(30) DEFAULT NULL, PARAM_VALUE_13 VARCHAR2(2000) DEFAULT NULL, PARAM_NAME_14 VARCHAR2(30) DEFAULT NULL, PARAM_VALUE_14 VARCHAR2(2000) DEFAULT NULL, PARAM_NAME_15 VARCHAR2(30) DEFAULT NULL, PARAM_VALUE_15 VARCHAR2(2000) DEFAULT NULL, PARAM_NAME_16 VARCHAR2(30) DEFAULT NULL, PARAM_VALUE_16 VARCHAR2(2000) DEFAULT NULL, PARAM_NAME_17 VARCHAR2(30) DEFAULT NULL, PARAM_VALUE_17 VARCHAR2(2000) DEFAULT NULL, PARAM_NAME_18 VARCHAR2(30) DEFAULT NULL, PARAM_VALUE_18 VARCHAR2(2000) DEFAULT NULL, PARAM_NAME_19 VARCHAR2(30) DEFAULT NULL, PARAM_VALUE_19 VARCHAR2(2000) DEFAULT NULL, PARAM_NAME_20 VARCHAR2(30) DEFAULT NULL, PARAM_VALUE_20 VARCHAR2(2000) DEFAULT NULL);

    TYPE ERES_EVENT_TBL_TYPE IS TABLE OF ERES_EVENT_REC_TYPE INDEX BY BINARY_INTEGER;

    Package: EDR_EVENT_RELATIONSHIP_PUB

    API Name Subprogram Name API Description

    Establish relationships between e-records

    CREATE_RELATIONSHIP Creates a row in the EDR_EVENT_RELATIONSHIP table. Establishes a related event relationship between two events in evidence store.

    Validate Relationship VALIDATE_RELATIONSHIP Creates a row in the EDR_EVENT_RELATIONSHIP table. Validates if a parent-child relationship can be created between the specified parent andchild events.

    The EDR_EVENT_RELATIONSHIP_PUB package defines and uses the following

  • Oracle E-Records APIs 5-5

    Custom Record Types and INDEX BY Table of Records Types:Type INTER_EVENT_REC_TYPE IS RECORD( parent_event_name VARCHAR2(80) , parent_event_key VARCHAR2(240) , parent_erecord_id NUMBER , child_event_name VARCHAR2(80) , child_event_key VARCHAR2(240) , child_erecord_id NUMBER);

    TYPE INTER_EVENT_TBL_TYPE IS TABLE OF INTER_EVENT_REC_TYPE INDEX BY BINARY_INTEGER;

    Package: EDR_EVIDENCESTORE_PUB

    API Name Subprogram Name API Description

    Open document OPEN_DOCUMENT Opens a document for signature and stores the information. The document opened using this API remains active until the document ID is closed using another API or the document is cancelled. The DOCUMENT_ID returned bythis API is the required key for calling other relevant APIs.

    Close document CLOSE_DOCUMENT Closes an open document after the relevant informationis posted. The closed document cannot be modified further.

    Update document UPDATE_DOCUMENT Updates a document for signature and stores the information.

    Change document status

    CHANGE_DOCUMENTSTATUS Changes the document statusto the status passed as a parameter. There is no validation performed on the status value.

  • 5-6 Oracle Process Manufacturing API Reference Guide

    API Name Subprogram Name API Description

    Post document parameters

    POST_DOCUMENTPARAMETERS Associates any name-value pair attributes to the document.

    Retrieve signature details

    GET_SIGNATUREDETAILS Returns signature details such as signature timestamp and signature parameters involving signature comments etc.

    Retrieve e-record details

    GET_DOCUMENTDETAILS Returns e-record details such as e-record XML, parameters associated with e-records andapprover information based on e-record ID input.

    Request Signature REQUEST_SIGNATURE Requests a signature for a document. It creates a new signature row in the signature table for the document and user.

    Capture Signature CAPTURE_SIGNATURE Captures the signature for a single event and generates the corresponding document ID and signature ID.

    Post signature POST_SIGNATURE Posts signature details for a specific document.

    Post signature parameters

    POST_SIGNATUREPARAMETERS Associates any name-value pair attributes to the specifiedsignature.

    Cancel document CANCEL_DOCUMENT Updates the document status to CANCEL. All rows from relevant tables are deleted fora given document ID. This API cannot be called after thedocument is closed.

    The EDR_EVIDENCESTORE_PUB package defines and uses the following INDEX BY Table of Records Types:

  • Oracle E-Records APIs 5-7

    TYPE Params_tbl_type IS TABLE of edr_psig.params_rec INDEX by Binary_INTEGER;

    TYPE Signature_tbl_type IS TABLE of edr_psig.Signature INDEX by Binary_INTEGER;

    Package: EDR_TRANS_ACKN_PUB

    API Name Subprogram Name API Description

    E-record acknowledgement

    SEND_ACKN Sends appropriate acknowledgement for an e-record based on the status of the business transaction.

    Package: EDR_STANDARD_PUB

    API Name Subprogram Name API Description

    Determine if the e-record is required

    IS_EREC_REQUIRED Checks if an e-record is required for an event.

    Determine if the e-signature is required

    IS_ESIG_REQUIRED Checks if a signature is required for an event.

    Get AME rule level configuration values

    GET_AMERULE_VARIABLEVALUES

    Returns the table of configuration variables for an AME Transaction and Rule.

    Get AME rule level configuration values

    GET_AMERULE_VARVALUES Returns the table of configuration variables for an AME Transaction and Rule.

    Get current e-signature status

    GET_PSIGSTATUS Obtains signature status (Pending, Complete, or Error) for a given event.

    Get query ID on events GET_QUERYID_ONEVENTS Obtains a query ID for a list of events passed to the API in the parameter p_eventQuery_recTbl.

    Get erecord ID GET_ERECORD_ID Retrieves the latest e-record ID.

  • 5-8 Oracle Process Manufacturing API Reference Guide

    API Name Subprogram Name API Description

    Get Notification Routing Information

    GET_NOTIF_ROUTING_INFO Retrieves the overriding recipient for a routed notification in a workflow. The routing comments are also returned.

    Get query ID on parameters

    GET_QUERYID_ONPARAMS Retrieves a query ID for events based on arrays of event parameters (NAME, KEY).

    Is audit value old IS_AUDITVALUE_OLD Checks if the audited table column was modified during a transaction.

    Get Descriptive Flexfield One Prompt

    GET_DESCFLEX_ONEPROMPT Obtains a single descriptive flexfield prompt for designatedcolumn.

    Get Descriptive Flexfield All Prompts

    GET_DESCFLEX_ALLPROMPTS Retrieves the prompts of all theitems in the descriptive flexfield.

    Get Lookup Meaning GET_LOOKUP_MEANING Retrieves the lookup code meaning using FND_ LOOKUPS view for a specific lookup type and code.

    Display time only DISPLAY_TIME_ONLY Converts an input date value oftype DATE to a corresponding string display value.

    Display date only DISPLAY_DATE_ONLY Converts an input date value oftype DATE to a corresponding string display value.

    Display date DISPLAY_DATE Converts an input date value oftype DATE to a corresponding string display value.

    The EDR_STANDARD_PUB package defines and uses the following custom Record Types and INDEX BY Table of Records Types:

  • Oracle E-Records APIs 5-9

    Type eventDetails is record( event_name varchar2(240), event_key varchar2(240), key_type varchar2(40) );Type eventQuery is table of eventDetails index by binary_integer;

    Type RuleInputvalues is record( input_name varchar2(240), input_value varchar2(240) );Type ameRuleinputvalues is table of ruleInputvalues index by binary_integer;

    Package: EDR_FILES_PUB

    API Name Subprogram Name API Description

    File Upload UPLOAD_FILE Uploads a given file into the iSign repository.

  • OPM Process Execution APIs 6-1

    6OPM Process Execution APIs

    OPM Process Execution API PackagesThe following is the package containing the OPM Process Execution. This file contains the headers for the Process Execution (GME) APIs in Oracle Process Manufacturing (OPM). Confirm that this package is loaded in your instance so that the interfacing subprograms can compile successfully.

    Package Name Package Description

    GME_API_PUB Contains the headers for the Process Execution APIs.

    Process Execution API Package ListingsListed in this section are the subprograms for the Public Process Execution API Package.

    Tip: To list the parameters of an API, use the SQL*Plus command DESCRIBE. For example, DESCIBE GMD_SPEC_PUB lists all of the parameter information for all the APIs in the GMD_SPEC_PUB package.

    For English language descriptions of the parameters of each API, refer to the Oracle Applications Integration Repository. For the structure of the database objects used to define an API's %ROWTYPE Record parameters and INDEX BY Table of Records parameters (previously known as PL/SQL Tables) refer to the Oracle Applications Electronic Technical Reference Manual (eTRM).

  • 6-2 Oracle Process Manufacturing API Reference Guide

    Package: GME_API_PUB

    API Name Subprogram Name API Description

    Autodetail Batch AUTO_DETAIL_BATCH Creates detail level reservations for each ingredient line in the production batch using the picking rules defined.

    Auto Detail Line AUTO_DETAIL_LINE Creates detail level reservations for a specific ingredient line using the picking rules defined.

    Cancel Batch CANCEL_BATCH Cancels a Firm Planned Order (FPO) or batch and allassociated phantom batches.

    Close Batch CLOSE_BATCH Closes a batch.

    Close Step CLOSE_STEP Closes a step.

    Complete Batch COMPLETE_BATCH Completes a batch.

    Complete Step COMPLETE_STEP Completes a step.

    Convert Detail Reservation

    CONVERT_ DTL_RESERVATION Converts detail level reservation into transaction.

    Convert FPO to Batches

    CONVERT_FPO Converts FPO to one or many batches.

    Create Batch CREATE_BATCH Creates a FPO or a batch and checks inventory shortages.

    Create Batch Reservations

    CREATE_BATCH_RESERVATIONS Creates high level reservations for all the ingredients of a given batch.

    Create Line Reservations

    CREATE_LINE_RESERVATIONS Creates high level reservations for the given ingredient line.

  • OPM Process Execution APIs 6-3

    API Name Subprogram Name API Description

    Create Material Transaction

    CREATE_MATERIAL_TXN Creates a material transaction.

    Create Pending Product Lot

    CREATE_PENDING_PRODUCT_ LOT Creates a pending product lot for a specified product orbyproduct line.

    Create Phantom CREATE_PHANTOM Creates a batch and checks for inventory shortages.

    Delete Batch Step Activity

    DELETE_BATCHSTEP_ ACTIVITY Deletes an activity from a step.

    Delete Batch Step Resource

    DELETE_BATCHSTEP_ RESOURCE Deletes a resource of an activity.

    Delete Material Line DELETE_MATERIAL_ LINE Deletes a material line in a batch.

    Delete Material Transaction

    DELETE_MATERIAL_TXN Deletes a material transaction.

    Delete Process Parameter

    DELETE_PROCESS_PARAMETER Deletes a process parameter for a given resource.

    End Complete Actual Resource Transaction

    END_CMPLT_ACTUAL_ RSRC_TXN Ends a completed resource transaction that was started using the Start Completed Resource Transaction API.

    Incremental Backflushing

    INCREMENTAL_ BACKFLUSH Incrementally records production yield as it occursand has ingredient consumption backflushed.

    Insert Batch Step Activity

    INSERT_BATCHSTEP_ ACTIVITY Inserts an activity for a step.

    Insert Batchstep INSERT_STEP Inserts a new step into a batch.

  • 6-4 Oracle Process Manufacturing API Reference Guide

    API Name Subprogram Name API Description

    Insert Batchstep Resource

    INSERT_BATCHSTEP_RESOURCE Inserts a resource in a batchstep activity.

    Insert Incremental Resource Transaction

    INSERT_INCR_ACTUAL_ RSRC_TXN Records incremental resource usage by inserting a completed resource transaction.

    Insert Material Line INSERT_MATERIAL_ LINE Inserts new material line in a batch.

    Insert Process Parameter

    INSERT_PROCESS_PARAMETER Inserts a process parameter for a resource.

    Insert Timed Resource Transaction

    INSERT_ TIMED_ACTUAL_ RSRC_TXN

    Records incremental resource usage by inserting a completed resource transaction. Usage is calculated from transaction dates supplied in the transaction.

    Release Batch RELEASE_BATCH Releases a batch.

    Release Step RELEASE_STEP Releases a step.

    Reopen Batch REOPEN_BATCH Reopens a batch and all associated phantom batches and all steps optionally.

    Reopen Step REOPEN_STEP Reopens a step.

    Reroute Batch REROUTE_BATCH Reroutes a batch or FPO to adifferent recipe with the same formula.

    Reschedule Batch RESCHEDULE_ BATCH Reschedules a batch or FPO to different date.

    Reschedule Step RESCHEDULE_ STEP Reschedules a step.

  • OPM Process Execution APIs 6-5

    API Name Subprogram Name API Description

    Revert to WIP Batch REVERT_BATCH Changes the batch back to WIP. Only a batch with status of Complete can be reverted to WIP.

    Revert to WIP Steps REVERT_STEP Changes the batch step status to WIP. Only batch steps with a status of complete can be reverted to WIP.

    Save Batch SAVE_BATCH Saves all the transactions of a batch.

    Scale Batch SCALE_BATCH Scales batches up or down, including phantom batches.

    Start Completed Resource Transaction

    START_CMPLT_ACTUAL_ RSRC_TXN

    Starts a completed resource transaction for a resource.

    Terminate Batch TERMINATE_BATCH Terminates a batch. Cancels all the pending steps, terminates all the WIP steps.

    Theoretical Yield Batch

    THEORETICAL_YIELD_BATCH Calculates theoretical yield for a batch or FPO, and updates the quantities for the product lines.

    Unrelease Batch UNRELEASE_BATCH Unreleases a batch.

    Unrelease Step UNRELEASE_STEP Unreleases a step.

    Update Actual Resource Usage

    UPDATE_ACTUAL_RSRC_USAGE Inserts a completed resourcetransaction for a resource. This procedure replaces all the completed resource transactions with the supplied resource usage.

    Update Batchstep Activity

    UPDATE_BATCHSTEP_ACTIVITY Updates an activity for a step.

  • 6-6 Oracle Process Manufacturing API Reference Guide

    API Name Subprogram Name API Description

    Update Batchstep Resource

    UPDATE_BATCHSTEP_RESOURCE Updates a resource in a step activity.

    Update Material Line UPDATE_MATERIAL_LINE Updates the existing material line in a batch.

    Update Material Transaction

    UPDATE_MATERIAL_ TXN Updates a material transaction.

    Update Pending Product Lot

    UPDATE_PENDING_PRODUCT_ LOT Updates a pending product lot.

    Update Process Parameter

    UPDATE_PROCESS_PARAMETER Updates a process parameter for a resource.

    Refer to the Oracle Process Manufacturing Process Execution User's Guide for detailed information on all batch processes.

  • OPM Product Development APIs 7-1

    7OPM Product Development APIs

    OPM Product Development API PackagesThe following are the packages containing the OPM Product Development APIs. Confirm that these packages are loaded in your instance so that the interfacing subprograms can compile successfully.

    Formula APIs

    Package Name Package Description

    GMD_FORMULA_PUB Public Formula Header package that a user- defined function calls. This business API creates, modifies or deletes formula header information. It also creates the detail and effectivity when a formula header is created.

    GMD_FORMULA_DETAIL_PUB Public Formula Detail package that the wrapper or user defined function calls. It creates, modifies, or deletes a formula detail.

    Recipe APIs

    Package Name Package Description

    GMD_RECIPE_HEADER Creates or modifies the recipe header information.

  • 7-2 Oracle Process Manufacturing API Reference Guide

    Package Name Package Description

    GMD_RECIPE_DETAIL Creates or modifies the recipe detail information.

    GMD_RECIPE_FETCH_PUB Retrieves recipe details.

    GMD_FETCH_VALIDITY_ RULES Retrieves recipe validity rule details.

    GMD_ROUTINGS_PUB Creates, modifies, or deletes the routing step information.

    GMD_ROUTING_STEPS_PUB Creates or modifies routing steps associated tothe routing header.

    GMD_OPERATIONS_PUB Creates operation header and detail information. It also modifies and deletes operation header information.

    GMD_OPERATION_ ACTIVITIES_PUB Creates, modifies, or deletes the operation detail information.

    GMD_OPERATION_ RESOURCES_PUB Creates, modifies, or deletes the operation resource information.

    GMD_ACTIVITIES_PUB Creates, modifies, or deletes activity information.

    GMD_STATUS_PUB Modifies the status for routings, operations, recipes, and validity rules.

    Item Substitution APIs

    Package Name Package Description

    GMD_SUBSTITUTION_PUB Creates, modifies, and deletes an item substitution list.

  • OPM Product Development APIs 7-3

    Least Cost Formulation APIs

    Package Name Package Description

    GMD_LCF_UTIL. This function is called when external cost is chosen in the Technical Parameters window toget the cost function.

    Item Technical Data APIs

    Package Name Package Description

    GMD_ITEM_TECHNICAL_DATA_PUB This API has packages that are called for insertion, updation, deletion and to fetch the Technical Parameter values for items.

    OPM Product Development API Package ListingsListed in this section are the subprograms for each Public [Product Name] API Package.

    Tip: To list the parameters of an API, use the SQL*Plus command DESCRIBE. For example, DESCRIBE GMD_SPEC_PUB lists all of the parameter information for all the APIs in the GMD_SPEC_PUB package.

    For English language descriptions of the parameters of each API, refer to the Oracle Applications Integration Repository. For the structure of the database objects used to define an API's %ROWTYPE Record parameters and INDEX BY Table of Records parameters (previously known as PL/SQL Tables) refer to the Oracle Applications Electronic Technical Reference Manual (eTRM)

    Product Development API Package Listings

    GMD_FORMULA_PUB

    API Name Subprogram Name API Description

    Delete Formula Header DELETE_FORMULAHEADER Deletes formula header information.

  • 7-4 Oracle Process Manufacturing API Reference Guide

    API Name Subprogram Name API Description

    Insert Formula Header INSERT_FORMULA Inserts formula header information.

    Update Formula Header UPDATE_FORMULAHEADER Updates formula headerinformation.

    The GMD_FORMULA_PUB package defines and uses the following INDEX BY table TypesTYPE formula_update_hdr_tbl_type IS TABLE OF GMD_FORMULA_COMMON_PUB.formula_update_rec_type INDEX BY BINARY_INTEGER;

    TYPE formula_insert_hdr_tbl_type IS TABLE OF GMD_FORMULA_COMMON_PUB.formula_insert_rec_type INDEX BY BINARY_INTEGER;

    GMD_FORMULA_DETAIL_PUB

    API Name Subprogram Name API Description

    Delete Formula Details DELETE_FORMULADETAIL Deletes formula details.

    Insert Formula Details INSERT_FORMULADETAIL Inserts formula details.

    Update Formula Details UPDATE_FORMULADETAIL Updates formula details.

    The GMD_FORMULA_DETAIL_PUB package defines and uses the following INDEX BY table TypesTYPE formula_update_dtl_tbl_type IS TABLE OF GMD_FORMULA_COMMON_PUB.formula_update_rec_type INDEX BY BINARY_INTEGER;

    TYPE formula_insert_dtl_tbl_type IS TABLE OF GMD_FORMULA_COMMON_PUB.formula_insert_rec_type INDEX BY BINARY_INTEGER;

  • OPM Product Development APIs 7-5

    GMD_RECIPE_HEADER

    API Name Subprogram Name API Description

    Create Recipe Header CREATE_RECIPE_HEADER Inserts recipe header information.

    Update Recipe Header UPDATE_RECIPE_HEADER Updates recipe header information.

    Delete Recipe Header DELETE_RECIPE_HEADER Deletes recipe header information.

    The GMD_RECIPE_HEADER package defines and uses the following custom Record Types and INDEX BY table Types:TYPE FLEX IS RECORD ( ATTRIBUTE_CATEGORY VARCHAR2(30), ATTRIBUTE1 VARCHAR2(240), ATTRIBUTE2 VARCHAR2(240), ATTRIBUTE3 VARCHAR2(240), ATTRIBUTE4 VARCHAR2(240), ATTRIBUTE5 VARCHAR2(240), ATTRIBUTE6 VARCHAR2(240), ATTRIBUTE7 VARCHAR2(240), ATTRIBUTE8 VARCHAR2(240), ATTRIBUTE9 VARCHAR2(240), ATTRIBUTE10 VARCHAR2(240), ATTRIBUTE11 VARCHAR2(240), ATTRIBUTE12 VARCHAR2(240), ATTRIBUTE13 VARCHAR2(240), ATTRIBUTE14 VARCHAR2(240), ATTRIBUTE15 VARCHAR2(240), ATTRIBUTE16 VARCHAR2(240), ATTRIBUTE17 VARCHAR2(240), ATTRIBUTE18 VARCHAR2(240), ATTRIBUTE19 VARCHAR2(240), ATTRIBUTE20 VARCHAR2(240), ATTRIBUTE21 VARCHAR2(240), ATTRIBUTE22 VARCHAR2(240), ATTRIBUTE23 VARCHAR2(240), ATTRIBUTE24 VARCHAR2(240), ATTRIBUTE25 VARCHAR2(240), ATTRIBUTE26 VARCHAR2(240), ATTRIBUTE27 VARCHAR2(240), ATTRIBUTE28 VARCHAR2(240), ATTRIBUTE29 VARCHAR2(240), ATTRIBUTE30 VARCHAR2(240) );

  • 7-6 Oracle Process Manufacturing API Reference Guide

    TYPE UPDATE_FLEX IS RECO


Recommended