2492291 - Event After-Modify Under Address Information Node is not getting Triggered in SDK

SAP Knowledge Base Article - Public

2492291 - Event After-Modify Under Address Information Node is not getting Triggered in SDK

Symptom

You have tried modifying few fields in the Address Information tab but the After-Modify event is not getting triggered even though the fields are in the same BO node.

Reproducing the Issue

  1. Login to SDK.
  2. Open the solution and navigate to the relevant path.
  3. Put a breakpoint in the Event After-Modify of Address Information node.
  4. Login to UI.
  5. Naviagte to Customer work center.
  6. Switch to Addresses tab.
  7. Try to modify some standard fields Postal Code, Phone e.t.c.
  8. You can see that the debugger is not hit in the event after-modify. 

Cause

A script on a node will only be called if fields of that node are changed or the association from that node is changed.

The data that you see on an account comes from a combination of different Business Object (BO) + Dependent Objects (DO) in the backend. Address information itself is a regular node on the Business Partner BO. It doesn't hold any real Address information but holds just a pointer + date values to the actual DO (address snapshot) where the real address is stored.

When you do an update, changes are done to the snapshot but no changes are done to Address Information node as nothing relevant to this has changed i.e. it still points to the same snapshot instance. Hence, updating address will not call After modify of Address Information node.

Resolution

To trigger the AddressInformation Scripts, you have to make changes in the value of the fields that are directly under the Address Information Node.

Please note that making changes in any other node element will not trigger the script.  

For example: StreetPostalCode is a node element under Postal Addres DO and hence the event after modify will not be triggered.

Keywords

KBA , LOD-CRM-ACC , Account , How To

Product

SAP BUSINESS BYDESIGN 1705 ; SAP BUSINESS BYDESIGN 1708 ; SAP Business ByDesign 1702 ; SAP Business ByDesign 1711 ; SAP HYBRIS C4C ADDINS 1705 ; SAP Hybris Cloud for Customer 1702 ; SAP Hybris Cloud for Customer 1708 ; SAP Hybris Cloud for Customer 1711