Logging
Use
You can keep logs of activities performed on elements in Records Management: You can display the log for any element at any time.
Prerequisite: The service provider underlying the element has implemented the logging functionality. This is always the case with standard service providers delivered by SAP.
Features
Customizing
You can define the level of detail in the log in Customizing (in registry maintenance). The level of detail is a classification parameter and can be assigned to an element type. In total, there are three classification parameters that relate to the log. These have the following meaning:
-
LOG_LEVEL: Level of detail in the log. The higher the level, the more detail. In the service providers delivered by SAP, the values specified below apply (activities for structure elements also apply for elements belonging to these structure elements):
0: No logging
1: Logging of critical activities ( Delete, Open, and Close)
2: Logging of critical and changing activities
3: Logging of displaying, changing and critical activities
-
LOG_KEEP_DAYS: Time in days that the log entries are kept for (determines the expiry date)
You can enter any value you want. The standard setting is 365 days.
-
LOG_NOT_DEL: Flag that specifies whether logs are deleted after an expiry date
The expiry date is the date that is calculated from the entry for LOG_KEEP_DAYS. If you select the value 'X' when you create an element type, then the logs are not deleted, even after the expiry date. If you want logs to be deleted for an element type, do not make an entry in this parameter when creating the element type in question, and proceed as described below (Deleting Log Entries). It is also possible to delete specific log entries using this flag.
If you do not assign any classification parameters to an element type, all elements belonging to it will have the following default settings:
-
LOG_LEVEL: 2
-
LOG_KEEP_DAYS: 365
-
LOG_NOT_DEL: No value
Display
You can call the log display screen either by choosing the relevant symbol in the display screen for the element in question or via the context menu. This depends on the individual element.
The log display screen shows the date, time, user, activity, changed attribute values, and comments. It the element contains structure elements, all activities performed on the subobjects belonging to the structure element are displayed also.
Transaction
You can also use a special transaction to display the log for an element. To do this, call the SAP Easy Access Menu and choose (transaction SRMPROTOVIEW). The transaction starts a program that selects and displays log entries.
We recommend that you always display the log for just one element at a time, as the log entries do not directly allow you to tell which element the entry actually refers to. You can identify the element either from the POID Directory ID or from its unique ID. We recommend identifying the element from the POID Directory ID. You can find the POID Directory ID of an element by positioning the cursor on this element in transaction ORGANIZER or SCASE and choosing Information in the context menu. The POID Directory ID is then displayed under Technical Information.
Deleting Log Entries
Log entries are not deleted automatically. To delete log entries, you need to run function module SRM_PROTOCOL_DELETE_EXPIRY in test mode. The function module then deletes all entries whose retention period has expired. This retention period depends on the entry for classification parameter LOG_KEEP_DAYS (see above).
To keep the data volume as low as possible, you are advised to run this function module regularly and to set classification parameter LOG_LEVEL to '0' for all element types that you do not require logs for.

