on 06-29-2007 1:44 PM
Can anyone please explain me about the function module RHPA_APPRAISEES_APP_READ .
I ahave some data maintained in infotype 0025 for appraisals for some personal number but there is no data coming out - this FM just asks for begin date and enddate as import parameters but not for personal number.
Please any one help.
Ribhu
Ribhu,
You have to fill the appraisees table of the function call & the appraisals will be returned in the table appraisals. Here appraisee is the pernr ie
data: t_appraisees type table of hrsobid,
rec_appraisees like line of t_appraisees,
t_appraisals type table of hrpe_profa,
rec_appraisals like line of t_appraisals.
rec_appraisees-plvar = '01'.
rec_appraisees = 'P'.
rec_appraisees-sobid = "Pernr.
append rec_appraisees to t_appraisees.
* read appraisals
call function 'RHPA_APPRAISEES_APP_READ'
exporting
begda = low_date
endda = high_date "p_endda
tables
appraisees = t_appraiseessobids
appraisals = t_appraislas
exceptions
no_authority = 1
undefined = 2
others = 3.
The table t_appraisals will now hold the employee's appraisals.[/code]
Good Luck
~Suresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dude,
Well I written this code there :
REPORT ZTEST3
*report zporgr0030
LINE-SIZE 193
LINE-COUNT 60(1)
NO STANDARD PAGE HEADING
MESSAGE-ID ZNDC.
***********************************************************************
Database Tables
***********************************************************************
TABLES: PERNR, " Logical PNP
T001P, " Personnel Subarea
T005T, " Country Descriptions
T500P, " Personnel Area
T501, " Employee Group
T503K, " Employee Subgroup
CSKS, " Cost Centers
CSKT, " Cost Center Texts
T513C, " Job (Previous) Texts
T513S, " Job Titles
T517T, " Edn Est.Text
T518B, " Discipline Text
T519T, " Certificate Text
T528T, " Positions Texts
T538T, " Unit Text
PA0003. " Payroll Status
INFOTYPES:
0000, " Actions
0001, " Organizational Assignment
0002, " Personal Data
*0007, " Planned working time
*0008, " Payroll Data
*0022, " Education Data
*0023, " Previous Employer data
0025. " Performance Appraisal Data
*0041, " Date Spcifications
*2001. " Absences
DATA: T_APPRAISEES TYPE TABLE OF HRSOBID,
REC_APPRAISEES LIKE LINE OF T_APPRAISEES,
T_APPRAISALS TYPE TABLE OF HRPE_PROFA,
REC_APPRAISALS LIKE LINE OF T_APPRAISALS.
GET PERNR.
REC_APPRAISEES-PLVAR = '01'.
REC_APPRAISEES = 'P'.
REC_APPRAISEES-SOBID = '00000017'." Pernr.
APPEND REC_APPRAISEES TO T_APPRAISEES.
read appraisals
CALL FUNCTION 'RHPA_APPRAISEES_APP_READ'
EXPORTING
BEGDA = '19800101'
ENDDA = '99991231' "p_endda
TABLES
APPRAISEES = T_APPRAISEES " SOBIDS
APPRAISALS = T_APPRAISALS
EXCEPTIONS
NO_AUTHORITY = 1
UNDEFINED = 2
OTHERS = 3.
break-point.
LOOP AT T_APPRAISALS INTO REC_APPRAISALS.
WRITE REC_APPRAISALS-APPRAISAL_RESULT.
ENDLOOP.
This leaves the table T_APPRAISALS empty when I check the break point. What could be wrong????
When I loop kin infotype 0025 of emp no 17 - tab -Appraisals whern Appraisee, there are 3 - 4 entries. When I click on the first one, it takes me to program SAPLHRHAP_UI_DOCUMENT from where I want to pick up the 'Final Appraisal' Values. (HAP_S_DYNP_3100_TB-COL_01_VALUE_TXT) . Pls suggest wat to do???
User | Count |
---|---|
102 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
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.