cancel
Showing results for 
Search instead for 
Did you mean: 

API to find out all unsaved changes since last safe

daniel_humberg
Contributor
0 Kudos

I am currently implement a cPro Subsystem.

During the save operation, I would like to analyze the changes that the user has done since the last saving (e.g. change in the field "GROUPING" of a task, or newly added phase, or new assignment of a business partner to a role).

Is there a service class, an API or something similar by which I can find that out?

Some kind of change manager or change log class?

Best regards,

Daniel

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Daniel,

There are several Web Dynpro Components where you can analyze in tcode SE80.

DPR_DET_DATA_PROJECT_O --> Project WDC

DPR_DET_DATA_PHASE_O --> Phase WDC

DPR_DET_DATA_TASK_O --> Task WDC

All of them, have a method called AFTER_SAVE.

Regards,

Answers (1)

Answers (1)

former_member201206
Active Contributor
0 Kudos

Hi Daniel,

The class CL_DPR_APPL_OBJECT_CHANGE_MNGR should store the information you wanted. The problem is that the attribute

MT_UPDATED_OBJECTS is private and can not be retrieved externally.

Actually, if a sub system is implmented, typically the following three methods should be added:

ON_OBJECT_CREATE Instance Method Private Event handler for cPro Object create

ON_OBJECT_CHANGE Instance Method Private Event handler for cPro Object change

ON_OBJECT_DELETE Instance Method Private Event handler for cPro Object delete

they should re-act of the change of cProject object,

e.g. ON_OBJECT_CHANGE

Event handler for

Class/interface CL_DPR_ENTITY

Event CHANGED

Kind regards,

Zhenbo