SAP Reports / Programs | Payroll | Norway(PY-NO) SAP PY

RPTFERV0 SAP ABAP Report - Overview of Leave Quotas and Vacation Allowances (Norway)







RPTFERV0 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You can use this report to display the following information: Number of vacation quota days: The number of vacation entitlement days deductible in the year of the reference date The number of taken and deducted days (leave accounted) in the year of the reference date, prior to the reference date The number of compensated days The number of remaining days as of the reference date Amount of vacation allowance The amount of vacation allowance accrued in the year of the reference date over the payroll periods preceding the reference date The amount of vacation allowance carried over from the preceding year and not yet paid out Note This report provides a Norway-specific overview of leave entitlement and vacation allowance...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RPTFERV0 into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

PC00_M20_TFER - Check list vacation 20


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT RPTFERV0. "Basic submit
SUBMIT RPTFERV0 AND RETURN. "Return to original report after report execution complete
SUBMIT RPTFERV0 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: P_UNPDL = D .
Selection Text: P_REFDA = D .
Selection Text: FERIEP = D .
Title: Overview of Leave Quotas and Vacation Allowances (Norway)
Text Symbol: YES = Year
Text Symbol: YEM = Year
Text Symbol: YEL = Leave Year
Text Symbol: YED = Year
Text Symbol: VTS = To
Text Symbol: VTM = Valid to
Text Symbol: VTL = Valid to
Text Symbol: VTD = Valid to
Text Symbol: VFS = From
Text Symbol: VFM = Valid fr
Text Symbol: VFL = Valid from
Text Symbol: VFD = Valid from
Text Symbol: UNK = Unknown message type in subroutine 'error handling'
Text Symbol: N01 = Name
Text Symbol: HPS = HolPay Prev
Text Symbol: HPM = HolPay prev year
Text Symbol: HPL = Holiday pay previous year
Text Symbol: HPD = HP prev
Text Symbol: HAS = HolPay Act
Text Symbol: HAM = HolPay act year
Text Symbol: HAL = Holiday pay actual year
Text Symbol: HAD = HP Act
Text Symbol: FDS = Fødslesnr.
Text Symbol: FDM = Fødselsnummer
Text Symbol: FDL = Fødselsnummer
Text Symbol: FDD = FødNr.
003 Leave year start Leave year end (days) (days) (days) (days) reserve last year res. this yr.
002 Year ID Leave type Entitlement Deducted Compensated Remaining
001 Name Ansattnr


INCLUDES used within this REPORT RPTFERV0

INCLUDE MPZDAT03.
INCLUDE RPC1PC00.


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

HR_GET_ABSENCE_QUOTA_DATA CALL FUNCTION 'HR_GET_ABSENCE_QUOTA_DATA' EXPORTING pernr = pernr-pernr * [hp]_0113 #1810978 >> start dedu_datum = p_refda * [hp]_0113 #1810978 << end TABLES abwko = t_kansp i2006 = p2006 i0001 = p0001 EXCEPTIONS infty_not_found = 1 missing_authority = 2 wrong_parameter = 3 OTHERS = 4.

RP_EDIT_NAME CALL FUNCTION 'RP_EDIT_NAME' EXPORTING format = p0002-knznm langu = space molga = c_molga pp0002 = p0002 IMPORTING edit_name = edit_name retcode = ret_code.

CU_READ_RGDIR CALL FUNCTION 'CU_READ_RGDIR' EXPORTING persnr = pernr-pernr TABLES in_rgdir = lt_rgdir[] EXCEPTIONS no_record_found = 1 OTHERS = 2.

HR_NO_EVALUATION_PERIODS CALL FUNCTION 'HR_NO_EVALUATION_PERIODS' EXPORTING rep_pernr = pernr-pernr inper_modif = wa_t549a-permo rep_begda = start_date rep_endda = end_date TABLES evpdir = evpdir * IABKRS = EXCEPTIONS no_record_found = 1 OTHERS = 2.

REUSE_ALV_HIERSEQ_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' EXPORTING is_layout = layout it_fieldcat = fieldcat[] i_tabname_header = 'PERNR_INFO' i_tabname_item = 'ENTITLEMENT' is_keyinfo = keyinfo TABLES t_outtab_header = pernr_info t_outtab_item = entitlement.

HR_DISPLAY_ERROR_LIST CALL FUNCTION 'HR_DISPLAY_ERROR_LIST' EXPORTING no_popup = 'X' no_print = space TABLES error = error_tab.

HR_DISPLAY_ERROR_LIST CALL FUNCTION 'HR_DISPLAY_ERROR_LIST' TABLES error = error_tab.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = pernr-pernr infty = '0005' TABLES infty_tab = p0005 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = pernr-pernr infty = '0083' TABLES infty_tab = p0083 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = pernr-pernr infty = '2006' TABLES infty_tab = p2006 EXCEPTIONS infty_not_found = 1 OTHERS = 2.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name RPTFERV0 or its description.