I need to allow a user to add an additional goal in an Appraisal when not enough are configured on the Template. The goals configured on the template consist of a Criteria Group and 5 subsequent Criterion below it. I currently have the ADD_NEW_ELEMENT BADI implementation configured for Free Enhancement at the Criteria Group level and have chosen the first Criterion below it as the 'Refers to Attributes of' field.
This only partially accomplishes what I need to happen. I know that a B606 relationship is created in HRP1001 between the Criteria Group and the Criterion in 'Refers to Attributes of'. I also know that B605 relationships are created between the Criteria Group and each of the 5 subsequent Criterion. I have created a Z version of the HRHAP00_ENHANCE_FRE1 BADI and have changed the Enhance Document Method to send back the Criteria Group and all 5 of the subsequent Criteria. This works, BUT, the system uses the attributes of the first Criteria (the one I chose in the 'Refers to Attributes of') instead of the attributes of each Criteria Group/Criteria that are added. Is there a way to specify that I want the attributes of each particular element and not the one configured? Or do I need to go about this a different way?
Any help is greatly appreciated,
I have been successful in creating the appropriate B606 relationships on the system. This now allows me to use them as References to the VB and sub VC's that I want to ADD to an appraisal document when the ADD_NEW_ELEMENT BADI Enhance_Document Method is used. This in-turn allows me to add a complete new goal, made up of a VB and it's 5 sub-VC's.
Now the issue is that when I try to Delete this newly created goal, using the Delete (trashcan) icon on the VB, the system only deletes the VB and not the 5 sub-VC's with it. I believe this problem may still be in the way the complete new goal was added.
Again, any ideas are appreciated!
Mary Ann Kolnik