Search Results g_fnd_debug
Overview
POS_SUPP_APPR is a PL/SQL package in the APPS schema that supports supplier approval workflow processing within Oracle Purchasing. Its primary responsibility is to orchestrate the routing and approval of supplier-related transactions through Oracle Workflow, while integrating with Oracle Approvals Management (AME) to determine the appropriate approver hierarchy. The package serves as a bridge between the Purchasing supplier registration and approval flow and the underlying workflow and AME engines, evaluating whether AME-based approval rules apply and, if so, resolving approvers, evaluating responses, and updating transaction status accordingly.
The package body exposes both private routines (such as marshalField, used to safely encode values into a delimited approval-list string) and public entry points invoked by workflow activities. The header comment references release versions consistent with Oracle EBS 12.1.x and 12.2.x source, and the package uses the standard AFLOG_ENABLED profile option to gate debug logging.
Key Procedures and Functions
- INITIALIZE_WF — Initializes the workflow item attributes for the current process, accepting the item type, item key, activity instance id, and function mode.
- IS_AME_ENABLED — Returns whether AME is configured and active for the transaction, used to branch approval logic between AME and non-AME paths.
- CHECK_IF_AME_ENABLED — The routine most closely associated with the searched term; verifies AME enablement status and controls subsequent approval behavior.
- GET_NEXT_APPROVER — Determines and returns the next approver in the routing sequence.
- STARTWF_POSSPAPP — Launches the supplier approval workflow process.
- GET_APPROVER_IN_WF — Retrieves approver information from the active workflow instance.
- CHECK_IF_APPROVER — Validates whether the current user qualifies as an approver.
- PROCESS_APPROVE — Handles the approval action and advances the workflow.
- PROCESS_REJECT — Handles rejection, setting the transaction status accordingly.
- SET_STATUS_REJECTED — Persists the rejected status on the underlying transaction.
- GET_AME_PROCESS_STATUS — Returns the current AME process status for the transaction.
- GET_AME_APPROVAL_LIST_HISTORY — Retrieves the historical AME approval list for auditing and display.
- PROCESS_RESPONSE_INTERNAL — Internal routine that processes an approver response and updates workflow state.
- CHECK_CURRENT_APPROVER — Confirms the current user matches the expected approver for the activity.
- GET_APPROVER_NAME_IN_WF — Returns the display name of the approver associated with the workflow.
Tables Accessed
- FND_USER — Resolves application user identities for approvers and requesters.
- HZ_PARTIES — Provides supplier party information for supplier approval transactions.
- PER_ALL_PEOPLE_F and PER_ALL_ASSIGNMENTS_F — Supply person and assignment data used to resolve approvers and their effective assignments.
- PER_ALL_POSITIONS, PER_JOBS, and PER_ASSIGNMENT_STATUS_TYPES — Support approver resolution by position, job, and assignment status.
- PO_DOCUMENT_TYPES — Identifies the Purchasing document type governing the approval routing.
- PLITBLM — The standard PL/SQL table used for AME parameter passing.
Usage Notes
POS_SUPP_APPR is typically invoked from Oracle Workflow process definitions that drive supplier approval activities, rather than being called directly from forms. Its procedures execute as workflow function activities during the RUN, CANCEL, or TIMEOUT modes. Custom integrations extending supplier approval routing should call these routines through workflow rather than directly, since the package manages workflow context and approval-list state internally. The presence of CHECK_IF_AME_ENABLED confirms that environments using AME for supplier approvals rely on this package to decide whether AME rules or legacy approver resolution governs a given transaction.
-
PACKAGE BODY: APPS.POS_SUPP_APPR
12.1.1
-
PACKAGE BODY: APPS.INV_PO_ITEMVALID_MDTR
12.1.1
-
PACKAGE BODY: APPS.POR_AME_APPROVAL_LIST
12.1.1
-
PACKAGE BODY: APPS.PON_PROJECTS_INTEGRATION_GRP
12.1.1
-
PACKAGE BODY: APPS.INV_PO_ITEMVALID_MDTR
12.2.2
-
PACKAGE BODY: APPS.PON_PROJECTS_INTEGRATION_GRP
12.2.2
-
PACKAGE BODY: APPS.JMF_SHIKYU_GRP
12.2.2
-
PACKAGE BODY: APPS.JMF_SHIKYU_GRP
12.1.1
-
PACKAGE BODY: APPS.POR_AME_APPROVAL_LIST
12.2.2
-
PACKAGE BODY: APPS.JMF_SHIKYU_UTIL
12.1.1
-
PACKAGE BODY: APPS.PO_ACKNOWLEDGE_PO_GRP
12.1.1
-
PACKAGE BODY: APPS.PO_ACKNOWLEDGE_PO_GRP
12.2.2
-
PACKAGE BODY: APPS.JMF_SHIKYU_UTIL
12.2.2
-
PACKAGE BODY: APPS.POS_SUPP_APPR
12.2.2
-
PACKAGE BODY: APPS.RCV_PROJECT_GRP
12.1.1
-
PACKAGE BODY: APPS.RCV_PROJECT_GRP
12.2.2
-
PACKAGE BODY: APPS.RCV_PROJECT_PVT
12.2.2
-
PACKAGE BODY: APPS.RCV_PROJECT_PVT
12.1.1
-
PACKAGE BODY: APPS.PO_INTG_DOCUMENT_FUNDS_GRP
12.1.1
-
PACKAGE BODY: APPS.PO_INTG_DOCUMENT_FUNDS_GRP
12.2.2
-
PACKAGE BODY: APPS.INV_CONSIGN_NOTIF_UTL
12.1.1
-
PACKAGE BODY: APPS.PO_ASL_THS1
12.1.1
-
PACKAGE BODY: APPS.INV_CONSIGN_NOTIF_UTL
12.2.2
-
PACKAGE BODY: APPS.PO_ASL_THS1
12.2.2
-
PACKAGE BODY: APPS.PO_AP_PURGE_UTIL_PVT
12.1.1
-
PACKAGE BODY: APPS.JMF_SHIKYU_ALLOCATION_PVT
12.2.2
-
PACKAGE BODY: APPS.PO_AP_PURGE_UTIL_PVT
12.2.2
-
PACKAGE BODY: APPS.PO_DOCUMENT_CONTROL_GRP
12.1.1
-
PACKAGE BODY: APPS.PO_ACCOUNTING_GRP
12.2.2
-
PACKAGE BODY: APPS.PO_AP_PURGE_PVT
12.2.2
-
PACKAGE BODY: APPS.JMF_SHIKYU_ALLOCATION_PVT
12.1.1
-
PACKAGE BODY: APPS.PON_RESPONSE_PVT
12.1.1
-
PACKAGE BODY: APPS.PO_ACCOUNTING_GRP
12.1.1
-
PACKAGE BODY: APPS.PON_RESPONSE_PVT
12.2.2
-
PACKAGE BODY: APPS.PO_AP_PURGE_PVT
12.1.1
-
PACKAGE BODY: APPS.PO_ASL_THS
12.1.1
-
PACKAGE BODY: APPS.PO_DOCUMENT_LOCK_GRP
12.2.2
-
PACKAGE BODY: APPS.PO_DOCUMENT_CANCEL_PVT
12.1.1
-
PACKAGE BODY: APPS.PO_ASL_THS
12.2.2
-
PACKAGE BODY: APPS.PO_DOCUMENT_CONTROL_GRP
12.2.2
-
PACKAGE BODY: APPS.PO_DOCUMENT_ARCHIVE_PVT
12.1.1
-
PACKAGE BODY: APPS.PO_AP_RETROACTIVE_UPDATE_GRP
12.1.1
-
PACKAGE BODY: APPS.PON_CP_INTRFAC_TO_TRANSACTION
12.1.1
-
PACKAGE BODY: APPS.PO_AP_RETROACTIVE_UPDATE_GRP
12.2.2
-
PACKAGE BODY: APPS.PO_FTE_INTEGRATION_GRP
12.1.1
-
PACKAGE BODY: APPS.PO_FTE_INTEGRATION_PVT
12.1.1
-
PACKAGE BODY: APPS.PO_FTE_INTEGRATION_GRP
12.2.2
-
PACKAGE BODY: APPS.PO_FTE_INTEGRATION_PVT
12.2.2
-
PACKAGE BODY: APPS.PON_CP_INTRFAC_TO_TRANSACTION
12.2.2
-
PACKAGE BODY: APPS.PO_DOCUMENT_LOCK_GRP
12.1.1