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

RPCSVGD0 SAP ABAP Report - Create Files for Contribution Statement by EDI (Obsolete)







RPCSVGD0 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report processes summarized data that is created from the SI Contribution Statement (report RPCSVBD0) and, depending on the parameter "Automatic EDI for all Funds", uses this to create an EDI notification file, either for only one EDI payee fund or for all EDI payees (that exist in the TemSe object)...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 RPCSVGD0 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_CSVG - Create EDI Notification File 01


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 RPCSVGD0. "Basic submit
SUBMIT RPCSVGD0 AND RETURN. "Return to original report after report execution complete
SUBMIT RPCSVGD0 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: DATNA_A = File Name for Active Employees
Selection Text: DATNA_R = File Name for Pensions
Selection Text: DF_ALLDT = EDI for All Funds Automat.
Selection Text: DF_BCKUP = Create Backup Copy
Selection Text: DF_BTRTL = Personnel subarea
Selection Text: DF_DFNRP = Stop File Number Check
Selection Text: DF_DFUEG = EDI Fund
Selection Text: DF_DFUEK = EDI Fund Branch Office
Selection Text: DF_DOWNL = Download to PC
Selection Text: DF_PRAFS = Log Order Data Record
Selection Text: DF_PRDFS = Log Notifications
Selection Text: DF_PRKLT = Substitute Cont. Statement
Selection Text: DF_WERKS = Personnel area
Selection Text: TSOBJ = Evaluation Data Contained In
Title: Create Files for Contribution Statement by EDI (Obsolete)
Text Symbol: M01 = The following files were copied to the PC :
Text Symbol: K66 = Uniform Flat-rate Tax Tx
Text Symbol: K65 = Salaried EEs' PI Conrtibutions -Part-time Employees-0600
Text Symbol: K64 = EEs' PI Contributions -Part-time Employees- 0500
Text Symbol: K63 = HI Contributions -Part-time Employees- 6000
Text Symbol: K62 = Total Field/Payment Amt :
Text Symbol: K61 = Number of Records:
Text Symbol: K60 = Subsequent Record
Text Symbol: K53 = File Number :
Text Symbol: K52 = Payee Fund :
Text Symbol: K51 = Created by / Sender :
Text Symbol: K50 = Initial Record
Text Symbol: K42 = Contrib.Rate Reduced :
Text Symbol: K41 = Contrib.Rate Increased :
Text Symbol: K40 = Contrib.Rate General :
Text Symbol: K37 = Acc.to Sec.10 LFZG
Text Symbol: K36 = Refund Amt To Be Paid/Credit
Text Symbol: K35 = PI Contributions -Voluntary Members-
Text Symbol: K34 = HI Contributions -Voluntary Members-
Text Symbol: K33 = Total cost
Text Symbol: K32 = Cont.Amt Acc.to LFZG -Maternity Expenses- U2
Text Symbol: K31 = Contrib.Amt Acc. to LFZG -Sickness Expenses- U1
Text Symbol: K30 = Employment Promotion -Half Contrib.- 0020





Text Symbol: K29 = PI Contributions of Salaried EEs -ER Contrib. 0400
Text Symbol: M02 = nnnth line, nnth part:
Text Symbol: T09 = See SAP Note 1672508
Text Symbol: T08 = This Report Is No Longer Supported
Text Symbol: T07 = Notif.Data in Text(Subst.Contribution Statment)
Text Symbol: T06 = Error messages
Text Symbol: T05 = ....+....1....+....2....+....3....+....4....+....5....+....6....+
Text Symbol: T04 = Order Record
Text Symbol: T03 = ....+....1....+....2....+....3....+....4....+....5
Text Symbol: T02 = Notif.Data
Text Symbol: T01 = Header data
Text Symbol: P04 = Additional data
Text Symbol: P03 = Only for Fund, Branch Office
Text Symbol: P02 = Personnel Area, Personnel Subarea
Text Symbol: P01 = Data on Sender and Payee
Text Symbol: M13 = (Contr. Statemt for Pensioner)
Text Symbol: M12 = (Contr.Statemt for Liable Person)
Text Symbol: M11 = Date, Time :
Text Symbol: M10 = No
Text Symbol: M09 = Yes
Text Symbol: M08 = Download to PC :
Text Symbol: M07 = File Number :
Text Symbol: M06 = Payroll Period :
Text Symbol: M05 = File Name on PC :
Text Symbol: M04 = Procedure ID :
Text Symbol: M03 = Payee Fund :
Text Symbol: F23 = Company Number of Sender Missing in TemSe Object
Text Symbol: F22 = Company Number of HI Fund Missing (T5D11):
Text Symbol: F21 = Employer's Company Number Missing (T5D0P):
Text Symbol: F20 = EDI File Number Not Maintained in V_T5D15.
Text Symbol: F19 = Error Reading Table T5D15.
Text Symbol: F18 = Error Writing Table T4D15.
Text Symbol: F17 = Entry Not Found in T536A:
Text Symbol: F16 = HI Fund Not Found in T5D11:
Text Symbol: F15 = Contribution Rate Not Found in T5D1I:
Text Symbol: F14 = Path for EDI Files Not Maintained in T5D15
Text Symbol: F13 = Entry Does Not Exist in T5D15:
Text Symbol: F11 = Unknown error.
Text Symbol: F10 = This Program Cannot Run in the Background





Text Symbol: F09 = Unpermitted Type.
Text Symbol: F08 = Table Structure Not Permitted.
Text Symbol: F07 = File Size Not Permitted.
Text Symbol: F06 = System Unable To Write in File.
Text Symbol: F05 = System unable to open file
Text Symbol: F03 = Payroll Period Acc. to T5D15:
Text Symbol: F02 = Payroll Period from TemSe:
Text Symbol: F01 = Incorrect Payroll Period in EDI Fund Table (View V_5D15_B):
Text Symbol: EL3 = Order File Log
Text Symbol: EL2 = Log of Notification Data
Text Symbol: EL1 = Notifs
Text Symbol: E08 = Create number range '01': Number range was created
Text Symbol: E07 = Create number range '01': Number range object is not initial
Text Symbol: E06 = Create number range '01': No changes were made
Text Symbol: E05 = Number Range Object 'RP D DFUE' Does Not Exist.
Text Symbol: E04 = Number Range '01' Does Not Exist
Text Symbol: E03 = Number Range '01' Is Not for Internal No.Assignment
Text Symbol: E02 = System Unable To Create Number Range '01' for Object 'RP D DFUE'.
Text Symbol: E01 = Reorganize Number Range '01' for Object 'RP D DFUE'.
Text Symbol: K28 = PI Contributions - Employer Contrib.- 0300
Text Symbol: K27 = Employment Promotion -Full Amount- 0010
Text Symbol: K26 = Salaried Employees PI Contributions 0200
Text Symbol: K25 = Employee Pension Ins. Contributions 0100
Text Symbol: K24 = Social Care Insurance Contributions 0001
Text Symbol: K23 = HI Contributions -Reduced Contribution- 3000
Text Symbol: K22 = HI Contributions -Higher Contribution- 2000
Text Symbol: K21 = HI Contributions -General Contribution- 1000
Text Symbol: K20 = C O N T R I B U T I O N S T A T E M E N T Contrib.group Total amount
Text Symbol: K18 = Tax Number:
Text Symbol: K17 = Paying Office No.:
Text Symbol: K16 = Account No. :
Text Symbol: K15 = Currency Indicator:
Text Symbol: K14 = Seq.Number :
Text Symbol: K13 = Creation Date :
Text Symbol: K12 = Indicator Cont.Amt U1/U2 :
Text Symbol: K11 = Legal Area:
Text Symbol: K10 = Disruptive Event Other Yr:
Text Symbol: K09 = St.of Corrected Contrib. :
Text Symbol: K08 = St.of Recurring Cont. :



Text Symbol: K07 = to :
Text Symbol: K06 = Period from :
Text Symbol: K05 = Contrib.Statement for:
Text Symbol: K04 = Employer :
Text Symbol: K03 = HI Fund :
Text Symbol: K02 = Created by / Sender :
Text Symbol: K01 = Company Number : ....+....1....+
Text Symbol: H01 = File Specs
Text Symbol: F27 = Entry Missing in T5D1L (SI Contrib.Deduction)
Text Symbol: F26 = Paying Office (T5D1L) Not Maintained.
Text Symbol: F25 = Percentages in T5D1I Not Maintained for HI Fund:
Text Symbol: F24 = Company Number of Payee Missing in TemSe Object


INCLUDES used within this REPORT RPCSVGD0

INCLUDE RPC50PD0. "DEFINE FOR READING T5D0P
INCLUDE RPUPMDP3. "WEFL9BK006427
INCLUDE RPCSV2D0.


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 = 'RPCSVGD0' importing tsobj = tsobj exceptions "VUUP40K003161 no_entries_found = 1 "! helpview_not_installed = 2 "! no_value_request_for_molga = 3 "! others = 0. "!

RP_TS_OPEN call function 'RP_TS_OPEN' exporting tsobj = tsobj empfg = 'RPCSVGD0' 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' * EXPORTING * MAXIX = '1' 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.

HR_FILL_DSKO call function 'HR_FILL_DSKO' exporting appl = l_appl vf = vfknn werks = df_werks btrtl = df_btrtl labtr = l_btrnr_abs wlbtr = l_btrnr_emp datum = begda erdat = g_datum erzeit = g_uzeit IMPORTING DSKO = p_dsko ERRORTAB = lt_errors[] EXCEPTIONS NO_NAME1 = 1 NO_ORT = 2 NO_STR = 3 OTHERS = 4.

WS_DOWNLOAD * CALL FUNCTION 'WS_DOWNLOAD' "QALUNIbeg * EXPORTING * FILENAME = DATEI "Zielfile * FILETYPE = 'ASC' "ASCII, also mit CR/LF * MODE = SPACE "überschreiben * TABLES * DATA_TAB = DFS * EXCEPTIONS * FILE_OPEN_ERROR = 01 * FILE_WRITE_ERROR = 02 * INVALID_FILESIZE = 03 * INVALID_TABLE_WIDTH = 04 * INVALID_TYPE = 05 * NO_BATCH = 06 * UNKNOWN_ERROR = 07.

GUI_DOWNLOAD * call function 'GUI_DOWNLOAD' "YCTN885459 * exporting ** BIN_FILESIZE = * filename = datei * filetype = 'ASC' ** APPEND = ' ' ** WRITE_FIELD_SEPARATOR = ' ' ** HEADER = '00' ** TRUNC_TRAILING_BLANKS = ' ' * write_lf = 'X' ** COL_SELECT = ' ' ** COL_SELECT_MASK = ' ' ** IMPORTING ** FILELENGTH = * tables * data_tab = dfs * exceptions * file_write_error = 1 * no_batch = 2 * gui_refuse_filetransfer = 3 * invalid_type = 4 * no_authority = 5 * unknown_error = 6 * header_not_allowed = 7 * separator_not_allowed = 8 * filesize_not_allowed = 9 * header_too_long = 10 * dp_error_create = 11 * dp_error_send = 12 * dp_error_write = 13 * unknown_dp_error = 14 * access_denied = 15 * dp_out_of_memory = 16 * disk_full = 17 * dp_timeout = 18 * file_not_found = 19 * dataprovider_exception = 20 * control_flush_error = 21 * others = 22 * . "QALUNIend "YCTN885459

GUI_VSS_DOWNLOAD call function 'GUI_VSS_DOWNLOAD' "YCTN885459 exporting " CODEPAGE = c_codepage_sap " filename = datei " tables " data_tab = dfs_downl " EXCEPTIONS " FILE_WRITE_ERROR = 1 " NO_BATCH = 2 " GUI_REFUSE_FILETRANSFER = 3 " NO_AUTHORITY = 4 " UNKNOWN_ERROR = 5 " DP_ERROR_CREATE = 6 " DP_ERROR_SEND = 7 " DP_ERROR_WRITE = 8 " UNKNOWN_DP_ERROR = 9 " ACCESS_DENIED = 10 " DP_OUT_OF_MEMORY = 11 " DISK_FULL = 12 " DP_TIMEOUT = 13 " DATAPROVIDER_EXCEPTION = 14 " CONTROL_FLUSH_ERROR = 15 " OTHERS = 16. "YCTN885459

WS_DOWNLOAD * CALL FUNCTION 'WS_DOWNLOAD' "QALUNIbeg * EXPORTING * FILENAME = DATEI "Zielfile * FILETYPE = 'ASC' "ASCII, also mit CR/LF * MODE = SPACE "überschreiben * TABLES * DATA_TAB = DFS * EXCEPTIONS * FILE_OPEN_ERROR = 01 * FILE_WRITE_ERROR = 02 * INVALID_FILESIZE = 03 * INVALID_TABLE_WIDTH = 04 * INVALID_TYPE = 05 * NO_BATCH = 06 * UNKNOWN_ERROR = 07.

GUI_DOWNLOAD * call function 'GUI_DOWNLOAD' "YCTN885459 * exporting ** BIN_FILESIZE = * filename = datei * filetype = 'ASC' ** APPEND = ' ' ** WRITE_FIELD_SEPARATOR = ' ' ** HEADER = '00' ** TRUNC_TRAILING_BLANKS = ' ' * write_lf = 'X' ** COL_SELECT = ' ' ** COL_SELECT_MASK = ' ' ** IMPORTING ** FILELENGTH = * tables * data_tab = dfs * exceptions * file_write_error = 1 * no_batch = 2 * gui_refuse_filetransfer = 3 * invalid_type = 4 * no_authority = 5 * unknown_error = 6 * header_not_allowed = 7 * separator_not_allowed = 8 * filesize_not_allowed = 9 * header_too_long = 10 * dp_error_create = 11 * dp_error_send = 12 * dp_error_write = 13 * unknown_dp_error = 14 * access_denied = 15 * dp_out_of_memory = 16 * disk_full = 17 * dp_timeout = 18 * file_not_found = 19 * dataprovider_exception = 20 * control_flush_error = 21 * others = 22 * . "QALUNIend "YCTN885459

GUI_VSS_DOWNLOAD call function 'GUI_VSS_DOWNLOAD' "YCTN885459 exporting " CODEPAGE = c_codepage_sap " filename = datei " tables " data_tab = dfs_downl " EXCEPTIONS " FILE_WRITE_ERROR = 1 " NO_BATCH = 2 " GUI_REFUSE_FILETRANSFER = 3 " NO_AUTHORITY = 4 " UNKNOWN_ERROR = 5 " DP_ERROR_CREATE = 6 " DP_ERROR_SEND = 7 " DP_ERROR_WRITE = 8 " UNKNOWN_DP_ERROR = 9 " ACCESS_DENIED = 10 " DP_OUT_OF_MEMORY = 11 " DISK_FULL = 12 " DP_TIMEOUT = 13 " DATAPROVIDER_EXCEPTION = 14 " CONTROL_FLUSH_ERROR = 15 " OTHERS = 16. "YCTN885459

WS_DOWNLOAD * CALL FUNCTION 'WS_DOWNLOAD' "QALUNIbeg * EXPORTING * FILENAME = DATEI "Zielfile ** filetype = 'ASC' "ASCII, also mit CR/LF"YCTPH4K028393 * BIN_FILESIZE = 348 "YCTPH4K028393 * FILETYPE = 'BIN' "YCTPH4K028393 * MODE = SPACE "überschreiben * TABLES ** data_tab = afs "YCTK053081 * DATA_TAB = AFSLINE "YCTK053081 * EXCEPTIONS * FILE_OPEN_ERROR = 01 * FILE_WRITE_ERROR = 02 * INVALID_FILESIZE = 03 * INVALID_TABLE_WIDTH = 04 * INVALID_TYPE = 05 * NO_BATCH = 06 * UNKNOWN_ERROR = 07.

GUI_DOWNLOAD call function 'GUI_DOWNLOAD' exporting bin_filesize = 348 filename = datei filetype = 'BIN' * APPEND = 'X' * WRITE_FIELD_SEPARATOR = ' ' * HEADER = '00' * TRUNC_TRAILING_BLANKS = ' ' * WRITE_LF = 'X' * COL_SELECT = ' ' * COL_SELECT_MASK = ' ' * IMPORTING * FILELENGTH = tables data_tab = afsline exceptions file_write_error = 1 no_batch = 2 gui_refuse_filetransfer = 3 invalid_type = 4 no_authority = 5 unknown_error = 6 header_not_allowed = 7 separator_not_allowed = 8 filesize_not_allowed = 9 header_too_long = 10 dp_error_create = 11 dp_error_send = 12 dp_error_write = 13 unknown_dp_error = 14 access_denied = 15 dp_out_of_memory = 16 disk_full = 17 dp_timeout = 18 file_not_found = 19 dataprovider_exception = 20 control_flush_error = 21 others = 22 . "QALUNIend

WS_DOWNLOAD * CALL FUNCTION 'WS_DOWNLOAD' "QALUNIbeg * EXPORTING * FILENAME = DATEI "Zielfile ** filetype = 'ASC' "ASCII, also mit CR/LF"YCTPH4K028393 * BIN_FILESIZE = 348 "YCTPH4K028393 * FILETYPE = 'BIN' "YCTPH4K028393 * MODE = SPACE "überschreiben * TABLES ** data_tab = afs "YCTK053081 * DATA_TAB = AFSLINE "YCTK053081 * EXCEPTIONS * FILE_OPEN_ERROR = 01 * FILE_WRITE_ERROR = 02 * INVALID_FILESIZE = 03 * INVALID_TABLE_WIDTH = 04 * INVALID_TYPE = 05 * NO_BATCH = 06 * UNKNOWN_ERROR = 07.

GUI_DOWNLOAD call function 'GUI_DOWNLOAD' exporting bin_filesize = 348 filename = datei filetype = 'BIN' * APPEND = 'X' * WRITE_FIELD_SEPARATOR = ' ' * HEADER = '00' * TRUNC_TRAILING_BLANKS = ' ' * WRITE_LF = 'X' * COL_SELECT = ' ' * COL_SELECT_MASK = ' ' * IMPORTING * FILELENGTH = tables data_tab = afsline exceptions file_write_error = 1 no_batch = 2 gui_refuse_filetransfer = 3 invalid_type = 4 no_authority = 5 unknown_error = 6 header_not_allowed = 7 separator_not_allowed = 8 filesize_not_allowed = 9 header_too_long = 10 dp_error_create = 11 dp_error_send = 12 dp_error_write = 13 unknown_dp_error = 14 access_denied = 15 dp_out_of_memory = 16 disk_full = 17 dp_timeout = 18 file_not_found = 19 dataprovider_exception = 20 control_flush_error = 21 others = 22 . "QALUNIend

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = lc_logical_filename CHANGING physical_filename = p_pfad EXCEPTIONS logical_filename_not_found = 1 validation_failed = 2 OTHERS = 3.

NUMBER_GET_NEXT call function 'NUMBER_GET_NEXT' exporting nr_range_nr = '01' object = 'RP_D_DFUE' importing number = filenr returncode = rcode exceptions interval_not_found = 1 number_range_not_intern = 2 object_not_found = 3 others = 4.

NUMBER_RANGE_INTERVAL_UPDATE call function 'NUMBER_RANGE_INTERVAL_UPDATE' exporting object = object importing error_occured = error_occured error = error tables interval = iv error_iv = error_iv exceptions object_not_found = 1.

NUMBER_RANGE_UPDATE_CLOSE call function 'NUMBER_RANGE_UPDATE_CLOSE' exporting object = object exceptions no_changes_made = 1 object_not_initialized = 2.

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_APPEND_ALV call function 'HR_APPEND_ALV' exporting tables_and_infos = lt_append_alv_tab exceptions call_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 RPCSVGD0 or its description.