cancel
Showing results for 
Search instead for 
Did you mean: 

Error check when linking objects to multiple Items

Former Member
0 Kudos

Hi all,

Currently PPM display's a warning message when an object has already been assigned to another item.

Is there a way to change this to a hard error and prevent the user from still saving the record?

Thank you.

Accepted Solutions (0)

Answers (1)

Answers (1)

rabikiran_sahu
Participant
0 Kudos

Hi Alex,

This can be achieved but requires an enhancement, Please let me know the steps in elaborate will try to help you with the enhancement.

Thanks,

Rabi

Former Member
0 Kudos

Thanks Rabi, we were able resolve this.

I tried utilizing BADI /RPM/IF_EX_PS_OBJECT_LINKS_BADI which allowed me to change the message type to an Error. But because there were no attributes to do a condition statement, I did not want to always make it the same type of error; only in certain cases.

As an alternative we ended up implementing an implicit enhancement after method IF_RPM_COMMON~SAVE_CHECK in class CL_RPM_OBJ_LINK. All the Item data was available to us for a proper evaluation, and we could still modify the message type.