Search Results create_constraints
Overview
AMW_LOAD_CONSTRAINT_DATA is a PL/SQL package owned by the APPS schema in Oracle E-Business Suite and is a component of the Applications Management Workbench (AMW) constraint management framework. Its principal business function is to load constraint definitions from staging interface tables into the AMW constraint base and translation tables, and to update those interface records with processing errors when validation or loading fails. The package header confirms this dual role: one procedure, CREATE_CONSTRAINTS, moves data from the interface into AMW_CONSTRAINTS_B and AMW_CONSTRAINTS_TL, while the second procedure, UPDATE_INTERFACE_WITH_ERROR, is the error-handling counterpart that writes failure diagnostics back to the interface. The package was created on 01-Oct-2004 and carries the version marker amwcstls.pls 120.0.12000000.1 (2007/01/16), identifying it as a long-standing, relatively stable component of the AMW data-loading toolkit. It follows the standard Oracle EBS API conventions, declaring FND_API global constants and capturing the runtime user and login identifiers through FND_GLOBAL.
Key Procedures and Functions
The ETRM metadata documents two procedures for this package:
- CREATE_CONSTRAINTS — Imports constraint data from the AMW interface table into the AMW_CONSTRAINTS_B and AMW_CONSTRAINTS_TL tables. The header notes that this procedure is intended to be called from a Concurrent Executable, and it exposes the standard concurrent return parameters ERRBUF and RETCODE along with a batch identifier used to scope the set of rows processed in a given run. Its logic is responsible for validation, insertion into the base and translation tables, and coordination with the error-recording routine.
- UPDATE_INTERFACE_WITH_ERROR — Records error information against the corresponding interface rows when a constraint record cannot be validated or loaded. This is the object the user searched for under the term "update_interface_with_error," and it provides the mechanism by which CREATE_CONSTRAINTS communicates row-level failures back to the staging table so that operators can review, correct, and resubmit rejected data.
No parameter lists are published beyond those declared in the source excerpt, and none are assumed here.
Tables Accessed
The package operates across the following documented tables, referenced through APPS synonyms:
- AMW_CONSTRAINT_INTERFACE — the staging interface table from which records are read, and to which error status is written by UPDATE_INTERFACE_WITH_ERROR.
- AMW_CONSTRAINTS_B, AMW_CONSTRAINTS_TL, AMW_CONSTRAINT_ENTRIES, AMW_CONSTRAINT_REV_S, AMW_CONSTRAINT_WAIVERS, AMW_VIOLATIONS — the constraint definition, translation, revision, waiver, and violation structures that constitute the AMW constraint model.
- AMW_AP_INTERFACE, AMW_WORK_TYPES_B — supporting interface and work-type reference data used during loading.
- FND_OBJECTS, FND_FORM_FUNCTIONS, FND_COMPILED_MENU_FUNCTIONS, FND_RESPONSIBILITY, FND_RESP_FUNCTIONS, FND_CONCURRENT_PROGRAMS — application object, menu, responsibility, function, and concurrent program metadata used to validate or resolve constraint targets and to support the concurrent-executable invocation path.
Usage Notes
AMW_LOAD_CONSTRAINT_DATA is principally invoked from a concurrent executable, as stated in the package header comment above CREATE_CONSTRAINTS. In practice the concurrent program is registered in FND_CONCURRENT_PROGRAMS and submits a batch of interface rows for processing; the ERRBUF and RETCODE out parameters carry the completion status back to the concurrent manager, while the batch identifier limits the scope of each run. The package is referenced by one other package in the ETRM metadata, indicating that it also participates in a broader AMW load or setup flow rather than being called exclusively by end users. Direct invocation from Oracle Forms is not indicated; custom code should generally emulate the concurrent pattern by supplying a batch identifier and handling ERRBUF/RETCODE conventions. Because UPDATE_INTERFACE_WITH_ERROR is exposed in the package specification, it can be called independently to mark interface rows with error text, which is useful when building custom diagnostics or reprocessing scripts.
-
PACKAGE: APPS.AMW_LOAD_CONSTRAINT_DATA
12.1.1
-
PACKAGE BODY: APPS.AMW_LOAD_CONSTRAINT_DATA
12.1.1
-
APPS.AMW_LOAD_CONSTRAINT_DATA dependencies on AMW_LOAD_CONSTRAINT_DATA
12.1.1
-
APPS.AMW_LOAD_CONSTRAINT_DATA dependencies on AMW_CONSTRAINTS_TL
12.1.1
-
APPS.AMW_LOAD_CONSTRAINT_DATA dependencies on AMW_CONSTRAINTS_B
12.1.1
-
APPS.AMW_LOAD_CONSTRAINT_DATA dependencies on FND_FILE
12.1.1
-
PACKAGE BODY: APPS.PN_INDEX_RENT_PVT
12.2.2
-
APPS.PN_INDEX_RENT_PVT dependencies on PN_INDEX_RENT_PVT
12.2.2
-
APPS.PN_INDEX_RENT_PVT dependencies on FND_API
12.2.2