SAP Knowledge Base Article - Public

3814804 - Display Changes to Objects app doesn't return expected results

Symptom

The Display Changes to Objects app doesn't return the expected results, even though you made changes to the business object in the system. The app may return no results at all, or it may not show all changed fields. 

Environment

  • SAP S/4HANA Cloud Public Edition 

  • SAP BTP ABAP Environment 

Reproducing the Issue

Follow the steps below to reproduce the reported behavior: 

  1. Open the Display Changes to Objects app.
  2. Enter the relevant object type and search criteria.
  3. Choose Go / Execute. 

Result:  

The app returns incomplete or no results, even though you made changes to the object.

Cause

The Display Changes to Objects app can only show data that BEL has captured. There are three reasons BEL may not capture the expected change data: 

  • Logging is not activated 

If logging hasn't been activated for the relevant object type, BEL doesn't capture any events. Open the Activate Business Event Logging configuration and check whether logging is enabled for the object type. When logging is active, you should see create, change, and other business events in the Display Business Event Logs app. 

  • SAP-provided events 

BEL logs only the fields included in the business event payload. If a field isn't part of the event definition, it won't appear in the app regardless of whether a change was made. 

  • Customer and partner events 

BEL requires a deep parameter structure called __before in the abstract entity of the event payload. This node must be correctly defined and populated by the application with the previous field values. Without it, BEL can't determine what changed. 

The following modeling mistake is the most common cause: 

  • Missing or incorrectly named __before node — The abstract entity must include a nested node named __before (with a double underscore prefix) of a matching type that holds the previous field values. If this node is missing or incorrectly named, BEL can't determine what changed and creates no log entry. 

Resolution

  • Prerequisite 

Before troubleshooting, make sure logging is active for the relevant object.Open the Activate Business Event Logging configuration and enable logging for the object type. When logging is active, you should see create, change, and other business events in the Display Business Event Logs app. 

  • SAP-provided events 

To request additional events or event extensions, see Log Custom Business Events. 

  • Customer and partner events 

Ensure the event payload abstract entity is correctly modeled: 

In the abstract entity, define a __before nested node with the same fields as the parent structure. The parent node holds the new (current) values; __before holds the values before the change. 

See Also

For a sample implementation, refer to the SAP Community blog: 

Step-by-Step Implementation of Customer-Defined Events in Business Event Logging 

If you require additional standard events delivered by SAP, or change information to be added, you can raise a request via the Customer Influence Portal. 

Keywords

Display Changes to Objects, Business Event Logging (BEL), RAP Business Object, S/4HANA Cloud, BTP ABAP Environment, __before, Abstract Entity, Event Payload, Change Logging  , KBA , CA-GTF-BEL , Business Event Logging , Problem

Product

SAP S/4HANA Cloud Public Edition all versions