SAP Reports / Programs

RPLNCU00 SAP ABAP Report - NC-99001 Report: Generate Importable File







RPLNCU00 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This program generates the data required for Form NC-9901: Report of Organization and outputs it to a file...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 RPLNCU00 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 RPLNCU00. "Basic submit
SUBMIT RPLNCU00 AND RETURN. "Return to original report after report execution complete
SUBMIT RPLNCU00 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: WGTYP = Wage Type
Selection Text: UDATE = Reporting Period End Date
Selection Text: TXCMP = Tax Company
Selection Text: FNAME = Local output file name
Title: NC-99001 Report: Generate Importable File
Text Symbol: ZER = Error log:
Text Symbol: ZEN = Number of errors found:
Text Symbol: T02 = Output
Text Symbol: T01 = Additional selection
Text Symbol: S05 = File name could not be created:
Text Symbol: S04 = File name already exists:
Text Symbol: S03 = File already exists:
Text Symbol: S02 = File successfully created:
Text Symbol: S01 = Output successfully downloaded to local disk
Text Symbol: LOW = 0101
Text Symbol: L02 = Rejected Employees
Text Symbol: L01 = Processed Employees
Text Symbol: HIG = 1231
Text Symbol: EED = 0312
Text Symbol: EE1 = Number of Errors Generated
Text Symbol: E04 = No payroll results for employee with paydate in:
Text Symbol: E03 = No payroll results for employee with paydate until:
Text Symbol: E02 = No payroll results for employee:
Text Symbol: E01 = Invalid work-site in IT209 for EE:
Text Symbol: 3RD = 0331


INCLUDES used within this REPORT RPLNCU00

INCLUDE RPC2RX09.
INCLUDE RPPPXD00.
INCLUDE RPC2RUU0.
INCLUDE RPPPXD10.
INCLUDE RPPPXM00.
INCLUDE RPC2CD09.
INCLUDE RPUMKC00.


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:

CD_SELECT_VOID CALL FUNCTION 'CD_SELECT_VOID' " Eliminate voided results EXPORTING void_indicator = cd_not_void TABLES in_rgdir = rgdir out_rgdir = eval_rgdir.

WS_DOWNLOAD * CALL FUNCTION 'WS_DOWNLOAD' * EXPORTING * FILENAME = FNAME * FILETYPE = 'DAT' * TABLES * DATA_TAB = IT_RECORDS.

GUI_DOWNLOAD * CALL FUNCTION 'GUI_DOWNLOAD' * EXPORTING ** BIN_FILESIZE = * filename = f_name * filetype = 'ASC' ** APPEND = ' ' * write_field_separator = 'X' "Note-915756 ** HEADER = '00' ** TRUNC_TRAILING_BLANKS = ' ' ** WRITE_LF = 'X' ** COL_SELECT = ' ' ** COL_SELECT_MASK = ' ' ** IMPORTING ** FILELENGTH = * TABLES * data_tab = it_records ** 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_PAL_STATS_MSG_ADD * CALL FUNCTION 'HR_PAL_STATS_MSG_ADD' * EXPORTING * i_stcnt = success_count * i_nodid = 'PE' * i_nodpa = space * i_msgid = gv_msg-msgid * i_msgty = gv_msg-msgty * i_msgno = gv_msg-msgno * i_msgv1 = gv_msg-msgv1.

HR_PAL_STATS_MSG_ADD * CALL FUNCTION 'HR_PAL_STATS_MSG_ADD' * EXPORTING * i_stcnt = bi_ee_count * i_nodid = 'PE' * i_nodpa = space * i_msgid = gv_msg-msgid * i_msgty = gv_msg-msgty * i_msgno = gv_msg-msgno * i_msgv1 = gv_msg-msgv1.

HR_PAL_PERNR_MSG_ADD * CALL FUNCTION 'HR_PAL_PERNR_MSG_ADD' * EXPORTING * i_pernr = pernr-pernr * i_msgid = gv_msg-msgid * i_msgty = gv_msg-msgty * i_msgno = gv_msg-msgno * i_msgv1 = gv_msg-msgv1 * i_msgv2 = gv_msg-msgv2 * i_msgv3 = gv_msg-msgv3 * i_msgv4 = gv_msg-msgv4.

HR_PAL_PERNR_MSG_ADD CALL FUNCTION 'HR_PAL_PERNR_MSG_ADD' EXPORTING i_pernr = err-parm1 i_msgid = gv_msg-msgid i_msgty = gv_msg-msgty i_msgno = gv_msg-msgno i_msgv1 = gv_msg-msgv1 i_msgv2 = gv_msg-msgv2 i_msgv3 = gv_msg-msgv3 i_msgv4 = gv_msg-msgv4.

HR_PAL_STATS_MSG_ADD CALL FUNCTION 'HR_PAL_STATS_MSG_ADD' EXPORTING i_stcnt = bi_ee_processed i_msgid = 'BL' * i_msgty = 'S' i_msgno = '001' i_msgv1 = 'Processed Employees'(l01) EXCEPTIONS OTHERS = 99.

HR_PAL_STATS_MSG_ADD CALL FUNCTION 'HR_PAL_STATS_MSG_ADD' EXPORTING i_stcnt = bi_ee_count i_msgid = 'BL' * i_msgty = 'S' i_msgno = '001' i_msgv1 = 'Rejected Employees'(l02) EXCEPTIONS OTHERS = 99.

HR_PAL_LOG_DISPLAY CALL FUNCTION 'HR_PAL_LOG_DISPLAY' EXPORTING i_s_display_profile = l_display_profile.

F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING retfield = 'LGART' dynpprog = l_dynpprog dynpnr = l_dynnr dynprofield = 'Wagetype' value_org = 'S' display = l_display TABLES value_tab = ivalue_tab EXCEPTIONS parameter_error = 1 no_values_found = 2 OTHERS = 3.

GUI_FILE_SAVE_DIALOG CALL FUNCTION 'GUI_FILE_SAVE_DIALOG' IMPORTING fullpath = f_name user_action = user_action.

FILE_GET_NAME CALL FUNCTION 'FILE_GET_NAME' EXPORTING logical_filename = p_lfilen parameter_1 = txcmp-low parameter_2 = udate IMPORTING file_name = lv_filename EXCEPTIONS OTHERS = 99.

HR_PAL_GENRL_MSG_ADD CALL FUNCTION 'HR_PAL_GENRL_MSG_ADD' EXPORTING * i_node_key = 'ROOT' i_msgid = ls_msg-msgid i_msgty = ls_msg-msgty i_msgno = ls_msg-msgno i_msgv1 = ls_msg-msgv1 i_msgv2 = ls_msg-msgv2.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = p_lfilen parameter_1 = txcmp-low parameter_2 = udate CHANGING physical_filename = lv_filename EXCEPTIONS OTHERS = 1.

HR_PAL_GENRL_MSG_ADD CALL FUNCTION 'HR_PAL_GENRL_MSG_ADD' EXPORTING * i_node_key = 'ROOT' i_msgid = ls_msg-msgid i_msgty = ls_msg-msgty i_msgno = ls_msg-msgno i_msgv1 = ls_msg-msgv1 i_msgv2 = ls_msg-msgv2.

HR_PAL_GENRL_MSG_ADD CALL FUNCTION 'HR_PAL_GENRL_MSG_ADD' EXPORTING * i_node_key = 'ROOT' i_msgid = ls_msg-msgid i_msgty = ls_msg-msgty i_msgno = ls_msg-msgno i_msgv1 = ls_msg-msgv1 i_msgv2 = ls_msg-msgv2.

HR_PAL_GENRL_MSG_ADD CALL FUNCTION 'HR_PAL_GENRL_MSG_ADD' EXPORTING * i_node_key = 'ROOT' i_msgid = ls_msg-msgid i_msgty = ls_msg-msgty i_msgno = ls_msg-msgno i_msgv1 = ls_msg-msgv1 i_msgv2 = ls_msg-msgv2.

HR_PAL_GENRL_MSG_ADD





CALL FUNCTION 'HR_PAL_GENRL_MSG_ADD' EXPORTING * i_node_key = 'ROOT' i_msgid = ls_msg-msgid i_msgty = ls_msg-msgty i_msgno = ls_msg-msgno i_msgv1 = ls_msg-msgv1 i_msgv2 = ls_msg-msgv2 EXCEPTIONS OTHERS = 99.



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