cancel
Showing results for 
Search instead for 
Did you mean: 

Stop user from Deleting Staffing Data

Former Member
0 Kudos

Hi Friends,

We are implementing cProjects. We need to control Deleting of Staffing from a project, because the deletion of staffing record is a hard delete. The data is removed from the staffing tables of cProjects. So if someone is staffed, data saved and then is deleted we are not able to capture this information as who was staffed earlier whose record is no more now.

When some user changes the staffing dates, we are able to capture this in the BADI DPR_ATTRIBUTES, as the check method gives us the old attributes of the record as well as the new one that has been changed.

But if some staffing is deleted, the DPR_ATTRIBUTES does not indicates

through some variable that delete action has been performed for a

record.

Request you to suggest which BADI shall be implemented to capture

Delete staffing data event that brings in the role that is being

deleted such that we can stop the record from deleting in case we want to do so.

We are very near to go-live and have already missed two deadlines till

date, so request you all to help.

Regards, Sandeep

Accepted Solutions (0)

Answers (1)

Answers (1)

silvia_kreuzhuber
Active Participant
0 Kudos

Hi,

the BAdI DPR_ATTRIBUTES also has a method called DELETE_CHECK, this is called when staffing is deleted (called in class CL_DPR_PARTICIPANT and method DELETE_CHECK), so you could implement your own logic here.

Regards,

Silvia