Greetings Experts, Gurus and SAP Sages!
I am looking into a very particular requirement -
I need to differentiate the conflict rules for the Operational WCD document depending on whether the WCI refers to a technical object, or not.
For a WCI with Item category "E" or "F", there should be a regular Green/Red conflict check performed.
For a WCI with Item category "N", the conflict check should show a Yellow warning message for all Operational Condition combinations.
This is to maintain user awareness, but not block the users from performing the tagging, if another user, perhaps in another Plant, refers to the same Item without a master record as "BYPASS VALVE" or "MASTER SWITCH" etc.
So I know that I could define the separate Conflict Rules based on the Operational Group, e.g. have the Red-Green conflict check for an Operational Group "G" - "General" and a Yellow conflict check for another e.g. "N" - "No Object".
But when creating WCD Items, the user may select any Operational Group - "G" or "N" would be valid regardless, for each Item Category "F","E","N". This would mean the conflict check would be very much dependent on a correct user input, and I'd like to make sure we can avoid user error.
Is there any possiblity to restrict this without enhancement,through configuration?
I know for the Technical Objects the Operational Class can be used, but not for the "N" Item Category.
And if an enhancement is needed, what is the best way to achieve this? I think the method ITEM_DATA_INPUT_CHECK of interface IF_EX_BADI_WCM_OPWC or PREPARED_CHECK could be used to validate the entries?