Search Results ece_flatfile
Overview
ECE_FLATFILE is a public PL/SQL package in the APPS schema that provides the core engine for Oracle E-Business Suite's e-Commerce Gateway (ECE) flat-file generation. Its principal business function is to flatten transactional data drawn from ECE interface tables into a fixed-length, positionally-delimited output stream that external trading partners can consume. The package resolves the correct interface columns for a given transaction type and communication method, reads the corresponding source data, pads and truncates each value to the widths defined in the interface metadata, and writes the assembled records to the ECE output tables. Because flat files must conform exactly to partner-defined layouts, the package centralizes column selection and positioning logic so that outbound documents such as purchase orders, invoices, and advance ship notices are rendered consistently regardless of the calling program. It is declared AUTHID CURRENT_USER and is classified as an OTHER API within the ETRM repository, indicating that it is an internal utility rather than a supported public interface for customer extension.
Key Procedures and Functions
The package exposes three documented procedures, all of which operate on positionally-ordered PL/SQL associative arrays declared within the package specification.
- select_clause — Builds the SQL fragments needed to retrieve interface data for a supplied transaction type, communication method, and interface table. It returns the external and internal table names, the internal column list, and the parallel arrays of record numbers, data positions, and column widths that describe the target flat-file layout, together with the SELECT, FROM, and WHERE string components used to query the source data.
- write_to_ece_output — The procedure most commonly referenced in development and troubleshooting contexts. It receives the transaction type, communication method, interface table, the column and report-data arrays, the record number, data position, and data width arrays, the data count, the output width, and the run ID. It assembles each flat-file record by placing data values at their designated offsets, applies padding to the configured output width, and writes the resulting lines to the ECE output structures. The
write_to_ece_outputentry point is the one invoked afterselect_clausehas supplied the layout metadata. - find_pos — A helper that scans the column-name array and the incoming text to determine the ordinal position of a specified column within the report text. It returns the resolved position through an OUT parameter and is used internally to align data values with their target offsets.
Note that the internal width constant governs the maximum column size, and the character and numeric array types are declared to match that width; any change to the constant requires a corresponding change to the array type definitions.
Tables Accessed
The package reads configuration metadata and writes generated output through APPS synonyms:
- ECE_INTERFACE_TABLES and ECE_INTERFACE_COLUMNS — supply the interface table names, column names, positions, and widths that drive
select_clauseand the layout arrays. - ECE_OUTPUT — the header-level output record for a flat-file run, keyed by run ID and transaction type.
- ECE_OUTPUT_LINES_S — the line-level table into which
write_to_ece_outputinserts each assembled flat-file record. - ALL_TAB_COLUMNS — consulted to validate or resolve column attributes of the source interface tables when constructing the SELECT and FROM clauses.
Usage Notes
ECE_FLATFILE is not typically called directly by end users. It is invoked by the e-Commerce Gateway outbound concurrent programs and by the ECE extraction and flat-file generation routines that process interface data for outbound transactions. Because the package is AUTHID CURRENT_USER, callers must grant appropriate privileges on the ECE tables and must execute it from a context that can read the interface metadata. The package is not referenced by any other package in the documented inventory, confirming its role as a terminal utility within the ECE generation flow. Customizations should avoid modifying the package body; instead, extensions should be built on the supported ECE interface tables and concurrent program parameters. The write_to_ece_output procedure is the standard diagnostic entry point when investigating malformed flat files, since defects in column width, record number, or data position metadata surface directly in the lines it produces.
-
PACKAGE: APPS.ECE_FLATFILE
12.2.2
owner:APPS, object_type:PACKAGE, object_name:ECE_FLATFILE, status:VALID,
-
PACKAGE BODY: APPS.ECE_FLATFILE
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ECE_FLATFILE, status:VALID,
-
PACKAGE BODY: APPS.ECE_FLATFILE
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ECE_FLATFILE, status:VALID,
-
PACKAGE: APPS.ECE_FLATFILE
12.1.1
owner:APPS, object_type:PACKAGE, object_name:ECE_FLATFILE, status:VALID,
-
PACKAGE: APPS.ECE_FLATFILE
12.2.2
-
PACKAGE: APPS.ECE_FLATFILE
12.1.1
-
SYNONYM: APPS.ECE_OUTPUT_LINES_S
12.1.1
owner:APPS, object_type:SYNONYM, object_name:ECE_OUTPUT_LINES_S, status:VALID,
-
SYNONYM: APPS.ECE_INTERFACE_COLUMNS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:ECE_INTERFACE_COLUMNS, status:VALID,
-
SYNONYM: APPS.ECE_OUTPUT_LINES_S
12.2.2
owner:APPS, object_type:SYNONYM, object_name:ECE_OUTPUT_LINES_S, status:VALID,
-
SYNONYM: APPS.ECE_INTERFACE_COLUMNS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:ECE_INTERFACE_COLUMNS, status:VALID,
-
SYNONYM: APPS.ECE_OUTPUT
12.2.2
owner:APPS, object_type:SYNONYM, object_name:ECE_OUTPUT, status:VALID,
-
SYNONYM: APPS.ECE_INTERFACE_TABLES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:ECE_INTERFACE_TABLES, status:VALID,
-
SYNONYM: APPS.ECE_INTERFACE_TABLES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:ECE_INTERFACE_TABLES, status:VALID,
-
SYNONYM: APPS.ECE_OUTPUT
12.1.1
owner:APPS, object_type:SYNONYM, object_name:ECE_OUTPUT, status:VALID,
-
SYNONYM: PUBLIC.ALL_TAB_COLUMNS
12.2.2
owner:PUBLIC, object_type:SYNONYM, object_name:ALL_TAB_COLUMNS, status:VALID,
-
PACKAGE BODY: APPS.ECE_FLATFILE
12.2.2
-
PACKAGE BODY: APPS.ECE_FLATFILE
12.1.1
-
SYNONYM: PUBLIC.ALL_TAB_COLUMNS
12.1.1
owner:PUBLIC, object_type:SYNONYM, object_name:ALL_TAB_COLUMNS, status:VALID,
-
APPS.ECE_FLATFILE dependencies on ECE_FLATFILE
12.1.1
-
APPS.ECE_FLATFILE dependencies on ECE_FLATFILE
12.2.2
-
APPS.ECE_SPSO_TRANS1 SQL Statements
12.2.2
-
APPS.ECE_SPSO_TRANS1 SQL Statements
12.1.1
-
APPS.ECE_SPSO_TRANS1 dependencies on ECE_OUTPUT
12.2.2
-
APPS.ECE_SPSO_TRANS1 dependencies on ECE_OUTPUT
12.1.1
-
PACKAGE BODY: APPS.ECE_SPSO_TRANS1
12.2.2
-
PACKAGE BODY: APPS.ECE_SPSO_TRANS1
12.1.1
-
12.2.2 DBA Data
12.2.2
-
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: SYS.STANDARD
12.1.1
owner:SYS, object_type:PACKAGE, object_name:STANDARD, status:VALID,