SAP Reports / Programs

HPLTQTA0 SAP ABAP Report - Limits generation







HPLTQTA0 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 HPLTQTA0 into the relevant SAP transactions such as SE38 or SE80


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 HPLTQTA0. "Basic submit
SUBMIT HPLTQTA0 AND RETURN. "Return to original report after report execution complete
SUBMIT HPLTQTA0 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: IGN_MAN = Ignore manual changes
Selection Text: NEWMOD = Modyfied
Selection Text: P_GRTEMP = ALV variant
Selection Text: TEST_MOD = Test
Selection Text: WPROTO = With protocol
Selection Text: YEAR = Generation year
Selection Text: YEAR_LIM = Entitled in this year
Selection Text: DEBUG_LI = Components of annual limits
Selection Text: CURR = Existing
Title: Limits generation
Text Symbol: L05 = leave for disabl
Text Symbol: L06 = entitl 20 days
Text Symbol: L07 = entitl 26 days
Text Symbol: L08 = entitl 20+10 d
Text Symbol: L09 = entitl 26+10 d
Text Symbol: S01 = Parametrs
Text Symbol: S02 = Limits
Text Symbol: L04 = addit. leave
Text Symbol: 001 = Generated absences limits
Text Symbol: 002 = For year
Text Symbol: COL = Exists/modified entries
Text Symbol: ICO = Operati.
Text Symbol: L01 = leave 1/12
Text Symbol: L02 = leave 6/12
Text Symbol: L03 = annual leave
Text Symbol: T04 = Limit type descr.
Text Symbol: T03 = Limit Type
Text Symbol: T02 = Annivesary
Text Symbol: T01 = position %
Text Symbol: S03 = Exit


INCLUDES used within this REPORT HPLTQTA0

No INCLUDES are used within this REPORT code!


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_PL_PY_INIT_REPORT_COUNTER CALL FUNCTION 'HR_PL_PY_INIT_REPORT_COUNTER'. "init progress indicator

HR_PL_PY_UPDATE_REP_STATUS CALL FUNCTION 'HR_PL_PY_UPDATE_REP_STATUS'. "inc progress status

HR_PL_EVAL_LEAVE_LIMITS CALL FUNCTION 'HR_PL_EVAL_LEAVE_LIMITS' EXPORTING LEAVE_YEAR = year LPERNR = pernr-pernr IMPORTING PHIRE_DATE = h PFIRE_DATE = f PJUB_10 = jub TABLES LIMITS = limits LIMITS_DEBUG = LIMITS_DEBUG * XP0000 = P0000 * XP0001 = P0001 * XP0007 = P0007 * XP0008 = * XP0016 = P0016 * XP0414 = P0414 * XP2001 = P2001 CHANGING XSEN_ERROR = SEN_ERROR
EXCEPTIONS MISSING_CONTRACT_INFO = 1 PERNR_FIRED = 2 NO_LIMITS_IN_CONF = 3 OLD_VERSION = 4 OTHERS = 5 .

HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING pernr = pernr-pernr arbgb = 'HRPADPL_LEAVES' msgty = 'E' msgno = '012'.

HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING pernr = pernr-pernr arbgb = 'HRPADPL_LEAVES' msgty = 'W' msgno = '006'.

HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING pernr = pernr-pernr arbgb = 'HRPADPL_LEAVES' msgty = 'W' msgno = '010'.

HR_PL_CONCAT_LEAVE_LIMITS CALL FUNCTION 'HR_PL_CONCAT_LEAVE_LIMITS' EXPORTING XPERNR = Pernr-pernr XMODIFY = for_mod XYEAR = year X_IGNORE_MANUAL = ign_man IMPORTING EXC_CONSUMPTION = too_many TABLES XP2006 = P2006 XLIMITS = new_limits XOLD_LIMITS = old_limits XMANUAL_MODIF = MANUAL_MODIF "OT86011826 XCORRECTIONS = corrections EXCEPTIONS MANUAL_MODIF = 1 * EXCESSIVE_CONSUMPTION = 2 OTHERS = 3.

HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING pernr = pernr-pernr arbgb = 'HRPADPL_LEAVES' msgty = 'E' msgno = '004' msgv1 = year.

HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING pernr = pernr-pernr arbgb = 'HRPADPL_LEAVES' msgty = 'W' msgno = '013' msgv1 = year msgv2 = MANUAL_MODIF-LIMCL_TEXT.

HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING pernr = pernr-pernr arbgb = 'HRPADPL_LEAVES' msgty = 'W' msgno = '005'.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = repid i_internal_tabname = 'GEN_P2006' i_inclname = repid CHANGING ct_fieldcat = fieldcat_alv EXCEPTIONS inconsistent_interface = 1 program_error = 2.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = repid * i_callback_pf_status_set = 'SET_PF_STATUS' * i_callback_user_command = 'USER_COMMAND' i_callback_top_of_page = 'TOP_OF_PAGE' is_layout = layout_alv it_fieldcat = fieldcat_alv it_sort = sort_alv * it_events = events_alv i_save = 'A' is_variant = variant_alv TABLES t_outtab = gen_p2006 EXCEPTIONS program_error = 1.

HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING pernr = pernr-pernr arbgb = '72' msgty = 'E' msgno = '028' msgv1 = t556a_key.

HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING pernr = pernr-pernr arbgb = '72' msgty = 'E' msgno = '001' msgv1 = t001p_key.

HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING pernr = pernr-pernr arbgb = '72' msgty = 'E' msgno = '002' msgv1 = t503_key.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = header_alv.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = footer_alv.

REUSE_ALV_VARIANT_F4 call function 'REUSE_ALV_VARIANT_F4' EXPORTING is_variant = ov_template i_save = 'A' IMPORTING e_exit = lv_rc es_variant = ov_template EXCEPTIONS not_found = 1 program_error = 2 others = 3.

REUSE_ALV_VARIANT_EXISTENCE





call function 'REUSE_ALV_VARIANT_EXISTENCE' CHANGING cs_variant = ov_template EXCEPTIONS not_found = 1 others = 2.

REUSE_ALV_VARIANT_EXISTENCE call function 'REUSE_ALV_VARIANT_EXISTENCE' EXPORTING i_save = 'A' CHANGING cs_variant = ov_template EXCEPTIONS not_found = 1 others = 2.

HR_PL_PY_GET_PNP_ERROR_LIST CALL FUNCTION 'HR_PL_PY_GET_PNP_ERROR_LIST'.

HR_DISPLAY_ERROR_LIST CALL FUNCTION 'HR_DISPLAY_ERROR_LIST' EXPORTING NO_POPUP = NO_POPUP NO_PRINT = space * NO_IMG = ' ' * NO_MSGNO = 'X' LINESIZE = 100 * LISTHEADER = ' ' * COLHEADER = ' ' * HIDEMSG = ' ' * TABLES * ERROR = EXCEPTIONS INVALID_LINESIZE = 1 OTHERS = 2 .

BAPI_EMPLOYEE_ENQUEUE CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE' EXPORTING NUMBER = PERNR-PERNR IMPORTING RETURN = RETURN_STRUC.

HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING PERNR = PERNR-PERNR ARBGB = 'RP' MSGTY = 'E' MSGNO = '002'.

BAPI_EMPLOYEE_DEQUEUE CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE' EXPORTING NUMBER = PERNR-PERNR.

HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING pernr = pernr-pernr arbgb = '72' msgty = 'E' msgno = '103' msgv1 = pernr-pernr msgv2 = 'P0001'.



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