cancel
Showing results for 
Search instead for 
Did you mean: 

FM RHPA_APPRAISEES_APP_READ .

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

suresh_datti
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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???