SAP Reports / Programs | Payroll | Germany | Construction Industry(PY-DE-CI) SAP PY

RPUBKKD0 SAP ABAP Report - documentation and ABAP source code







RPUBKKD0 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 RPUBKKD0 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 RPUBKKD0. "Basic submit
SUBMIT RPUBKKD0 AND RETURN. "Return to original report after report execution complete
SUBMIT RPUBKKD0 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: PA_VARI = Layout
Selection Text: PA_TAGE = Tolerance Days
Selection Text: PA_STD = Tolerance Hours
Selection Text: PA_PREV = Only Evaluate Comparison Per.
Selection Text: PA_FPPER = Comparison Period FPPER
Selection Text: PA_BETRG = Tolerance Amounts
Selection Text: G_PREFIX = Path to Folder
Selection Text: G_DNAME = File Name
Selection Text: DELIMIT = Separator in File
Title: SFP - Account Comparison
Text Symbol: T03 = Layout
Text Symbol: P04 = Comparison Period
Text Symbol: P03 = Select Source File
Text Symbol: P02 = ImportFile
Text Symbol: P01 = Tolerance Range for Comparis.
Text Symbol: F11 = at field
Text Symbol: F10 = : DDIC structure does not match data in file
Text Symbol: F09 = Specified period incorrect:
Text Symbol: F08 = CONVERT_CHAR_TAB_TO_KTO not successful
Text Symbol: F07 = not found in DD03L
Text Symbol: F06 = Error Reading from Table DD03L of DDIC Structure:
Text Symbol: F05 = Error in WS_UPLOAD with Path Name:
Text Symbol: F04 = Bytes were read from file:
Text Symbol: F03 = WS_FILENAME_GET successfl with path name:
Text Symbol: F02 = SY-SUBRC:
Text Symbol: F01 = Error in WS_FILENAME_GET with Path Name:
Text Symbol: 004 = No payroll result
Text Symbol: 003 = No Result
Text Symbol: 002 = Employment Days
Text Symbol: 001 = Amount for Tot. Leave


INCLUDES used within this REPORT RPUBKKD0

INCLUDE RPC2RX00.
INCLUDE RPCBLFD7.


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_F4_FOR_ALV_VARIANT CALL FUNCTION 'HR_F4_FOR_ALV_VARIANT' EXPORTING current_report = c_repid IMPORTING variant = pa_vari.

CU_READ_RGDIR CALL FUNCTION 'CU_READ_RGDIR' EXPORTING persnr = l_kto-skv_pernr * IMPORTING * molga = molga TABLES in_rgdir = lt_rgdir EXCEPTIONS no_record_found = 1 OTHERS = 2.

RP_LAST_DAY_OF_MONTHS CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS' EXPORTING day_in = erster IMPORTING last_day_of_month = last_day EXCEPTIONS day_in_no_date = 1 OTHERS = 2.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING * TCLAS = 'A' pernr = l_kto-skv_pernr infty = '0002' begda = last_day endda = last_day IMPORTING subrc = hr_read_infotype_return TABLES infty_tab = p0002 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING * TCLAS = 'A' pernr = l_kto-skv_pernr infty = '0004' begda = last_day endda = last_day IMPORTING subrc = hr_read_infotype_return TABLES infty_tab = p0004 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING pernr = u_pernr arbgb = u_arbgb msgty = u_msgty msgno = u_msgno msgv1 = u_msgv1 msgv2 = u_msgv2 msgv3 = u_msgv3 msgv4 = u_msgv4.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING * I_INTERFACE_CHECK = ' ' i_callback_program = c_repid * I_CALLBACK_PF_STATUS_SET = ' ' * I_CALLBACK_USER_COMMAND = ' ' * i_structure_name = 'AUSWERT' * IS_LAYOUT = it_fieldcat = lt_fieldcat * IT_EXCLUDING = * IT_SPECIAL_GROUPS = * IT_SORT = * IT_FILTER = * IS_SEL_HIDE = * I_DEFAULT = 'X' i_save = 'A' is_variant = g_vari * it_events = gt_alv_events * IT_EVENT_EXIT = * IS_PRINT = * I_SCREEN_START_COLUMN = 0 * I_SCREEN_START_LINE = 0 * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 * IMPORTING * E_EXIT_CAUSED_BY_CALLER = * ES_EXIT_CAUSED_BY_USER = TABLES t_outtab = lt_kto EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = c_repid i_internal_tabname = 'GT_KTO' i_structure_name = 'PTDB_KABGL' CHANGING ct_fieldcat = lt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

WS_FILENAME_GET CALL FUNCTION 'WS_FILENAME_GET' EXPORTING def_filename = p_pathname def_path = p_prefix mask = g_mask mode = 'O' title = text-p03 IMPORTING filename = p_pathname EXCEPTIONS inv_winsys = 1 no_batch = 2 selection_cancel = 3 selection_error = 4.

WS_UPLOAD * CALL FUNCTION 'WS_UPLOAD' CALL FUNCTION c_WS_UPLOAD * YMO temp} EXPORTING * codepage = 'IBM' filename = p_pathname filetype = 'ASC' * HEADLEN = ' ' * LINE_EXIT = ' ' * TRUNCLEN = ' ' * USER_FORM = ' ' * USER_PROG = ' ' IMPORTING filelength = l_filelength TABLES data_tab = kto_char_tab EXCEPTIONS conversion_error = 1 file_open_error = 2 file_read_error = 3 invalid_table_width = 4 invalid_type = 5 no_batch = 6 unknown_error = 7 gui_refuse_filetransfer = 8 customer_error = 9 OTHERS = 10.



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