cancel
Showing results for 
Search instead for 
Did you mean: 

How to delete VC elements based on Emp.Group

prajyotp_demapure
Participant
0 Kudos
97

Hello Experts,

I have created 8 VC elements in phap_catalog(Personnel Appraisals).

I need to hide some of them based on their employee group on the appraisal form.

Ex.

Emp.grp : A

     VC_1

     VC_2

     VC_3

Emp.grp ; B

     VC_1

     VC_3

Please help me out how should I achieve this.

Kindly suggest BADI names too.

Also is there any way to Modify T_BODY_ELEMENTS-Availabilty field.

Regards,

Prajyot D.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Dear Prajyot,

you have two possibilities:

1.) Delete those static VC-elements and add a BADI-Implementation of HRHAP00_ENHANCE_FIX to the parent VB-Element. This implementation has to create the relevant VC-elements dynamically depending on the employee Group. Parameter ENHANCEMENT_TYPE for new elements would by space (add as last child)

2.) Use VB-elements instead of VC-elements and add a BADI-Implementation of HRHAP00_ENHANCE_FIX to VB-element VB_2 (reason: You can't add this BADI to VC-elements).

Return value D (=delete element) for Parameter ENHANCEMENT_TYPE if the current VB-element has to be deleted for the current ee Group.

Use BADI HRHAP00_COL ACCESS in order to change the availablility field (method GET_COLUMN_ACCESS, parameter AVAILABILITY).

Hope this helps...

Regards,

Andreas