cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Substitution rules at save

Former Member
0 Likes
296

Hello all,

We are currently working with SAP PPM 4.5, and we are facing one issue: our projects are really integrated with SAP PS (structures & planning costs), and we would like to set up substitution rules at save to update some cProjects fields, depending on other entries or custom rules. However, when I look at DPR_ATTRIBUTES badi, both methods "check" and "verify" have only input structures, and not changing ones... So where can we really update the data at save?

What's more, the goal is to be able to update any entry at any level in the project stucture, for instance a task field updated from a phase/project one.

Thank you for your help.

Matthias

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

I'm not sure of this possibilty: by using BAPI inside this method, it means you update the master data BEFORE the final checks and the technical SAVE. It could be very dangerous. From my point of vue, the best would be to update the structures to be saved, but it's not possible in this method.

Matthias

andrea_langlotz
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Matthias,

if you want to update the data at save, the standard way is to implement a subsystem. Please have a look at the class CL_DPR_DEMO_SUBSYSTEM. This is a example implementation for a subsystem, the documentation of the class contains helpful information on how to implement a subsystem.

Best Regards,

Andrea

Answers (2)

Answers (2)

Former Member
0 Likes

Thanks, this is exactly what we were looking for !

Let's try the implementation now.

BR

Matthias

Former Member
0 Likes

Hi Matthias,

I feel that 'verify' can serve the purpose for you.

As far as I can recall there are parameters IS_ATTRIBUTES_OLD and IS_ATTRIBUTES_NEW by which you can compare the old value and the updated value.

Matthias BRISSEAU wrote:

What's more, the goal is to be able to update any entry at any level in the project stucture, for instance a task field updated from a phase/project one.

Again I guess here you need to check the value of FLT_VAL, which determines the Object Category of the data you are processing.

If it is a Project( DPO) or a Phase (PPO), you can run the standard BUS21 series function modules to update the project elements.

This solution approach is just based on my current thought process and you may need to re-look it again. Approaches suggested from other users are appreciated.

Please let me know if this helps you.

Regards,

Vivek Pandey