2011 Aug 04 8:03 AM
Hi All,
My requirement is to find payroll period, based on the start and end dates entered on the selection screen.
Is there any FM available for this?
Thank you.
2011 Aug 04 8:50 AM
infotype 0001 of a personnel number provides the payroll area (ABKRS).
with ABKRS you have to read table T549A to get PERMO
with PERMO, start date and end date you will get the periods from table T549Q
2011 Aug 04 8:31 AM
2011 Aug 04 8:32 AM
Hi,
You may use any of these FMs.
HRAR_GET_PAYROLL_PERIOD
HR_PAYROLL_PERIODS_GET
HR_MX_GET_PAYROLL_PERIOD
HR_PAYROLL_PERIOD_GET
Regards,
Peter
2011 Aug 04 8:32 AM
Hi Sagar,
CALL FUNCTION HR_PT_GET_PAYROLL_RESULTS:
PARAMETERS: P_PERNR TYPE P0000-PERNR,
P_STDATE TYPE PC261-FPBEG,
P_ENDATE TYPE PC261-FPEND.
CALL FUNCTION 'HR_PT_GET_PAYROLL_RESULTS'
EXPORTING
p_pernr = P_PERNR
FPPER_BEGDA = P_STDATE
FPPER_ENDDA = P_ENDATE
tables
result_tab = IT_RESTAB
* EXCEPTIONS
* NO_RESULTS = 1
* NO_READ_AUTHORITY = 2
* IMPORT_MISMATCH_ERROR = 3
* T500L_ENTRY_NOT_FOUND = 4
* OTHERS = 5
.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
Thanks
Sri
2011 Aug 04 8:50 AM
infotype 0001 of a personnel number provides the payroll area (ABKRS).
with ABKRS you have to read table T549A to get PERMO
with PERMO, start date and end date you will get the periods from table T549Q