SAP Reports / Programs | Payroll | Singapore(PY-SG) SAP PY

RPCT8SRN SAP ABAP INCLUDE - Include RPCT8SRN for IRAS Line







RPCT8SRN is a standard ABAP INCLUDE 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 RPCT8SRN 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 RPCT8SRN. "Basic submit
SUBMIT RPCT8SRN AND RETURN. "Return to original report after report execution complete
SUBMIT RPCT8SRN VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Include RPCT8SRN for IRAS Line


INCLUDES used within this REPORT RPCT8SRN

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:

GUI_DOWNLOAD * CALL FUNCTION 'GUI_DOWNLOAD' "ERAAL0K006000 * EXPORTING * BIN_FILESIZE = temp_HLP_LENGTH * FILENAME = temp_HLP_FILENAME * FILETYPE = 'BIN' ** APPEND = ' ' ** WRITE_FIELD_SEPARATOR = ' ' ** HEADER = '00' ** TRUNC_TRAILING_BLANKS = ' ' ** WRITE_LF = 'X' ** COL_SELECT = ' ' ** COL_SELECT_MASK = ' ' ** IMPORTING ** FILELENGTH = * TABLES * DATA_TAB = IRASLINE * EXCEPTIONS * FILE_WRITE_ERROR = 1.

GUI_DOWNLOAD * CALL FUNCTION 'GUI_DOWNLOAD' "ERAAL0K006000 * EXPORTING * BIN_FILESIZE = temp_HLP_LENGTH * FILENAME = temp_HLP_FILENAME * FILETYPE = 'VSS' ** APPEND = ' ' ** WRITE_FIELD_SEPARATOR = ' ' ** HEADER = '00' ** TRUNC_TRAILING_BLANKS = ' ' ** WRITE_LF = 'X' ** COL_SELECT = ' ' ** COL_SELECT_MASK = ' ' ** IMPORTING ** FILELENGTH = * TABLES * DATA_TAB = IRASLINE_VSS * EXCEPTIONS * FILE_WRITE_ERROR = 1.

WS_DOWNLOAD * CALL FUNCTION 'WS_DOWNLOAD' "ERAAL0K006000 * EXPORTING * BIN_FILESIZE = HLP_LENGTH "Length of the file * FILENAME = HLP_FILENAME "File name on PC * FILETYPE = 'ASC' "download with CR/LF ='1A' * FILETYPE = 'BIN' * MODE = SPACE "Overwritten * TABLES * DATA_TAB = IRASLINE * EXCEPTIONS * FILE_OPEN_ERROR = 1 * FILE_WRITE_ERROR = 2.

WS_DOWNLOAD * CALL FUNCTION 'WS_DOWNLOAD' "CHM#970128 * EXPORTING * BIN_FILESIZE = HLP_LENGTH "Length of the file * FILENAME = HLP_FILENAME "File name on PC ** FILETYPE = 'ASC' "download with CR/LF ='1A' * FILETYPE = 'BIN' * MODE = SPACE "Overwritten * IMPORTING * FILELENGTH = FILELENGTH "RTTL6BK052231 * TABLES * DATA_TAB = IRASLINE * EXCEPTIONS * FILE_OPEN_ERROR = 1 * FILE_WRITE_ERROR = 2.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING * BIN_FILESIZE = FILENAME = temp_filename FILETYPE = 'ASC' * APPEND = ' ' * WRITE_FIELD_SEPARATOR = ' ' * HEADER = '00' * TRUNC_TRAILING_BLANKS = ' ' WRITE_LF = space * COL_SELECT = ' ' * COL_SELECT_MASK = ' ' * DAT_MODE = ' ' * CONFIRM_OVERWRITE = ' ' * NO_AUTH_CHECK = ' ' * CODEPAGE = ' ' * IGNORE_CERR = ABAP_TRUE * REPLACEMENT = '#' * WRITE_BOM = ' ' * TRUNC_TRAILING_BLANKS_EOL = 'X' * WK1_N_FORMAT = ' ' * WK1_N_SIZE = ' ' * WK1_T_FORMAT = ' ' * WK1_T_SIZE = ' ' * IMPORTING * FILELENGTH = FILELENGTH TABLES DATA_TAB = IRASLINE * FIELDNAMES = 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 .

WS_DOWNLOAD * call function 'WS_DOWNLOAD' "CHM#970128 * exporting * bin_filesize = hlp_length "Length of the file * filename = hlp_filename "File name on PC ** FILETYPE = 'ASC' "download with CR/LF ='1A' * filetype = 'VSS' "SKKL9CK076190 * mode = space "Overwritten * importing "RTTL6BK052231 * filelength = filelength * tables * data_tab = irasline_vss * exceptions * file_open_error = 1 * file_write_error = 2.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING * BIN_FILESIZE = FILENAME = temp_filename FILETYPE = 'VSS' * APPEND = ' ' * WRITE_FIELD_SEPARATOR = ' ' * HEADER = '00' * TRUNC_TRAILING_BLANKS = ' ' * WRITE_LF = 'X' * COL_SELECT = ' ' * COL_SELECT_MASK = ' ' * DAT_MODE = ' ' * CONFIRM_OVERWRITE = ' ' * NO_AUTH_CHECK = ' ' * CODEPAGE = ' ' * IGNORE_CERR = ABAP_TRUE * REPLACEMENT = '#' * WRITE_BOM = ' ' * TRUNC_TRAILING_BLANKS_EOL = 'X' * WK1_N_FORMAT = ' ' * WK1_N_SIZE = ' ' * WK1_T_FORMAT = ' ' * WK1_T_SIZE = ' ' * IMPORTING * FILELENGTH = filelength TABLES DATA_TAB = irasline_vss * FIELDNAMES = 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 .

HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING PERNR = $PERNR ARBGB = $ARBGB " '7R'? MSGTY = $TYPE MSGNO = $MSGNO MSGV1 = $MSGV1 MSGV2 = $MSGV2 MSGV3 = $MSGV3 MSGV4 = $MSGV4 EXCEPTIONS OTHERS = 1.

HR_DISPLAY_ERROR_LIST CALL FUNCTION 'HR_DISPLAY_ERROR_LIST' EXPORTING NO_POPUP = 'X' NO_PRINT = ' ' EXCEPTIONS INVALID_LINESIZE = 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 RPCT8SRN or its description.