Versioning for Master Data

Attributes and hierarchies can have two possible versions: an active version (A version) and a modified version (M version). Texts and XXL attributes are immediately active after they have been loaded. Existing texts are overwritten when new texts are loaded.

Attribute versions are managed in the P table and in the

Q table. Time-independent attributes are stored in the P table and time-dependent attributes are stored in the Q table. In the P table, you will find (arranged from left to right) the key fields of the characteristics (for example, 0COSTCENTER: CO_AREA and COSTCENTER), the technical key field OBJVERS (versioning), the flag field CHANGED (versioning) and a number of attribute fields (0 or more), which can be display attributes or navigation attributes. The structure of the Q table is identical to the structure of the P table, with the addition of the 0DATEFROM and 0DATETO fields to map the time-dependency.

The OBJVERS and CHANGED fields must always be taken into account in versioning:

If you load master data that does not yet exist, an active version of this data is added to the table. If, when you reload the data, the value of the attribute changes, the active entry is flagged For Deletion (CHANGED = D) and the M/I (modified(insert)) version of the new record is added.

You are loading master data for the 0COSTCENTER characteristic. After activation, the P table looks like this:

Later, you load new records. These new records are given the OBJVERS entry M and the CHANGED entry I. The available records, for which new data has been loaded, are given the OBJVERS entry D for "to be deleted":

Before the new records can be displayed in an executed query, you have to start the change run (see System Response Upon Changes to Data: Aggregate). During the change run, the old record is deleted and the new record is set to active.

In BW reporting, it is always the active version that is read. InfoSets are an exception to this rule, as the Most Recent Reporting function can be switched on in the InfoSet Builder. With this type of InfoSet, the most recent records are displayed in reporting, even if they are not yet active.

For more information see Most Recent Reporting for InfoObjects.