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

PLLICTWV SAP ABAP INCLUDE - VB routines: LI/NHI change







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


Text pool values


Title: VB routines: LI/NHI change


INCLUDES used within this REPORT PLLICTWV

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:

WS_ULDL_PATH CALL FUNCTION 'WS_ULDL_PATH' IMPORTING download_path = download_path EXCEPTIONS OTHERS = 1.

WS_QUERY CALL FUNCTION 'WS_QUERY' EXPORTING query = 'WS' IMPORTING return = win_sys EXCEPTIONS inv_query = 01 no_batch = 02.

PC_OLE_SERVER_CHECK CALL FUNCTION 'PC_OLE_SERVER_CHECK' IMPORTING down_load_path = path TABLES ole_server_app = ole_servers EXCEPTIONS unsupported_os = 01 unsupported_server = 02 no_ole_server_found = 03.

WS_QUERY CALL FUNCTION 'WS_QUERY' EXPORTING environment = 'TEMP' query = 'EN' IMPORTING return = down_load_path EXCEPTIONS inv_query = 1 no_batch = 2 frontend_error = 3 OTHERS = 4.

WS_QUERY CALL FUNCTION 'WS_QUERY' EXPORTING environment = 'TMP' query = 'EN' IMPORTING return = down_load_path EXCEPTIONS inv_query = 1 no_batch = 2 frontend_error = 3 OTHERS = 4.

WS_QUERY CALL FUNCTION 'WS_QUERY' EXPORTING query = 'CD' IMPORTING return = down_load_path EXCEPTIONS inv_query = 1 no_batch = 2 frontend_error = 3 OTHERS = 4.

WS_DOWNLOAD * CALL FUNCTION 'WS_DOWNLOAD' "unicode start * EXPORTING * BIN_FILESIZE = LENGTH * FILENAME = FILENAME * FILETYPE = 'BIN' * IMPORTING * FILELENGTH = REAL_LENGTH * TABLES * DATA_TAB = DATA_CONTAINER * EXCEPTIONS * FILE_OPEN_ERROR = 1 * FILE_WRITE_ERROR = 2 * INVALID_FILESIZE = 3 * INVALID_TABLE_WIDTH = 4 * INVALID_TYPE = 5 * NO_BATCH = 6 * UNKNOWN_ERROR = 7 * GUI_REFUSE_FILETRANSFER = 8 * OTHERS = 9.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING bin_filesize = length filename = sfilename filetype = 'BIN' IMPORTING filelength = real_length TABLES data_tab = data_container 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

WS_FILE_DELETE CALL FUNCTION 'WS_FILE_DELETE' EXPORTING file = filename EXCEPTIONS OTHERS = 1.

WS_EXECUTE CALL FUNCTION 'WS_EXECUTE' EXPORTING commandline = command_line inform = 'X' program = vbprogram EXCEPTIONS frontend_error = 1 no_batch = 2 prog_not_found = 3 illegal_option = 4 gui_refuse_execute = 5 OTHERS = 6.

WS_QUERY CALL FUNCTION 'WS_QUERY' EXPORTING filename = reportname query = 'FE' IMPORTING return = answer EXCEPTIONS inv_query = 1 no_batch = 2 frontend_error = 3 OTHERS = 4.

WS_QUERY CALL FUNCTION 'WS_QUERY' EXPORTING filename = status_filename query = 'FE' IMPORTING return = answer EXCEPTIONS inv_query = 1 no_batch = 2 frontend_error = 3 OTHERS = 4.

WS_QUERY CALL FUNCTION 'WS_QUERY' EXPORTING filename = status_filename query = 'FE' IMPORTING return = answer EXCEPTIONS inv_query = 1 no_batch = 2 frontend_error = 3 OTHERS = 4.

WS_UPLOAD * CALL FUNCTION 'WS_UPLOAD' "unicode start * EXPORTING * FILENAME = STATUS_FILENAME * FILETYPE = 'ASC' * IMPORTING * FILELENGTH = LENGTH * TABLES * DATA_TAB = DATA_CONTAINER * EXCEPTIONS * CONVERSION_ERROR = 1 * FILE_OPEN_ERROR = 2 * FILE_READ_ERROR = 3 * INVALID_TABLE_WIDTH = 4 * INVALID_TYPE = 5 * NO_BATCH = 6 * UNKNOWN_ERROR = 7 * GUI_REFUSE_FILETRANSFER = 8 * OTHERS = 9.

GUI_UPLOAD CALL FUNCTION 'GUI_UPLOAD' EXPORTING filename = s_status_filename filetype = 'ASC' IMPORTING filelength = length TABLES data_tab = data_container EXCEPTIONS file_open_error = 1 file_read_error = 2 no_batch = 3 gui_refuse_filetransfer = 4 invalid_type = 5 no_authority = 6 unknown_error = 7 bad_data_format = 8 header_not_allowed = 9 separator_not_allowed = 10 header_too_long = 11 unknown_dp_error = 12 access_denied = 13 dp_out_of_memory = 14 disk_full = 15 dp_timeout = 16 OTHERS = 17. "unicode end

WS_FILE_DELETE CALL FUNCTION 'WS_FILE_DELETE' EXPORTING file = filename EXCEPTIONS OTHERS = 1.

WS_FILE_DELETE CALL FUNCTION 'WS_FILE_DELETE' EXPORTING file = filename EXCEPTIONS OTHERS = 1.

WS_FILE_DELETE CALL FUNCTION 'WS_FILE_DELETE' EXPORTING file = filename EXCEPTIONS OTHERS = 1.

WS_FILE_DELETE





CALL FUNCTION 'WS_FILE_DELETE' EXPORTING file = filename EXCEPTIONS OTHERS = 1.

WS_FILE_DELETE CALL FUNCTION 'WS_FILE_DELETE' EXPORTING file = filename EXCEPTIONS OTHERS = 1.

WS_FILE_DELETE CALL FUNCTION 'WS_FILE_DELETE' EXPORTING file = save_filename EXCEPTIONS OTHERS = 1.

WS_DOWNLOAD * CALL FUNCTION 'WS_DOWNLOAD' "unicode start * EXPORTING * FILENAME = CONTENT_FILENAME * FILETYPE = 'DAT' * TABLES * DATA_TAB = CONTAINER * FIELDNAMES = DOWNLOAD_FIELDNAMES * EXCEPTIONS * FILE_OPEN_ERROR = 1 * FILE_WRITE_ERROR = 2 * INVALID_FILESIZE = 3 * INVALID_TABLE_WIDTH = 4 * INVALID_TYPE = 5 * NO_BATCH = 6 * UNKNOWN_ERROR = 7 * GUI_REFUSE_FILETRANSFER = 8 * OTHERS = 9.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING bin_filesize = l_filesize filename = content_filename filetype = 'BIN' append = ' ' 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 bin_filesize = l_filesize filename = content_filename filetype = 'BIN' append = 'A' 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 = content_filename filetype = 'ASC' APPEND = ' ' write_field_separator = 'X' TABLES data_tab = dl_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.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING filename = content_filename filetype = 'ASC' APPEND = 'X' write_field_separator = 'X' TABLES data_tab = container 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

WS_FILENAME_GET CALL FUNCTION 'WS_FILENAME_GET' EXPORTING def_filename = default_name def_path = download_path mask = mask mode = 'S' title = text-200 IMPORTING filename = ret_str rc = dummy EXCEPTIONS * inv_winsys = 1 * no_batch = 2 selection_cancel = 3 selection_error = 4 OTHERS = 5.

WS_QUERY CALL FUNCTION 'WS_QUERY' EXPORTING filename = tempfilename query = 'FE' IMPORTING return = answer EXCEPTIONS inv_query = 1 no_batch = 2 frontend_error = 3 OTHERS = 4.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING * DEFAULTOPTION = 'Y' textline1 = tempfilename textline2 = text-073 titel = text-072 * START_COLUMN = 25 * START_ROW = 6 cancel_display = ' ' IMPORTING answer = answer EXCEPTIONS OTHERS = 1.

WS_QUERY CALL FUNCTION 'WS_QUERY' EXPORTING environment = 'windir' "#EC NOTEXT query = 'EN' IMPORTING return = dir EXCEPTIONS inv_query = 1 no_batch = 2 frontend_error = 3 OTHERS = 4.

WS_QUERY CALL FUNCTION 'WS_QUERY' EXPORTING filename = tempfilename query = 'DE' IMPORTING return = answer EXCEPTIONS inv_query = 1 no_batch = 2 frontend_error = 3 OTHERS = 4.

WS_QUERY CALL FUNCTION 'WS_QUERY' EXPORTING filename = tempfilename query = 'FE' IMPORTING return = answer EXCEPTIONS inv_query = 1 no_batch = 2 frontend_error = 3 OTHERS = 4.

WS_QUERY CALL FUNCTION 'WS_QUERY' EXPORTING filename = tempfilename query = 'FL' IMPORTING return = length EXCEPTIONS inv_query = 1 no_batch = 2 frontend_error = 3 OTHERS = 4.

WS_QUERY CALL FUNCTION 'WS_QUERY' EXPORTING filename = tempfilename query = 'FE' IMPORTING return = answer EXCEPTIONS inv_query = 1 no_batch = 2 frontend_error = 3 OTHERS = 4.

WS_QUERY CALL FUNCTION 'WS_QUERY' EXPORTING filename = tempfilename query = 'FL' IMPORTING return = length EXCEPTIONS inv_query = 1 no_batch = 2 frontend_error = 3 OTHERS = 4.

WS_DOWNLOAD * CALL FUNCTION 'WS_DOWNLOAD' "unicode start * EXPORTING * BIN_FILESIZE = LENGTH * FILENAME = TEMPFILENAME * FILETYPE = 'BIN' * IMPORTING * FILELENGTH = REAL_LENGTH * TABLES * DATA_TAB = DATA_CONTAINER * EXCEPTIONS * FILE_OPEN_ERROR = 1 * FILE_WRITE_ERROR = 2 * INVALID_FILESIZE = 3 * INVALID_TABLE_WIDTH = 4 * INVALID_TYPE = 5 * NO_BATCH = 6 * UNKNOWN_ERROR = 7 * GUI_REFUSE_FILETRANSFER = 8 * OTHERS = 9.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING bin_filesize = length filename = tempfile filetype = 'BIN' IMPORTING filelength = real_length TABLES data_tab = data_container 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



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