Search Results pay_mx_dim_mag
Overview
PAY_MX_DIM_MAG is an Oracle E-Business Suite PL/SQL package body owned by the APPS schema that supports the Mexican statutory payroll reporting process known as DIM (Declaración Informativa de Sueldos y Salarios, or the "mag" magnetic media extract). Mexican tax legislation requires employers to report salary and withholding information to the tax authority (SAT) in a prescribed electronic format, and this package provides the programmatic engine that constructs that file from Oracle Payroll data. It is part of the broader Oracle Payroll localization for Mexico and works alongside companion packages such as PAY_MX_UTILITY, PAY_MAGTAPE_GENERIC, and PAY_MX_ISR_TAX_FORMAT37_V.
The package status is documented as VALID, and its API classification is recorded as OTHER. It is not referenced by any other database object, indicating it serves as a top-level, self-contained generator rather than a reusable library component.
Key Procedures and Functions
ETRM documents five procedures within this package body:
- RANGE_CURSOR — A cursor-driven procedure that iterates over the population ranges defined for the payroll run, providing the row-by-row driving logic for the extract. It reads from PAY_POPULATION_RANGES to determine the assignment scope for reporting.
- ACTION_CREATION — Creates the payroll action records required to drive and log the DIM extract, interfacing with PAY_ASSIGNMENT_ACTIONS, PAY_ASSIGNMENT_ACTIONS_S, PAY_PAYROLL_ACTIONS, and PAY_ACTION_INTERLOCKS.
- GENERATE_XML_HEADER — Emits the opening section of the XML output, including file-level identifiers, period data, and employer information required by the SAT schema.
- GENERATE_XML — The main body generator that produces the per-employee and per-concept detail records for the DIM file, applying the Mexican salary and tax rules.
- GENERATE_XML_FOOTER — Writes the closing control totals and trailer section that validates the extract against expected record counts.
The separation of header, body, and footer generation allows the XML to be streamed incrementally via DBMS_LOB, which is important for large payroll populations.
Tables Accessed
- PAY_ASSIGNMENT_ACTIONS / PAY_ASSIGNMENT_ACTIONS_S — Source of processed assignment-level action results used as the primary payroll data feed.
- PAY_PAYROLL_ACTIONS — Provides the parent payroll action context (run, period, consolidation set) for the extract.
- PAY_ACTION_INTERLOCKS — Enforces action-level locking and sequencing so the extract does not collide with concurrent payroll processing.
- PAY_POPULATION_RANGES — Defines the chunking strategy that RANGE_CURSOR iterates over.
- DBMS_LOB and PLITBLM — Used for large-object handling and index-by-table manipulation during XML assembly.
- DUAL — Standard single-row utility reference.
Usage Notes
PAY_MX_DIM_MAG is typically invoked by the Mexican Payroll statutory reporting concurrent program, which submits the DIM extract and produces the output file stored via the standard Payroll archive (PAY_CORE_FILES). It relies on FND_GLOBAL for session context, FND_DATE and FND_NUMBER for locale-safe formatting, and HR_UTILITY and HR_NONRUN_ASACT for HR lookup support. Because the package manipulates payroll actions directly, it should only be run through the supported concurrent program and not called from ad hoc SQL. Customizations should extend, not bypass, the action interlock logic to avoid corrupting payroll action state.
-
PACKAGE BODY: APPS.PAY_MX_DIM_MAG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PAY_MX_DIM_MAG, status:VALID,
-
PACKAGE: APPS.PAY_MX_DIM_MAG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PAY_MX_DIM_MAG, status:VALID,
-
PACKAGE: APPS.PAY_MX_DIM_MAG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:PAY_MX_DIM_MAG, status:VALID,
-
PACKAGE BODY: APPS.PAY_MX_DIM_MAG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PAY_MX_DIM_MAG, status:VALID,
-
PACKAGE: APPS.PAY_MX_DIM_MAG
12.1.1
-
PACKAGE: APPS.PAY_MX_DIM_MAG
12.2.2
-
PACKAGE: APPS.PAY_MX_UTILITY
12.1.1
owner:APPS, object_type:PACKAGE, object_name:PAY_MX_UTILITY, status:VALID,
-
PACKAGE: APPS.PAY_MX_UTILITY
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PAY_MX_UTILITY, status:VALID,
-
PACKAGE: APPS.PAY_PAYROLL_XML_EXTRACT_PKG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:PAY_PAYROLL_XML_EXTRACT_PKG, status:VALID,
-
PACKAGE: APPS.PAY_EMP_ACTION_ARCH
12.1.1
owner:APPS, object_type:PACKAGE, object_name:PAY_EMP_ACTION_ARCH, status:VALID,
-
PACKAGE: APPS.PAY_CORE_FILES
12.1.1
owner:APPS, object_type:PACKAGE, object_name:PAY_CORE_FILES, status:VALID,
-
SYNONYM: APPS.PAY_POPULATION_RANGES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PAY_POPULATION_RANGES, status:VALID,
-
PACKAGE: APPS.PAY_PAYROLL_XML_EXTRACT_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PAY_PAYROLL_XML_EXTRACT_PKG, status:VALID,
-
PACKAGE: APPS.PAY_EMP_ACTION_ARCH
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PAY_EMP_ACTION_ARCH, status:VALID,
-
PACKAGE: APPS.PAY_AC_UTILITY
12.1.1
owner:APPS, object_type:PACKAGE, object_name:PAY_AC_UTILITY, status:VALID,
-
PACKAGE: APPS.PAY_MAGTAPE_GENERIC
12.1.1
owner:APPS, object_type:PACKAGE, object_name:PAY_MAGTAPE_GENERIC, status:VALID,
-
PACKAGE: APPS.PAY_AC_UTILITY
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PAY_AC_UTILITY, status:VALID,
-
PACKAGE: APPS.PAY_CORE_FILES
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PAY_CORE_FILES, status:VALID,
-
SYNONYM: APPS.PAY_POPULATION_RANGES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PAY_POPULATION_RANGES, status:VALID,
-
PACKAGE: APPS.PAY_MAGTAPE_GENERIC
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PAY_MAGTAPE_GENERIC, status:VALID,
-
VIEW: APPS.PAY_MX_ISR_TAX_FORMAT37_V
12.1.1
owner:APPS, object_type:VIEW, object_name:PAY_MX_ISR_TAX_FORMAT37_V, status:VALID,
-
VIEW: APPS.PAY_MX_ISR_TAX_FORMAT37_V
12.2.2
owner:APPS, object_type:VIEW, object_name:PAY_MX_ISR_TAX_FORMAT37_V, status:VALID,
-
PACKAGE: APPS.HR_NONRUN_ASACT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:HR_NONRUN_ASACT, status:VALID,
-
SYNONYM: APPS.PAY_ASSIGNMENT_ACTIONS_S
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PAY_ASSIGNMENT_ACTIONS_S, status:VALID,
-
SYNONYM: APPS.PAY_ACTION_INTERLOCKS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PAY_ACTION_INTERLOCKS, status:VALID,
-
PACKAGE BODY: APPS.PAY_MX_DIM_MAG
12.1.1
-
PACKAGE: APPS.HR_NONRUN_ASACT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:HR_NONRUN_ASACT, status:VALID,
-
SYNONYM: APPS.PAY_ASSIGNMENT_ACTIONS_S
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PAY_ASSIGNMENT_ACTIONS_S, status:VALID,
-
PACKAGE BODY: APPS.PAY_MX_DIM_MAG
12.2.2
-
APPS.PAY_MX_DIM_MAG dependencies on PAY_MX_DIM_MAG
12.1.1
-
APPS.PAY_MX_DIM_MAG dependencies on PAY_MX_DIM_MAG
12.2.2
-
SYNONYM: APPS.PAY_ACTION_INTERLOCKS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PAY_ACTION_INTERLOCKS, status:VALID,
-
SYNONYM: APPS.PAY_ASSIGNMENT_ACTIONS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PAY_ASSIGNMENT_ACTIONS, status:VALID,
-
SYNONYM: APPS.PAY_ASSIGNMENT_ACTIONS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PAY_ASSIGNMENT_ACTIONS, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
12.1.1 DBA Data
12.1.1
-
12.2.2 DBA Data
12.2.2
-
12.2.2 DBA Data
12.2.2
-
SYNONYM: PUBLIC.DBMS_LOB
12.1.1
owner:PUBLIC, object_type:SYNONYM, object_name:DBMS_LOB, status:VALID,
-
SYNONYM: PUBLIC.DBMS_LOB
12.2.2
owner:PUBLIC, object_type:SYNONYM, object_name:DBMS_LOB, status:VALID,
-
SYNONYM: APPS.PAY_PAYROLL_ACTIONS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PAY_PAYROLL_ACTIONS, status:VALID,
-
PACKAGE: APPS.FND_NUMBER
12.1.1
owner:APPS, object_type:PACKAGE, object_name:FND_NUMBER, status:VALID,
-
APPS.PAY_MX_DIM_MAG dependencies on HR_UTILITY
12.2.2
-
APPS.PAY_MX_DIM_MAG dependencies on HR_UTILITY
12.1.1
-
PACKAGE: APPS.FND_NUMBER
12.2.2
owner:APPS, object_type:PACKAGE, object_name:FND_NUMBER, status:VALID,
-
SYNONYM: APPS.PAY_PAYROLL_ACTIONS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PAY_PAYROLL_ACTIONS, status:VALID,
-
PACKAGE: APPS.FND_DATE
12.1.1
owner:APPS, object_type:PACKAGE, object_name:FND_DATE, status:VALID,
-
PACKAGE: APPS.FND_DATE
12.2.2
owner:APPS, object_type:PACKAGE, object_name:FND_DATE, status:VALID,
-
SYNONYM: PUBLIC.DUAL
12.2.2
owner:PUBLIC, object_type:SYNONYM, object_name:DUAL, status:VALID,
-
SYNONYM: PUBLIC.DUAL
12.1.1
owner:PUBLIC, object_type:SYNONYM, object_name:DUAL, status:VALID,