SAP Reports / Programs

HGRANNBK SAP ABAP Report - Annual Leave Book







HGRANNBK is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter HGRANNBK 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_M45_ANNB - Annual Leave Book


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 HGRANNBK. "Basic submit
SUBMIT HGRANNBK AND RETURN. "Return to original report after report execution complete
SUBMIT HGRANNBK 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_YEAR = D .
Selection Text: P_TITLE2 = Report Title 2
Selection Text: P_TITLE1 = Report Title 1
Selection Text: P_SRTPRN = Sort by employee number
Selection Text: P_SRTNAM = Sort by Name
Selection Text: P_SEQNR = Company Data Sequential No.
Selection Text: P_ORIGIN = Use original period
Selection Text: P_MOTO = D .
Selection Text: P_MOFR = D .
Selection Text: P_KTART = D .
Selection Text: P_DTCURR = D .
Selection Text: P_CURR = D .
Title: Annual Leave Book
Text Symbol: T03 = Time Period :
Text Symbol: T02 = Page
Text Symbol: T01 = ANNUAL LEAVE BOOK
Text Symbol: C13 = SIGNATURE
Text Symbol: C12 = Leave Bonus amount
Text Symbol: C11 = Payroll period
Text Symbol: C10 = Annual Leave amount
Text Symbol: C09 = Leave End
Text Symbol: C08 = Leave Begin
Text Symbol: C07 = Leave days
Text Symbol: C06 = Entitlement days
Text Symbol: C05 = Previous employment
Text Symbol: C04 = Hiring date
Text Symbol: C03 = Specialty
Text Symbol: C02 = Fullname
Text Symbol: C01 = A/A


INCLUDES used within this REPORT HGRANNBK

INCLUDE HGRUCMP0.
INCLUDE HGRUINS0.
INCLUDE HGRUIKA0.
INCLUDE HGRUGEN0.
INCLUDE HGRUACT0.


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:

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING * PERCENTAGE = COUNTER TEXT = pernr-pernr EXCEPTIONS OTHERS = 1.

HR_GET_QUOTA_DEDUCTION CALL FUNCTION 'HR_GET_QUOTA_DEDUCTION' EXPORTING pernum = pernr-pernr * sbegda = op2006-begda * sendda = op2006-endda quonum = p2006-QUONR TABLES qdisded = dedu_results EXCEPTIONS record_not_found = 1 OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = w_repid i_internal_tabname = itabname i_inclname = w_repid CHANGING ct_fieldcat = i_fieldcat_alv.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = i_events.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_background_id = 'ALV_BACKGROUND' " i_callback_program = w_variant-report i_default = 'X' " i_save = 'A' * is_variant = w_variant is_layout = w_layout " it_fieldcat = i_fieldcat_alv it_sort = i_sort it_events = i_events i_callback_top_of_page = 'TOP_OF_PAGE' is_print = w_print " TABLES t_outtab = gt_annbk.

HR_CHANGE_QUOTAS_GEN_45 CALL FUNCTION 'HR_CHANGE_QUOTAS_GEN_45' EXPORTING XPERNR = pernr-pernr XBEGDA = begda XENDDA = endda TABLES xp0000 = xp0000 xp0001 = xp0001 xp0002 = xp0002 xp0007 = xp0007 xp0008 = xp0008 xp0016 = xp0016 xp0019 = xp0019 xp0041 = xp0041 xdef_value_tab = x_def_tab.



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 HGRANNBK or its description.