Displaying Change Logs

Objective

After completing this lesson, you will be able to understand how to display change logs

Displaying Change Logs - Sales Documents

Business Example

As a sales manager, Lisa often needs to track and analyze changes across various sales documents, such as sales quotations, sales contracts, sales orders, and returns orders. Traditionally, Lisa has to switch between individual sales documents to access their change logs, which can be time-consuming and error-prone, especially when dealing with a large volume of documents.

With the Display Change Logs - Sales Documents app, Lisa can now monitor changes to various sales documents in one place. The app provides a user-friendly description for each change, making it easier for Lisa to understand and analyze the data. Equipped with sophisticated filtering options, Lisa can quickly refine her search based on criteria such as the partner function, condition type, field name, and sold-to party.

Display Change Logs - Sales Documents app.

Before using the Display Change Logs - Sales Documents app, add either of the following to your user:

  • Business role template Internal Sales Representative (SAP_BR_INTERNAL_SALES_REP)
  • Business role template Sales Manager (SAP_BR_SALES_MANAGER)
  • Business catalog Sales - Sales Document Change History (SAP_SD_BC_SLSDOC_CHGHIST_PC)
A change log for sales document 5483, with five log entries. Three logs were logged on the table level, and two logs were logged on the field level.

A change log contains changes that have been made to a sales document. Each log entry stores information about a change to the document header, a document item, or a schedule line, and the change is logged on field or table level:

  • The system logs a change on table level when an entry is created in or deleted from a table. For example, when a sales order item is created, the system logs a change on table level because a new entry is generated in the item table.
  • The system logs a change on field level when the value of a field is altered.
The Change Type column is highlighted with three different types: Insert, Change, and Delete.

The changes to sales documents can be classified into three types:

  • Insert: A table entry is created (for example, a sales order item created in the item table).
  • Delete: A table entry is deleted (for example, a sales order item deleted from the item table).
  • Change: A field value is altered (for example, the order reason field altered).

A change to a sales document may incur data changes on different levels and result in several log entries. The following lists how log entries may be generated for a sales order according to specific changes.

Basic Concepts - Generation of Log Entries

What's Changed

Change Log

What's Logged

 

Number of Log Entries

Log Level

Affected Data Level

 

An order reason changed

One

Field

Header

The system logs the alteration of the order reason.

A contact person added as header partner

One

Table

Header

The system logs the insertion of an entry in the header partner table.

A sales order item created

Multiple

Table, field

Header, item, schedule line

The system logs the following:

  • Insertion of an entry in the item table
  • Insertion of one or more entries in the schedule line table
  • Alterations to header status fields (such as the delivery status and approval status), if any such alternation has been triggered by item creation
On the Display Change Log - Sales Documents screen, use a Search engine to do a fuzzy search or use basic filters for details search. Choose Adapt Filter for additional filters.

Note

To avoid performance issues and to keep the results small, we strongly recommend that you restrict filters on log data.

You can perform a fuzzy search on change logs by entering a document number or other attributes into the search field.

In addition, you can search for change logs as follows:

  • Apply basic filters, such as the document number, field, change type, and change date.
  • Apply additional filters by adapting the filter bar. For example, you can filter by sales document type, condition type, partner function, and many more criteria.
Use a Sales Document Type and Sold-to Party fields for specific information. Then, choose Go to run the search. The table provides you with the data.

To display change logs for sales quotations related to a particular sold-to party, you can enable additional filters (sales document type and sold-to party) and specify the filters as shown in the following figure.

To adapt your table view, choose lick the settings (cogwheel) icon. Then, configure display columns, column sort quotation, additional filter criteria, and grouping rules. The options shown include: Schedule Line, Change Type, Field, Change Description, Old Value, New Value, Changed By, Changed On.
To manage your view, choose Manage. On the Manage Views dialog box, specify your view and choose Save.

After you have configured all aspects of your screen (filter selection, filter values, displayed columns, column sort quotation, and so on) to your liking, you can save time by saving this exact screen configuration as a view variant and loading it back up any time you want.

If you want, you can set this view variant to load by default when you open the app. You can also share saved views with other users

Choose Export As to export your change log data.

You can export change log data to spreadsheet or PDF files.

For more information, refer to SAP Help Portal.

For more information, refer to the following app description on SAP Help Portal:

Log in to track your progress & complete quizzes