Objective:
We might encounter a situation where we need to clean up master data tables and SAP does not allow deletion of master data that is in use. We need to find out what entries are in use and what can be deleted.
Introduction:
There are 3 flags CHCKFL, DATAFL and INCFL in SID tables. These fields gets updated depending upon the where used list of an entry/SID. SID flags are BI: Locked Data Elements and play an important role to keep SAP BW data consistent by providing locking over data.
CHCKFL - Flag: Value in check tables (indicates some entries in master data table is still in use by other objects).
DATAFL - Flag: Value in dimension or available as attribute(some other infocube(s) is/are still using SID – master data table).
INCFL - Flag: Value is built into all inclusion tables (some other hierarchies is still using SID – master data table value).
In other words flag values indicate that data is still linked to other objects in BW.
SID Flag Matrix Revisited:
SID | CHCKFL Flag: Value in check tables | DATAFL Flag: Value in dimension or available as attribute | INCFL Flag: Value is built into all inclusion tables | Remarks | Master data can be deleted with SID's |
---|---|---|---|---|---|
0 | X | X | X | This entry appears if transaction data loaded before master data. | No |
Number | - | - | X | SID is in use in Dimentation table of cube(s) or in Hierarchy | No |
Number | X | - | X | SID is in use in Dimentation table of cube(s) or in Hierarchy and data is also in use in P or Q table (Master data table) | No |
Number | X | X | X | Is in use in Dimentation table/ any active table of DSO | No |
Number | - | X | X | Is part of attribute of another master data infoobject and also declared as Nav attribute. | No |
Number | - | - | - | Yes | |
Number | X | - | - | Data entered in master data table (or text table; infoobject with only text table) and not in use in any other tables | Yes |
Number | - | X | X | If an infoset is created on top of infoobject, then SID's will be created for all infoobject included in infoset. | Yes |
If an entry is in use by some other object then we are not allowed to delete that master data (along with SID entries). So there are 2 approach that we can follow-
In below example we are going to follow the 2nd process (although both process are similar):
Comparing entries of SID table with FLAG matrix we can conclude that 4 entries were not used in any other object except own Master data. So 4 entries can be deleted.
Note:- Only unlocked entries were deleted along with SID’s.
Details:
Object - RSDMD
Subobject - MD_DEL
User - UID used for deletion activity.
Note:- TCode: SGL1 can be used to find other application log process as well. We can even use ST14/DB02 to identify top master data tables.
Feel free to leave your comment(s)
***This article is a continuation of another article "Analysis of SID tables in SAP BW "http://scn.sap.com/docs/DOC-39856
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
10 | |
7 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 |