SAP Reports / Programs | Personnel Time Management(PT) SAP PT

RPTQTA00 SAP ABAP Report - Generate Absence Quotas







RPTQTA00 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Generation of absence quotas You can use this report to accrue time-off entitlements automatically for groups of employees or individual employees...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 RPTQTA00 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

PT_QTA00 - Generate Absence Quotas


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 RPTQTA00. "Basic submit
SUBMIT RPTQTA00 AND RETURN. "Return to original report after report execution complete
SUBMIT RPTQTA00 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: HOLDDATE = Lock batch input session until
Selection Text: KEEP = Keep processed session
Selection Text: MAP_NAME = Name of batch input session
Selection Text: SE_KTART = Quota type
Title: Generate Absence Quotas
Text Symbol: 001 = Generated absence quotas
Text Symbol: 002 = Generation period
Text Symbol: AUS = Selected
Text Symbol: COL = Old/new quota records
Text Symbol: DAL = Display all quota records
Text Symbol: DI1 = Display screens
Text Symbol: DI2 = Do not display screens
Text Symbol: DI3 = Display errors only
Text Symbol: DIS = Output options
Text Symbol: DNW = Display only new quota records
Text Symbol: GEN = Generation type
Text Symbol: PU1 = Batch input
Text Symbol: PU2 = Direct
Text Symbol: PU3 = By record
Text Symbol: PU4 = Test run
Text Symbol: SEK = Quotas to be generated


INCLUDES used within this REPORT RPTQTA00

INCLUDE RPTQTA01.
INCLUDE RPTQTA02.


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_MAPNAME_VERIFY CALL FUNCTION 'HR_MAPNAME_VERIFY' EXPORTING mapname = map_name reportname = 'RPTQTA00' IMPORTING mapname = map_name.

BDC_OPEN_GROUP CALL FUNCTION 'BDC_OPEN_GROUP' EXPORTING client = sy-mandt group = map_name holddate = holddate user = sy-uname keep = keep.

HR_QUOTAS_DEFAULT_AT_ENTRY CALL FUNCTION 'HR_QUOTAS_DEFAULT_AT_ENTRY' EXPORTING def_pernr = pernr-pernr IMPORTING def_begda_orig = begda_orig def_endda_orig = endda_orig TABLES def_p0000 = p0000 def_p0001 = p0001 def_p0002 = p0002 def_p0004 = p0004 def_p0007 = p0007 def_p0008 = p0008 def_p0016 = p0016 "XDGL9CK000472 def_p0019 = p0019 def_p0041 = p0041 def_p2001 = p2001 def_p2006 = p2006 def_value_tab = p_default def_value_tab_detail = p_default_detail def_ABWKTART_SEL = SE_KTART[] "note526335 CHANGING def_begda = pn-begda def_endda = pn-endda EXCEPTIONS quomo_not_defined = 1 customizing_error = 2 endda_lt_begda = 3 no_rule_applied = 4 no_active_period = 5.

HR_APPEND_ERROR_LIST call function 'HR_APPEND_ERROR_LIST' "note 676546 EXPORTING "note 676546 pernr = pernr-pernr "note 676546 arbgb = '72' "note 676546 msgty = 'E' "note 676546 msgno = '272'. "note 676546

HR_DISPLAY_ERROR_LIST CALL FUNCTION 'HR_DISPLAY_ERROR_LIST' EXCEPTIONS invalid_linesize = 1 OTHERS = 2.

BDC_CLOSE_GROUP IF proc_typ EQ 1. CALL FUNCTION 'BDC_CLOSE_GROUP'. ENDIF.

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'.

BDC_INSERT CALL FUNCTION 'BDC_INSERT' EXPORTING tcode = 'PA61' TABLES dynprotab = bdcdata.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = 'RPTQTA00' i_internal_tabname = 'GEN_P2006' i_inclname = 'RPTQTA01' 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 = 'RPTQTA00' 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_INFOTYPE_OPERATION CALL FUNCTION 'HR_INFOTYPE_OPERATION' EXPORTING infty = p2006-infty number = p2006-pernr subtype = p2006-subty validityend = p2006-endda validitybegin = p2006-begda record = p2006 operation = operation IMPORTING return = return.

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.

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.

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



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