Document Base Table (DBT)

Use

The document base table (DBT) is a repository for data received from external systems and required for document creation. This typically includes transaction data from POS systems, sales meter readings, and dip readings.

To improve performance and reduce data volume, data can be held in the DBT at an aggregated level. Subsequent processes, such as invoicing, settlement with clearing houses, and stock adjustment use the data held in the DBT.

Features

Aggregation of Source Data

The level of aggregation is determined by the fields that the DBT contains.

Example Example

The meter readings upload provides sales volume data as recorded on a specific day at a specific time. If the fields for meter reading, day, and time are contained in the DBT, no aggregation occurs. However, if the time field is not contained in the DBT, readings for the day are aggregated.

You can add extra fields to the DBT to include data from additional source table fields. This allows greater flexibility for subsequent processes.

End of the example.

In the pre-aggregation step, the system checks for additional aggregation parameters specified in the assigned aggregation schema .

For dealer-owned products (such as candies and newspapers), less information is needed than for fuels. Therefore, it is not necessary to create a new entry in the DBT when a price change is uploaded from the POS system. Instead, you can use a business add-in to specify that the average price of dealer-owned materials is used for subsequent processes.

It is also possible to manipulate the "pre-aggregated" data before it is passed to the DBT.

If a payment card transaction is uploaded and then a cancellation of this transaction is uploaded before a subsequent process uses the original data, a zero record would be saved to the DBT and made available to subsequent processes. To avoid the posting of zero values, for example within the partner invoicing process, you can define a method to delete entries with zero quantity and net value.

Completion Strategy

You can define a completion strategy to enable the deletion report to identify data that is no longer required for document creation.

Note Note

Once data held in the DBT has been used in a document, the Oil & Gas System creates a link between the document and the data source (that is, the relevant detailed transaction file, the meter reading history table, or the dip reading history table). The link is stored in a separate table, called the document transaction link table (DTLT).

End of the note.

Activities

In Customizing for the Industry Solution Oil & Gas (Downstream) , you:

  • Define subsequent processes by choosing Start of the navigation path SSR Next navigation step Document Base Table Next navigation step Define subsequent processes. End of the navigation path

  • Define completion strategies and link these to subsequent processes by choosing Start of the navigation path SSR Next navigation step Document Base Table Next navigation step Completion Strategy Next navigation step Define completion strategy. End of the navigation path

  • Assign completion strategies to processes by choosing Start of the navigation path SSR Next navigation step Document Base Table Next navigation step Completion strategy Next navigation step Assign completion strategy for .....(name of process) End of the navigation path .

  • Define aggregation schemas by choosing Start of the navigation path SSR (Service Station Retailing) Next navigation step Document Base Table Next navigation step Aggregation Schema Next navigation step Define Aggregation Schema. End of the navigation path

  • Assign aggregation schemas to completion strategies by choosing Start of the navigation path SSR (Service Station Retailing) Next navigation step Document Base Table Next navigation step Completion Strategy Next navigation step Define completion strategy End of the navigation path .

  • Define additional aggregation parameters by choosing Start of the navigation path SSR (Service Station Retailing) Next navigation step Document Base Table Next navigation step Aggregation Schema Next navigation step Maintain Business Add-Ins for Aggregation Schema Definitions Next navigation step Business Add-In to Fill the Aggregation Variable Key. End of the navigation path

  • Define the manipulation of aggregated data prior to saving to the DBT by choosing SSR ( Start of the navigation path Service Station Retailing) Next navigation step Document Base Table Next navigation step Aggregation Schema Next navigation step Maintain Business Add-Ins for Aggregation Schema Definitions Next navigation step Business Add-In to Manipulate Entries after Aggregation End of the navigation path .

To remove processed data from the DBT, run report ROIR_DELETE_DBT. This deletes all data that is no longer required according to the completion strategy assigned to the process.