SAP Message 5U507 - Plan & presupposes the existence of plan &

Diagnosis
You have selected a plan which can only be used in conjunction withanother particular plan.

Procedure
Ensure that the employee is enrolled in both of these plans.