SAP Reports / Programs | Payroll | Taiwan(PY-TW) SAP PY

PLNPRTW1 SAP ABAP INCLUDE - Include PLNPRTW1







PLNPRTW1 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 PLNPRTW1 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 PLNPRTW1. "Basic submit
SUBMIT PLNPRTW1 AND RETURN. "Return to original report after report execution complete
SUBMIT PLNPRTW1 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 PLNPRTW1


INCLUDES used within this REPORT PLNPRTW1

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:

HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING pernr = p_pernr arbgb = p_msgid msgty = p_msgty msgno = p_msgno msgv1 = p_msgv1 msgv2 = p_msgv2 msgv3 = p_msgv3 msgv4 = p_msgv4 EXCEPTIONS OTHERS = 1.

HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING pernr = p_pernr arbgb = p_msgid msgty = p_msgty msgno = p_msgno msgv1 = p_msgv1 msgv2 = p_msgv2 msgv3 = p_msgv3 msgv4 = p_msgv4 EXCEPTIONS OTHERS = 1.

HR_TW_GET_CHINESE CALL FUNCTION 'HR_TW_GET_CHINESE' EXPORTING non_uni_code = 'A67E' utf16_code = '5E74' utf8_code = 'E5B9B4' IMPORTING chinese_character = c_year.

HR_TW_GET_CHINESE CALL FUNCTION 'HR_TW_GET_CHINESE' EXPORTING non_uni_code = 'A4EB' utf16_code = '6708' utf8_code = 'E69C88' IMPORTING chinese_character = c_month.

HR_TW_GET_CHINESE CALL FUNCTION 'HR_TW_GET_CHINESE' EXPORTING non_uni_code = 'A4E9' utf16_code = '65E5' utf8_code = 'E697A5' IMPORTING chinese_character = c_date.

HR_TW_DATE CALL FUNCTION 'HR_TW_DATE' EXPORTING date_in_western = p_gbdat IMPORTING tw_year = gyear month = gbmon day = gbday before_tw_date = qian EXCEPTIONS input_date_is_initial = 1 OTHERS = 2.

HR_DISPLAY_ERROR_LIST CALL FUNCTION 'HR_DISPLAY_ERROR_LIST' EXPORTING * no_popup = 'X' no_print = space EXCEPTIONS invalid_linesize = 1 OTHERS = 2.

HR_REFRESH_ERROR_LIST CALL FUNCTION 'HR_REFRESH_ERROR_LIST'.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING bin_filesize = l_filesize filename = file_name filetype = 'BIN' TABLES data_tab = EXCEPTIONS file_write_error = 1 no_batch = 2 gui_refuse_filetransfer = 3 invalid_type = 4 OTHERS = 5.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING filename = file_name filetype = 'ASC' bin_filesize = l_filesize * APPEND = ' ' * WRITE_FIELD_SEPARATOR = ' ' * HEADER = '00' * TRUNC_TRAILING_BLANKS = ' ' * WRITE_LF = 'X' * COL_SELECT = ' ' * COL_SELECT_MASK = ' ' * IMPORTING * FILELENGTH = TABLES data_tab = np_down 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 . "unicode end

HR_KR_STRING_TO_XSTRING CALL FUNCTION 'HR_KR_STRING_TO_XSTRING' EXPORTING codepage_to = '8300' unicode_string = in_str out_len = length IMPORTING xstring_stream = out_xstr.

HR_DISPLAY_ERROR_LIST CALL FUNCTION 'HR_DISPLAY_ERROR_LIST' EXPORTING no_popup = 'X' no_print = space EXCEPTIONS invalid_linesize = 1 OTHERS = 2.

WS_FILENAME_GET CALL FUNCTION 'WS_FILENAME_GET' EXPORTING def_filename = def_fnm def_path = 'C:/' mask = ',*.*,*.*.'

HR_TW_NAME_IN_CHINESE CALL FUNCTION 'HR_TW_NAME_IN_CHINESE' EXPORTING pp0002 = p0002 pp0182 = p0182 IMPORTING edit_name = $name retcode = subrc EXCEPTIONS OTHERS = 1.

RP_EDIT_NAME CALL FUNCTION 'RP_EDIT_NAME' EXPORTING format = p0002-knznm langu = space molga = '42' pp0002 = p0002 IMPORTING edit_name = $name retcode = subrc EXCEPTIONS OTHERS = 1.

HR_ENTRY_DATE CALL FUNCTION 'HR_ENTRY_DATE' EXPORTING PERSNR = pernr-pernr * RCLAS = * BEGDA = '18000101' * ENDDA = '99991231' * VARKY = IMPORTING ENTRYDATE = lv_entry_date * TABLES * ENTRY_DATES = EXCEPTIONS ENTRY_DATE_NOT_FOUND = 1 PERNR_NOT_ASSIGNED = 2 OTHERS = 3 .

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = p0818-pernr infty = $infty begda = $begda endda = $endda IMPORTING subrc = subrc TABLES infty_tab = $result EXCEPTIONS infty_not_found = 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 PLNPRTW1 or its description.