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

RPCSVHD0 SAP ABAP Report - Creation of Files for Contribution Statements







RPCSVHD0 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The report processes contribution statements, which are to be sent by communication server or e-mail and creates all necessary files and table entries depending on the sending personnel (sub)areas and the collection offices of the health insurance funds, so that the B2A Manager can be used to send the contribution statements...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 RPCSVHD0 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_M01_CSVHD0 - Data for Contribution Statements


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 RPCSVHD0. "Basic submit
SUBMIT RPCSVHD0 AND RETURN. "Return to original report after report execution complete
SUBMIT RPCSVHD0 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: TSOBJ = Evaluation Data Contained In
Selection Text: PA_BTRTL = D .
Selection Text: PA_DZULA = D .
Selection Text: PA_UPD = D .
Selection Text: PA_WERKS = D .
Title: Creation of Files for Contribution Statements
Text Symbol: 001 = Short Address Sender
Text Symbol: 003 = Receiving Office Descr.
Text Symbol: D01 = File No.
Text Symbol: D02 = Period
Text Symbol: D03 = TemSe Object
Text Symbol: E01 = Company Number Missing in Table T5D0P for Key
Text Symbol: E02 = Contribution Rate Not Maintained for HI Fund
Text Symbol: E03 = in Period
Text Symbol: E04 = Send as Test Data with Procedure ID
Text Symbol: E05 = Simulation Run without DB Update
Text Symbol: E06 = Incorrect Parameter for Reversal
Text Symbol: EPM = An error occurred. No files were created.
Text Symbol: H01 = List of Files To Be Sent
Text Symbol: P01 = Sender Details


INCLUDES used within this REPORT RPCSVHD0

INCLUDE RPCSV2D0.
INCLUDE RPUPMDP3.


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:

RP_TS_HELPVIEW call function 'RP_TS_HELPVIEW' exporting repid = csvbd3_help importing tsobj = tsobj exceptions no_entries_found = 1 helpview_not_installed = 2 no_value_request_for_molga = 3 others = 0.

HR_PAL_LOG_DISPLAY call function 'HR_PAL_LOG_DISPLAY' exporting i_s_display_profile = l_display_profile exceptions program_error = 1 no_logs = 2 others = 3.

HR_PAL_CREATE_NODE_CATEG call function 'HR_PAL_CREATE_NODE_CATEG' exporting i_categ_id = c_categ_data IT_FIELDCAT = t_fieldcat IT_SORT = t_sortinfo i_save = 'A' i_default = 'X' is_variant = ls_variant IS_LAYOUT = S_LAYOUT exceptions program_error = 1 others = 2.

HR_PAL_NODE_ADD call function 'HR_PAL_NODE_ADD' exporting i_relatkey = c_node_key_root i_node_txt = text-h01 i_categ_id = c_categ_data importing e_node_key = p_node exceptions program_error = 1 others = 2.

HR_PAL_NODE_ADD_ROW call function 'HR_PAL_NODE_ADD_ROW' exporting i_node_key = p_node i_row_data = gtab exceptions program_error = 1 others = 2.

HR_PAL_PERNR_MSG_ADD call function 'HR_PAL_PERNR_MSG_ADD' exporting i_pernr = error_table-pernr i_msgid = error_table-arbgb i_msgty = error_table-msgty i_msgno = error_table-msgno i_msgv1 = error_table-msgv1 i_msgv2 = error_table-msgv2 i_msgv3 = error_table-msgv3 i_msgv4 = error_table-msgv4 exceptions program_error = 1 OTHERS = 2.

DDIF_FIELDINFO_GET call function 'DDIF_FIELDINFO_GET' exporting tabname = tabname fieldname = fieldname tables dfies_tab = dfies_tab exceptions not_found = 1 internal_error = 2 others = 3.

RP_TS_OPEN call function 'RP_TS_OPEN' exporting tsobj = tsobj empfg = csvbd3_open versn = space "YCTN1148020 importing versn = g_ts_versn " TemSe-Version "YCTN1148020 objin = ts_objin.

RSTS_READ call function 'RSTS_READ' tables datatab = cls_temse_09 exceptions fb_call_handle = 01 fb_error = 02 fb_rsts_noconv = 03 fb_rsts_other = 04.

RSTS_READ call function 'RSTS_READ' " tables " datatab = cls_temse " exceptions " fb_call_handle = 01 " fb_error = 02 " fb_rsts_noconv = 03 " fb_rsts_other = 04. "

RSTS_READ call function 'RSTS_READ' tables datatab = cls_08 "QFLN1585445 exceptions fb_call_handle = 01 fb_error = 02 fb_rsts_noconv = 03 fb_rsts_other = 04.

RSTS_CLOSE call function 'RSTS_CLOSE' exceptions fb_call_handle = 01 fb_error = 02 fb_rsts_other = 03.

HRPY_PUST_GET_CONTAINER call function 'HRPY_PUST_GET_CONTAINER' exporting imp_parcel = pyparaid tables container = py_pm_container.

HRPY_PROCESS_FIRE_EVENT call function 'HRPY_PROCESS_FIRE_EVENT' exporting imp_parcel = pyparaid tables imp_container = py_pm_container.

HR_DE_SV_GET_ANNAHMESTELLE CALL FUNCTION 'HR_DE_SV_GET_ANNAHMESTELLE' EXPORTING P_KKART = '03' P_BTRNR = '98094032' P_DATE = obj_endda P_WERKS = xcls-lwerk P_BTRTL = xcls-lbtrt IMPORTING PS_BNR_WTL = l_wtl PS_BNR_DAV = l_dav EXCEPTIONS OTHERS = 1.

HR_DE_SV_GET_ANNAHMESTELLE CALL FUNCTION 'HR_DE_SV_GET_ANNAHMESTELLE' EXPORTING P_BTRNR = l_btrnr P_DATE = obj_endda P_WERKS = xcls-lwerk P_BTRTL = xcls-lbtrt IMPORTING PS_BNR_WTL = l_wtl PS_BNR_DAV = l_dav EXCEPTIONS OTHERS = 1.

HR_DEUEV_CONVERT_P0006 CALL FUNCTION 'HR_DEUEV_CONVERT_P0006' EXPORTING I_SW_D3CHECK = 'X' CHANGING cs_p0006 = ls_p0006 EXCEPTIONS DEUEV_ERROR = 1 OTHERS = 2.

HR_FEATURE_BACKFIELD CALL FUNCTION 'HR_FEATURE_BACKFIELD' EXPORTING FEATURE = pa_dzula STRUC_CONTENT = lme01 IMPORTING BACK = umsout EXCEPTIONS OTHERS = 1.

HR_DE_SV_GET_NEXT_DATNR





CALL FUNCTION 'HR_DE_SV_GET_NEXT_DATNR' EXPORTING P_DTART = g_xcls-dtart P_WERKS = g_xcls-lwerk P_BTRTL = g_xcls-lbtrt P_BNRAG = g_xcls-labtr "QFLN1460223 P_KKART = g_xcls-wlart P_BTRNR = g_xcls-wlbtr IMPORTING P_NEXT_DATNR = new_datnr PS_5D4U = old_t5d4u EXCEPTIONS OTHERS = 1.

RP_TS_CREATE_OBJECT call function 'RP_TS_CREATE_OBJECT' exporting objkn = ts_objkn OBJNR = l_OBJNR empfg = csvbd4_empfg versn = '02' "Version 02 ab 2012 objin = ts_objin importing TSOBJ = tsobj exceptions others = 1.

RP_TS_CREATE_OBJECT call function 'RP_TS_CREATE_OBJECT' exporting objkn = ts_objkn OBJNR = l_OBJNR empfg = csvbd4_empfg objin = ts_objin importing TSOBJ = tsobj exceptions others = 1.

RSTS_WRITE CALL FUNCTION 'RSTS_WRITE' TABLES DATATAB = data_tab EXCEPTIONS fb_call_handle = 01 fb_error = 02 fb_rsts_noconv = 03 fb_rsts_other = 04.

RSTS_WRITE CALL FUNCTION 'RSTS_WRITE' TABLES DATATAB = data_tab EXCEPTIONS fb_call_handle = 01 fb_error = 02 fb_rsts_noconv = 03 fb_rsts_other = 04.

GUID_CREATE CALL FUNCTION 'GUID_CREATE' IMPORTING ev_guid_22 = lv_guid.

RSTS_WRITE CALL FUNCTION 'RSTS_WRITE' TABLES DATATAB = data_tab EXCEPTIONS fb_call_handle = 01 fb_error = 02 fb_rsts_noconv = 03 fb_rsts_other = 04.

RSTS_WRITE CALL FUNCTION 'RSTS_WRITE' TABLES DATATAB = data_tab EXCEPTIONS fb_call_handle = 01 fb_error = 02 fb_rsts_noconv = 03 fb_rsts_other = 04.

RSTS_CLOSE call function 'RSTS_CLOSE' exceptions fb_call_handle = 01 fb_error = 02 fb_rsts_other = 03.

HR_FILL_DSKO CALL FUNCTION 'HR_FILL_DSKO' EXPORTING appl = l_appl vf = g_xcls-VFKNN werks = g_xcls-lwerk btrtl = g_xcls-lbtrt labtr = g_xcls-labtr wlbtr = g_xcls-wlbtr datum = obj_begda erdat = g_datum "QFLN1034777 erzeit = g_uzeit "QFLN1034777 IMPORTING DSKO = p_dsko ERRORTAB = l_errortab EXCEPTIONS NO_NAME1 = 1 NO_ORT = 2 NO_STR = 3 OTHERS = 4.

HR_GET_ADDRESS CALL FUNCTION 'HR_GET_ADDRESS' EXPORTING ankey = lv_ankey anart = 'CA' molga = p_molga IMPORTING address = p_adrs EXCEPTIONS not_found = 1 OTHERS = 2.

HR_DEUEV_CONVERT_P0006 * CALL FUNCTION 'HR_DEUEV_CONVERT_P0006' * EXPORTING * I_SW_D3CHECK = 'X' * CHANGING * cs_p0006 = ls_p0006 * EXCEPTIONS * DEUEV_ERROR = 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 RPCSVHD0 or its description.