on 07-02-2007 3:38 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
100 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.