cancel
Showing results for 
Search instead for 
Did you mean: 

BAdi DPR_EVENTS for user statuses

Former Member
0 Kudos

Hi,

Anyone having ideas on how to use the BAdi DPR_EVENTS when user defined statuses are triggered?

Regards,

Vivek?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Vivek,

It's not possible to use this BADI for user defined statuses.

We had a similar need a few months ago. We solved it by implementing an enhancement (pre/post exit) in dynpro DPR_STATUS_THRESHOLDS, view VI_STATUS, method ONACTIONCHANGE_STATUS. We can detect here which status (user or system) has been selected.

Matthias

Former Member
0 Kudos

Thanks for your response Matthias!

We need to check what user status is set for Project. Based on this, we need to perform some calculations.

I hope this will help. Do we need to create an enhancement implementation for the same? We are on CPRXRPM 4.5

Regards,

Vivek

Former Member
0 Kudos

By implementing an exit there, your rule will be applied in real time. So if you need it before SAVE, I think it will be OK.

You can have a look to the standard method to know how to retrieve the current statuses + the one selected from the UI.

Matthias

Former Member
0 Kudos

Thanks Matthias! Let me see how we can implement this based on your inputs.

I'll update the thread soon!