Search Results get_bill_to_use_id




Overview

APPS.AR_AME_CM_ATTRIBUTES_API is an Oracle E-Business Suite PL/SQL package that belongs to the Oracle Receivables (AR) module and supports the integration between Receivables credit management and Oracle Approvals Management Engine (AME). The package is declared with AUTHID CURRENT_USER, meaning its SQL executes under the privileges of the calling schema rather than the definer. Its central business role is to expose the set of transaction-level and customer-level attributes that AME requires when evaluating an approval or credit management rule for an Accounts Receivable transaction.

The package binds itself to two constants that anchor it within the EBS workflow and application registries: c_application_id is fixed to 222 (the Receivables application identifier), and c_item_type is set to 'ARAMECM', the workflow item type used by Receivables Credit Management. These constants confirm the package operates specifically in the AME-driven credit management context rather than general transaction entry. The item type is significant because AME retrieves the item type and item key from the transaction being evaluated and then invokes the relevant attribute functions to resolve values for rule evaluation. The header comment date (2003) reflects the package's long-standing presence in the codebase, and the noship designation indicates it is not a standalone ship unit but a supporting component.

Key Procedures and Functions

The package exposes 28 documented functions, all of which accept a transaction identifier as input (typically p_transaction_id) and return a single scalar value. They fall into logical groupings:

Because AME evaluates rules by interrogating named attributes, each function effectively registers a rule-addressable attribute. The calling framework invokes the appropriate function based on the attribute name configured in the AME rule, and the returned value is then compared against rule conditions.

Tables Accessed

The package reads from a defined set of tables through APPS synonyms:

Usage Notes

This package is not intended for direct invocation by end users or standalone custom programs. It is invoked indirectly by AME when evaluating credit management rules for Receivables transactions. When a transaction is submitted to credit management, AME reads the item type (ARAMECM) and item key, then calls the relevant attribute functions to populate the transaction attributes against which approval rules are evaluated. Consequently, customizations that require an additional approval attribute must extend both the AME attribute configuration and, where appropriate, this package's function set. The package is referenced by zero other packages in the documented metadata, confirming its role as a leaf-level provider of attributes rather than a reusable service layer. Developers extending credit management approvals should treat the documented function signatures as the only supported contract and avoid altering the return semantics, since AME rule definitions depend on stable, consistent values.