Search Results ota_tfh_api_business_rules
Overview
The APPS.OTA_TFH_API_BUSINESS_RULES package is a core validation and business-rule component within the Oracle EBS Training Administration (OTA) module, specifically supporting the Training Finance / Training Header (TFH) subsystem. Its primary responsibility is to enforce the business rules that govern training finance headers and lines — records that capture the financial, customer, supplier, and billing information associated with a training event. Rather than performing the underlying DML that persists training finance data (which is handled by the companion package OTA_TFH_API_SHD), this package centrally encapsulates the conditional logic that determines whether a given operation is permissible given the current state of the record and its related entities.
The package is classified under the generic "OTHER" API classification in the documented ETRM 12.2.2 metadata and holds a VALID status in the APPS schema. It exposes 32 documented procedures and functions, reflecting its role as a broad rule-enforcement library rather than a single-purpose utility. Its dependency footprint shows it references OTA_TFH_API_SHD and the SQL STANDARD package, and it is in turn referenced by seven other packages across enrollment, cancellation, finance header, and learner services.
Key Procedures and Functions
The documented routines cluster into several functional families:
- Transfer and status validation:
CHECK_TRANSFER_STATUSandCHECK_TRANSFER_RULESvalidate whether a training finance record may be transferred,CHECK_STATUS_UNAUTHORIZEDandCHECK_AUTHORIZED_BYenforce authorization-state rules, andSET_DATE_RAISEDestablishes the date on which a finance document was raised. - Receivable and customer validation:
CHECK_RECEIVABLE_ATTRIBUTES,CHECK_CUSTOMER_CONTACT,CHECK_CUSTOMER_ADDRESS,CHECK_UPDATE_CUSTOMER_ID,SET_INVOICE_ADDRESS,SET_INVOICE_CONTACT, andCHECK_UPDATE_INVOICE_ADDRESSgovern the customer-side (receivable) billing information associated with a training event. - Payable and vendor validation:
CHECK_VENDOR_CONTACT,CHECK_VENDOR_ADDRESS, andCHECK_PAYABLE_ATTRIBUTESperform the equivalent validation for supplier-side (payable) data. - Cancellation and supersession:
CHECK_CANCELLED_FLAG,CANCEL_HEADER,RECANCEL_HEADER,CHECK_CANCELLATION_ATTRIBUTES, andCHECK_SUPERSEDED_HEADERhandle the lifecycle rules for cancelling, re-cancelling, and superseding training finance headers.
Tables Accessed
The package operates against several base tables via APPS synonyms. OTA_FINANCE_HEADERS and OTA_FINANCE_LINES are the central transactional tables holding training finance documents and their detail lines. Customer data is validated against HZ_PARTIES (Trading Community Architecture parties). Supplier and supplier-contact validation draws on AP_SUPPLIERS and AP_SUPPLIER_CONTACTS. Organization context is resolved through HR_ALL_ORGANIZATION_UNITS, and user and authorization checks reference FND_USER. These accesses support the rule checks and the setting of invoice address/contact values on the finance header records.
Usage Notes
OTA_TFH_API_BUSINESS_RULES is not typically invoked directly by end users. It is called programmatically by higher-level OTA APIs and the OAF/Forms-based training administration pages. The documented "referenced by" list shows it is consumed by packages such as OTA_ENROLL_IN_TRAINING_SS, OTA_LEARNER_ENROLL_SS, OTA_CANCEL_TRAINING_SS, OTA_TRNG_ENROLL_SS, OTA_EL_ENROLL_SS, and OTA_FINANCE_HEADER_SWI, indicating that enrollment, cancellation, and finance-header workflows depend on these rules. The package also references itself, consistent with internal helper reuse. Customizations and extensions that create or modify training finance records should honor these checks by calling the appropriate validation routines before persisting data, ensuring consistency with standard OTA business behavior across both 12.1.1 and 12.2.2.
-
PACKAGE: APPS.OTA_TFH_API_BUSINESS_RULES
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OTA_TFH_API_BUSINESS_RULES, status:VALID,
-
PACKAGE: APPS.OTA_TFH_API_SHD
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OTA_TFH_API_SHD, status:VALID,
-
PACKAGE: APPS.OTA_TFH_API_BUSINESS_RULES
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OTA_TFH_API_BUSINESS_RULES, status:VALID,
-
PACKAGE BODY: APPS.OTA_TFH_API_BUSINESS_RULES
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_TFH_API_BUSINESS_RULES, status:VALID,
-
PACKAGE: APPS.OTA_TFH_API_SHD
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OTA_TFH_API_SHD, status:VALID,
-
PACKAGE BODY: APPS.OTA_TFH_API_BUSINESS_RULES
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_TFH_API_BUSINESS_RULES, status:VALID,
-
PACKAGE: APPS.OTA_TFL_API_BUSINESS_RULES2
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OTA_TFL_API_BUSINESS_RULES2, status:VALID,
-
PACKAGE BODY: APPS.OTA_FINANCE_HEADER_SWI
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_FINANCE_HEADER_SWI, status:VALID,
-
PACKAGE: APPS.OTA_TFH_API_UPD
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OTA_TFH_API_UPD, status:VALID,
-
PACKAGE: APPS.OTA_TFL_API_BUSINESS_RULES2
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OTA_TFL_API_BUSINESS_RULES2, status:VALID,
-
PACKAGE BODY: APPS.OTA_FINANCE_HEADER_SWI
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_FINANCE_HEADER_SWI, status:VALID,
-
PACKAGE: APPS.OTA_TFH_API_UPD
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OTA_TFH_API_UPD, status:VALID,
-
PACKAGE BODY: APPS.OTA_TFH_API_BUS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_TFH_API_BUS, status:VALID,
-
PACKAGE: APPS.OTA_TFH_API_INS
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OTA_TFH_API_INS, status:VALID,
-
PACKAGE: APPS.OTA_TFH_API_INS
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OTA_TFH_API_INS, status:VALID,
-
PACKAGE BODY: APPS.OTA_TFH_API_BUS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_TFH_API_BUS, status:VALID,
-
SYNONYM: APPS.AP_SUPPLIER_CONTACTS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AP_SUPPLIER_CONTACTS, status:VALID,
-
PACKAGE BODY: APPS.OTA_CANCEL_TRAINING_SS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_CANCEL_TRAINING_SS, status:VALID,
-
PACKAGE BODY: APPS.OTA_CANCEL_TRAINING_SS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_CANCEL_TRAINING_SS, status:VALID,
-
VIEW: APPS.OTA_VENDOR_ADDRESSES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OTA.OTA_VENDOR_ADDRESSES_V, object_name:OTA_VENDOR_ADDRESSES_V, status:VALID,
-
PACKAGE BODY: APPS.OTA_TRNG_ENROLL_SS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_TRNG_ENROLL_SS, status:VALID,
-
PACKAGE BODY: APPS.OTA_TRNG_ENROLL_SS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_TRNG_ENROLL_SS, status:VALID,
-
SYNONYM: APPS.OTA_FINANCE_HEADERS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OTA_FINANCE_HEADERS, status:VALID,
-
SYNONYM: APPS.AP_SUPPLIER_CONTACTS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AP_SUPPLIER_CONTACTS, status:VALID,
-
PACKAGE BODY: APPS.OTA_LEARNER_ENROLL_SS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_LEARNER_ENROLL_SS, status:VALID,
-
PACKAGE BODY: APPS.OTA_ENROLL_IN_TRAINING_SS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_ENROLL_IN_TRAINING_SS, status:VALID,
-
PACKAGE BODY: APPS.OTA_EL_ENROLL_SS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_EL_ENROLL_SS, status:VALID,
-
PACKAGE BODY: APPS.OTA_ENROLL_IN_TRAINING_SS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_ENROLL_IN_TRAINING_SS, status:VALID,
-
PACKAGE BODY: APPS.OTA_LEARNER_ENROLL_SS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_LEARNER_ENROLL_SS, status:VALID,
-
PACKAGE BODY: APPS.OTA_EL_ENROLL_SS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_EL_ENROLL_SS, status:VALID,
-
VIEW: APPS.OTA_VENDOR_ADDRESSES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OTA.OTA_VENDOR_ADDRESSES_V, object_name:OTA_VENDOR_ADDRESSES_V, status:VALID,
-
VIEW: APPS.OTA_CUSTOMER_CONTACTS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OTA.OTA_CUSTOMER_CONTACTS_V, object_name:OTA_CUSTOMER_CONTACTS_V, status:VALID,
-
SYNONYM: APPS.OTA_FINANCE_HEADERS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OTA_FINANCE_HEADERS, status:VALID,
-
VIEW: APPS.OTA_CUSTOMER_ADDRESSES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OTA.OTA_CUSTOMER_ADDRESSES_V, object_name:OTA_CUSTOMER_ADDRESSES_V, status:VALID,
-
VIEW: APPS.OTA_CUSTOMER_ADDRESSES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OTA.OTA_CUSTOMER_ADDRESSES_V, object_name:OTA_CUSTOMER_ADDRESSES_V, status:VALID,
-
VIEW: APPS.OTA_CUSTOMER_CONTACTS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OTA.OTA_CUSTOMER_CONTACTS_V, object_name:OTA_CUSTOMER_CONTACTS_V, status:VALID,
-
SYNONYM: APPS.OTA_FINANCE_LINES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OTA_FINANCE_LINES, status:VALID,
-
SYNONYM: APPS.OTA_FINANCE_LINES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OTA_FINANCE_LINES, status:VALID,
-
PACKAGE: APPS.OTA_GENERAL
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OTA_GENERAL, status:VALID,
-
PACKAGE: APPS.OTA_GENERAL
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OTA_GENERAL, status:VALID,
-
SYNONYM: APPS.AP_SUPPLIERS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AP_SUPPLIERS, status:VALID,
-
SYNONYM: APPS.AP_SUPPLIERS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AP_SUPPLIERS, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
12.1.1 DBA Data
12.1.1
-
PACKAGE: APPS.OTA_TFH_API_BUSINESS_RULES
12.1.1
-
12.2.2 DBA Data
12.2.2
-
PACKAGE: APPS.OTA_TFH_API_BUSINESS_RULES
12.2.2
-
APPS.OTA_ENROLL_IN_TRAINING_SS dependencies on OTA_TFH_API_BUSINESS_RULES
12.1.1
-
APPS.OTA_EL_ENROLL_SS dependencies on OTA_TFH_API_BUSINESS_RULES
12.1.1