8 Data Base Units

This topic describes about the data base units.

Static Scripts

The following static scripts generated are required for the proper functioning of a Call Form screen. Refer document on generated units for detailed explanation

  1. Menu Details

    Scripts for SMTB_MENU and SMTB_FCC_FCJ_MAPPING are required for the functioning of Call Form screen

  2. Call Form details

    Script for CSTB_CALL_FORM_NODES is required for attaching the call forms to the main function id. This has to be compiled in the schema before attaching the Call form to the main function Id

  3. Lov Details
  4. Amendable Details
  5. Label details
  6. Screen Details
  7. Block details
  8. Data Source Details

System Packages

Main package would be generated by the Tool and should not be modified by the developer.

There is small change in the structure of the package depending on the type of the call form (Maintenance or Transaction).

Unlike normal maintenance function ids, call form packages does not have any call to the business logic within itself (similar to transaction function id). If developer wishes to uses any functions within the main package , call has to be made from the release specific package.

Main package contains functions for :

  • Converting Ts to PL/SQL Composite Type
  • Calling fn_main.
  • Mandatory checks (fn_check_mandatory).
  • Default and validation(fn_default_and_validate)
  • Querying(fn_query)
  • Converting the Modified Composite Type again to TS

Except the functions for type conversions, others functions calls the respective hook functions in hook packages of the call forms. Thus no processing logic within the main package is used It is to be noted that each of these functions are called from the main package of the main function id (where this call form is used) during respective stages.

But the package contains many other system generated functions for operations like

  • Mandatory checks(fn_sys_check_mandatory)
  • Default and validation(fn_sys_default_and_validate)
  • Uploading to DB(fn_sys_upload_db)
  • Query operation (fn_sys_query) etc

These functions are not called anywhere in the package. These functions if required can be called by the developer from the release specific package. Otherwise developer can write his own logic for the same in the Hook Packages

Hook Packages

Release specific packages will be generated based on the release type (KERNEL.CLUSTER or CUSTOM). The structure of the package depends on the type of call form (Maintenance or Transaction). Developer can add his code in the release specific hook package.