Search Results update_sll_amount




Overview

OKS_BILL_SCH is the service contracts billing schedule engine within Oracle E-Business Suite. It belongs to the OKS (Service Contracts) application and is owned by APPS, with an API classification of OTHER in the ETRM 12.2.2 repository. The package encapsulates the business logic that creates, maintains, cascades, and terminates billing schedules for service contracts and subscriptions, including the line-level and subline-level revenue and price allocation records that drive invoicing. It operates against the service contracts data model (OKS_K_HEADERS_B, OKS_K_LINES_B, OKS_BILL_SUB_LINES) and the contracting core tables (OKC_K_HEADERS_B, OKC_K_LINES_B). Because billing schedule generation must remain consistent with order management data, the package also touches OE_ORDER_LINES_ALL through a documented synonym. The package exposes 25 documented procedures and functions and is referenced by 18 other packages, which places it centrally in the service contracts billing call graph. Standard logging and message-handling constants are inherited from OKC_API, and runtime diagnostics use the FND_LOG hierarchy through the module identifier oks.plsql.oks_bill_sch.

Key Procedures and Functions

The documented entry points group into schedule creation, schedule maintenance, amount recalculation, date cascading, and deletion.

Tables Accessed

The package reads and writes the service contracts base tables OKS_K_HEADERS_B, OKS_K_LINES_B, OKS_SUBSCR_HEADER_B, and OKS_SUBSCR_ELEMENTS, and the billing detail tables OKS_BILL_CONT_LINES and OKS_BILL_SUB_LINES, which hold contract and subline billing records. Schedule structure is stored in OKS_STREAM_LEVELS_B and OKS_LEVEL_ELEMENTS, and attribute-level rule data in OKS_LEVEL_ELEMENTS and OKS_SUBSCR_ELEMENTS. Contracting core data is read from OKC_K_HEADERS_ALL_B, OKC_K_HEADERS_B, OKC_K_ITEMS, OKC_K_LINES_B, and OKC_K_REL_OBJS, which provide contract header, line, item, and relationship context. OE_ORDER_LINES_ALL supplies sales order line dates and identifiers used when synchronizing billing dates back to order management. DUAL is used for single-row computations.

Usage Notes

OKS_BILL_SCH is primarily invoked indirectly rather than from end-user forms directly. Service Contracts forms and concurrent programs that generate or regenerate billing schedules call into this package, and the 18 dependent packages confirm it is a shared internal API layer. Custom extensions should call the documented procedures rather than updating OKS_BILL_SUB_LINES or OKS_BILL_CONT_LINES directly, because date cascading, amount recalculation, and order management synchronization are coordinated inside these routines. Date-sensitive operations such as UPDATE_OM_SLL_DATE and UPDATE_BS_INTERFACE_DATE should be executed in the same transaction as the corresponding order management change to preserve consistency. Because message constants are inherited from OKC_API, callers should interpret return statuses using the OKC_API success, error, and unexpected-error flags, and review FND_LOG output under the oks.plsql.oks_bill_sch module when diagnosing failures.