Administrating DataStore Objects (advanced)

Objective

After completing this lesson, you will be able to administrate DataStore Objects (advanced).

DataStore Objects (advanced) Administration

Scenario

Data has been loaded into DataStore Objects (advanced). Let's see how loaded requests are managed in DataStore Objects (advanced) and which possibilities are offered in SAP BW/4HANA to delete data from DataStore Objects (advanced). We'll discuss the behavior in the Data Mart DataStore Object and the Standard DataStore Object.

Request Management in DataStore Objects (advanced)

SAP BW/4HANA screens showing DataStore Object (advanced) U00_ADSOA - U00 Actual Cost Details, context menu 'Manage', and Fiori tile displaying 157 DataStore objects.

You can launch the app DataStore Objects (Manage requests) from the BW Modeling Tools using the icon on the toolbar, or you can use the context menu of the DataStore Object (advanced). You can also launch it directly from the SAP BW/4HANA Cockpit. You can use this app to activate and delete requests. Let's first have a look at request activation.

SAP Manage DataStore screens: top shows loading indicator; middle shows details of a load request with Activate button; bottom shows Activate dialog and 'Activating' status.

The activation run (activating the data in the inbound table) is usually triggered by a process chain, or can be started manually in test cases. The data is sorted at the start of the activation run. The sorting takes place, primarily, according to the semantic key of the DataStore Object (advanced) (that is, the table with the active data). Next, the data is sorted according to the technical key of the inbound table.

You can choose whether the changes called up from the different load requests are to be combined in one change log request, or generated for each loaded request. A load request identifies when records were loaded, a change log request identifies when the records were activated and moved into the change log from the inbound table.

Activation of requests in a Data Mart DataStore Object means compression. The records are summarized to one entry and are deleted from the /BIC/A<ADSO>1 inbound table and moved to the /BIC/A<ADSO>2 active data table. The Change Log table isn’t used for a Data Mart DataStore Object.

Activation of requests in a Standard DataStore Object means delta harmonization. Activation of a request in a Standard DataStore Object deletes the request from the /BIC/A<ADSO>1 inbound table and updates the /BIC/A<ADSO>2 active data table and /BIC/A<ADSO>3 change log table.

The option Activate Request by Request enables request by request rollback and deletion for Standard DataStore Objects.

If you’ve more than one DTP load request that is yet to activate, and you’ve decided to activate only one request, then this request ID helps to selectively process the records from the inbound table to active and change log table.

When you select the get delta request by request in DTP settings, the delta requests from the source are processed one after another and it creates separate request IDs for each run.

Screenshot of SAP Manage DataStore: U08 Plan Costs advanced view with slider, Load and Activation Requests tables with timestamps, record counts, and change log indicators.

Besides the Default View, the app DataStore Objects (Manage requests) also offers an Advanced View. On the Advanced View, you can see if the request has been activated and updated to a target.

It also offers information for each load, where you can see the following request IDs:

  • Load request (created at the time of loading)

  • Activation request (created at the time of activation)

Request Deletion in Data Mart DataStore Objects

Screenshot of SAP UI showing a load request list with a highlighted row and a Delete button at bottom-right.

During upload of data, a request is always inserted into the /BIC/A<ADSO>1 table. Each record gets its own request ID, package ID and record ID. This feature enables you, for example, to delete a request from the /BIC/A<ADSO>1 table after the upload. However, these data loads can result in several entries in the table with the same values for all Characteristics except the request ID. This will increase the size of the table unnecessarily.

SAP Manage DataStore screen showing U08_ADSOA activation request log; status “Activating”, Active Data Table storage, 583 records, timestamp 20.11.2023 13:21:51.

During activation of requests in a Data Mart DataStore Object (compression), these records are summarized to one entry and are deleted from the /BIC/A<ADSO>1 table and moved to the /BIC/A<ADSO>2 table. In the /BIC/A<ADSO>2 table, there's no request ID, package ID, or record ID. Once the data has been compressed, it is not possible to display or delete the data for a specific request ID.

Request Deletion in Standard DataStore Objects

Two SAP Manage DataStore screens: a requests list and a details page for activation of U08_ADSOP, with orange-highlighted row and Delete button.

In a Standard DataStore Object, you can delete load requests, even if they've been activated.

Screenshot of SAP Manage Request modal confirming deletion; warning that later activation requests will be rolled back, with a Delete button highlighted.

When you've used the option Activate Request by Request, it's possible to delete a request including rollback. When you want to delete an older request in a Standard DataStore Object, all newer requests will then be rolled back to ensure data consistency (due to the overwrite behavior of Key Figures and data fields). The rollback of requests is possible because the change log is used to find out how the data looked like before the load so a reversal can be executed.

SAP datastore screen: U00 Plan Costs requests activating, 4 records each; Advanced View Targets shows U00 Actual Cost Details; Clean Change Log Delete button highlighted.

To ensure data consistency on different data stages, a data flow using an active delta DTP only allows request deletion in the source, if beforehand the request in the subsequent target has been deleted.

Screenshot showing details of an activation request, with a highlighted Clean Change Log button and a confirmation dialog listing prior change records and timestamps.

The option Clean Change Log only deletes data from the Change log table. Be careful if you have to reload data to a subsequent target or if you have to roll back data.

Data Deletion in DataStore Objects (advanced)

UI shows Delete Data in the menu; below is a dialog titled 'SD: Sales Document Item Data' with 'Delete Data from All Tables' option selected.

The option Delete Data from All Tables is the fastest way to delete all data from all tables of a DataStore Object (advanced) in one step.

SAP Manage DataStore: select Further Actions > Delete Data; Selective Deletion screen appears with options and condition fields for cost element, controlling area, currency.

The option Selective Deletion offers you to delete data from a DataStore Object (advanced) based on values of a Characteristic, for example all data of a plan version.

For a Standard DataStore Object, selective deletion only applies to the Active Data table, for a Data Mart DataStore Object, selective deletion applies to the Inbound Table and the Active Data table.

Video: Managing Requests in Data Mart DataStore Objects and Standard DataStore Objects

Watch this video to learn how to manage requests in Data Mart DataStore Objects and Standard DataStore Objects.