Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Identify change in the value of a field in c4C


Is it possible to identify change in the value of a specific field so that we can implement certain logic based on that field change.

If we write logic in Aftermodify event, it triggers for any field value change in that node.

We've tried by querying on that node and comparing database value to current, but it is causing so many issues, when we execute query for getting database values of current instance , the current instance is getting overwritten with database values.

We've tried assigning event to the Onvalue changed property of required field in the datamodel tab of the UIdesigner, but it is triggering even on loading of the screen first time. Strangely this event also triggers as many number of times as we have items in the list , though we have changed the field value for only one item. Do you have any suggestions?



Former Member

Hello Jayasri,

You can achieve this by adding an extension field to store the value of the standard field prior to change. After adding the extension field in the BO you can add the following code in AfterModify event.

if(this.Standard Field != this.Extension Field){

     Write your logic here

     this.Extension Field = this.Standard Field


Hope this helps.

Thanks & Regards,


1 View this answer in context
Not what you were looking for? View more on this topic or Ask a question