cancel
Showing results for 
Search instead for 
Did you mean: 

How to find the appraisal form for an appraisal model

Former Member
0 Kudos

Hi group,

We want to implement the BAdI that defaults dates for an appraisal. However, it should only kick in for certain appraisal models. When entering the BAdI, I have APP_MODEL_ID available to me. Based on this ID, I need to find which appraisal form the passed appraisal model belongs to - and only carry out code in BAdI if appraisal form = 5.

I find AFORM_ID in table T77BF, but I cannot find how to determine this based on the APPL_MODEL_ID passed to the method.

Any hints greatly appreciated.

/Kirsten

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

This solved most of our problem. We still experience appraisals done from PSV1 (T&E) where the dates are set incorrectly - but this may be another problem. The system picks up 01.01.2006 - 31.12.2006 after we implemented the BAdI. In production where BAdI is not implemented- the dates for the course is picked up.

/kirsten

suresh_datti
Active Contributor
0 Kudos

You can do a look up of the Table HRP1043 for the Appraisal Model & retrieve the Appraisal Form ID.


data: w_form_id type AFORM_ID.
select AFORM_ID into w_form_id up to 1 rows 
                           from HRP1043
                           where plvar = '01'
                               and otype = 'BS'
                               and objid =  "Appr Model ID
                               and istat =1
                               and begda le sy-datum
                               and endda ge sy-datum.
endselect.
if sy-subrc eq 0.
* w_FORM_ID will ahve the form no
else.
* error.
endif.

~Suresh