Skip to Content
0
Former Member
Mar 26, 2009 at 12:29 AM

Auto populate Actual Dates on Activity

304 Views

Hi gurus,

In CRM 7.0, I need to auto populate the "Actual Date" and "Actual Time" with the system date and time for an Activity, when the status is changed to Complete, Approved or Rejected.

In Activities, there is an Assignment block u201CDatesu201D (BTDATES/Dates).

When "Status" field on Activity header (attribute ACT_STATUS of the BTStatus object) is changed to either Complete, Approved or Rejected (on all Activity types), then we need to auto populate the values for "Actual Dates" with the system date and time in the "Dates" Assignment Block:

Attributes DATE_FROM, TIME_FROM, DATE_TO, and TIME_TO of the BTDate object should be set to system date and time values.

I'm thinking of using CHANGE_BEFORE_UPDATE of the ORDER_SAVE BAdI.

Do you happend to know the code how to implement this BADi for this kind requirement?

Thank you.