You can define what to log by creating your own read access logging configuration or modifying a template delivered by SAP.
-
In the Read Access Logging Configuration app, choose Configuration.
-
Select a channel.
-
Decide whether to create a configuration or modify one of the templates delivered by SAP.
SAP delivers default configurations you can copy and modify to your needs or you can create your own.
-
To create your own configuration, select a channel and choose Create under Search Results.
For channels that use recordings, choose a recording.
-
To copy a configuration from SAP, do the following.
-
Under Search Criteria, filter with Owner is SAP Template.
-
From the search results, select a template from SAP.
Templates from SAP use the (SAP) icon under Owner.
-
Under Actions, choose (Copy).
For channels that use recordings, copy the recording that comes with the template under the same name or enter a new name.
-
Find the channel you just copied and choose ✏️.
-
-
Depending on the channel, select the object you want to create a configuration for.
For example, an operation for a Web Service, a function module for an RFC, or an application for a Web Dynpro. If you are editing an existing channel, the object is already selected for you.
For more information, see Channel-Specific Information.
-
Enter the required data.
-
For Dynpro, choose Application / Software Component.
-
For Dynpro and Web Dynpro, specify a Log Context.
-
-
Create log groups.
For a logging purpose, only create one logging group.
-
Under Log Groups, choose (Create Log Group).
-
Specify a logging purpose and a description for the log group.
-
Specify the fields that you want to log together in the log group.
Move fields in the Field list to the log group.
-
In the Fields list, define how each field should be logged.
-
The Logging Type determines if only the field name is logged when accessed or if the value of that field is also logged.
-
To save space in the database, set Exclude if Initial to have Read Access Logging ignore a field if its value is initial.
The initial value is not the default value, but the technical initial value. For example, the empty value for string or character-based fields or the number zero for integers. The default value is logged in any case.
If this option is set and all fields within a Web service, RFC, or Web Dynpro UI are initial, no log entry is created for any of the fields.
-
For Dynpro and Web Dynpro, specify the Field Type, which is whether an input field, an output (display) field, or both.
Values for password fields cannot be included in logs. TheLogging Type is Without Value and cannot be changed.
-
-
-
Create conditions.
-
Under Conditions choose (Create Condition).
If you do not assign any conditions, select the Without Condition checkbox in the log group attributes and continue with the next step.
-
Specify a name and a description for the condition.
-
Create one or more expressions for the condition.
Expressions are joined using logical
AND
. -
Specify the fields that you want to define rules for.
Move fields in the Field list to the expression.
-
For each field, specify the select option (the selection criteria).
For example, Username Inclusive Equals John Smith.
Select options are joined using logical
OR
. -
Assign conditions to a log group or set the Without Condition option.
To assign a condition, select the Log Group, choose Assign Condition and select a condition. Activate the assignment if you want to apply the condition to the log group. The log groups and conditions do not need to be activated, however.
-
-
To check the configuration for consistency and function: choose (Check Configuration) Check.
-
Save your entries.