Results for “csp_cmerge_bb1”

34 results




AI-generated from documented ETRM metadata — verify critical details on the linked pages.

Overview

APPS.CSP_CMERGE_BB1 is a merge-handling PL/SQL package body within the Oracle E-Business Suite Customer Relationship Management (CRM) schema, historically associated with the Customer Service (CS) product family. Its business purpose is to support the customer merge process by reconciling and re-pointing foreign key references that belong to the CS_ACCESS_CONTROL_TEMPLATES entity whenever two customer records are combined. The package operates as a merge "block" — one of a series of sequenced units coordinated by the customer merge concurrent program — that ensures dependent data is transferred from a duplicate (source) customer to the surviving (target) customer without violating referential integrity.

The naming convention (CSP_CMERGE_BB1) indicates a Customer Merge processing block, with "^BB1" denoting a specific block number in a chain of related merge routines. The package is classified by ETRM as an OTHER API object, meaning it is invoked internally by the merge engine rather than being a publicly published interface, though it remains accessible to custom code within the APPS schema.

Key Procedures and Functions

The ETRM metadata documents a single public procedure: MERGE. The package body excerpt reveals that MERGE coordinates five separate internal (local) procedures to accomplish its merge work:

  • MERGE — The entry point. It receives the concurrent request identifier, the merge set number, and the processing mode, writes a header line to the log via ARP_MESSAGE, and dispatches the subordinate merge steps. In LOCK mode it first locks CS_ACCESS_CONTROL_TEMPLATES to serialize access with other merge blocks.
  • CS_MERGE_SYS_INSTALL_SITE_ID — Re-points the system_install_site_use_id reference on affected templates to the surviving customer.
  • CS_MERGE_SYS_SHIP_SITE_ID — Re-points the system_ship_to_site_use_id reference.
  • CS_MERGE_CP_INSTALL_SITE_ID — Re-points the cp_install_site_use_id reference.
  • CS_MERGE_CP_SHIP_SITE_ID — Re-points the cp_ship_to_site_use_id reference.
  • CS_MERGE_CUSTOMER_ID — Re-points the customer_id on the access control templates.
  • CS_CHECK_MERGE_DATA — Validates that the merge can proceed and that data remains consistent after the updates.

These local procedures are declared and invoked within the package's HDR$ region context and are not intended for external calls.

Tables Accessed

The package processes the CS_ACCESS_CONTROL_TEMPLATES table, updating its site-use identifiers and customer_id columns as part of the merge. ETRM additionally documents a reference to the RA_CUSTOMER_MERGES table (accessed through APPS synonyms), which is the master repository recording each merge request, its source and target customers, set number, and status. CSP_CMERGE_BB1 reads RA_CUSTOMER_MERGES to obtain the parameters of the current merge and to update merge progress, while writing changes to CS_ACCESS_CONTROL_TEMPLATES. Because the package relies on APPS synonyms, it interacts with the underlying objects in the owning schema transparently.

Usage Notes

CSP_CMERGE_BB1 is not normally called directly by end users. It is invoked as part of the Oracle EBS Customer Merge concurrent program (typically "Customers Merge" / AR customer merge), which processes a merge set identified by a request ID and set number. The processing mode parameter supports a LOCK phase — during which the block acquires a table lock to coordinate with parallel merge blocks — and subsequent update phases. ETRM records that the package is referenced by one other package, confirming it participates in a larger orchestration chain rather than standing alone. Custom developers should not modify this seeded package; instead, they should target the corresponding DFF or extension hooks where available. When troubleshooting merge failures, the message_text column and ARP_MESSAGE log output written by MERGE are the primary diagnostic source, since the "^BB1" log lines identify exactly which of the five update steps succeeded or failed.