cancel
Showing results for 
Search instead for 
Did you mean: 

Payroll Result From Period

Former Member
0 Kudos

Hi Experts

Is there any Function Module or someother methods to get the Payroll Result for the particular Period.

Ie., my input will be a period and I need to get the corresponding Payroll Result.

Thanks in advance....

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Go to pc00_mXX_clstr and view the results for the period you want. Replace XX in the trasaction with the country code. Here you will find the data required for the particular period. Further, u can also take the data from the wage type report

Hope this solves your problem

Former Member
0 Kudos

Thank you Hema

But my perspective is to get the data inside an internal table or a structure. So that I may use it for my manipulations with the data. Hope you understood my need.

Former Member
0 Kudos

This bapi may be what u need,

bapi_get_payroll_result_list --> return the seqno for the actual payroll results.

Answers (1)

Answers (1)

former_member188770
Active Participant
0 Kudos

Hope the below example helps ..

*This FM help us to get the Sequence number used for the

*employee on the payroll.

CALL FUNCTION 'CU_READ_RGDIR'

EXPORTING

PERSNR = P_PERNR

TABLES

IN_RGDIR = IN_RGDIR

EXCEPTIONS

NO_RECORD_FOUND = 1

OTHERS = 2.

*We read it using two dates, which corresponds to the month *we need

READ TABLE IN_RGDIR WITH KEY FPBEG = M_START

FPEND = M_END.

SEQNR = IN_RGDIR-SEQNR.

*This FM actually reads the payroll and get the information

*we need.

CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT'

EXPORTING

CLUSTERID = 'XX'

*In CLUSTERID use the country of your choice

EMPLOYEENUMBER = P_PERNR

SEQUENCENUMBER = SEQNR

READ_ONLY_INTERNATIONAL = 'X'

CHANGING

PAYROLL_RESULT = RESULT

EXCEPTIONS

ILLEGAL_ISOCODE_OR_CLUSTERID = 1

ERROR_GENERATING_IMPORT = 2

IMPORT_MISMATCH_ERROR = 3

SUBPOOL_DIR_FULL = 4

NO_READ_AUTHORITY = 5

NO_RECORD_FOUND = 6

VERSIONS_DO_NOT_MATCH = 7

OTHERS = 8.

*We just need to read the result table.

LOOP AT RESULT-INTER-RT INTO WA_RT.

CASE WA_RT-LGART.

WHEN '9010'.

MOVE WA_RT-BETRG TO T_ANYTABLE-SOMEPAY.

ENDCASE.

ENDLOOP.

Also there is one more function Module which can be used for determining payroll results depending on the date

'CD_EVALUATION_PERIODS'