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

PUSUBTW0 SAP ABAP INCLUDE - Subroutine







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


Text pool values


Title: Subroutine


INCLUDES used within this REPORT PUSUBTW0

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_FILENAME_GET CALL FUNCTION 'WS_FILENAME_GET' EXPORTING DEF_FILENAME = ' ' DEF_PATH = PATHFILE MASK = MASK MODE = 'O' TITLE = TEXT-200 IMPORTING FILENAME = RET_STR RC = DUMMY EXCEPTIONS * inv_winsys = 1 * no_batch = 2 SELECTION_CANCEL = 3 SELECTION_ERROR = 4 OTHERS = 5.

POPUP_TO_DISPLAY_TEXT CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT' EXPORTING TITEL = TEXT-001 TEXTLINE1 = TEXT-003 EXCEPTIONS OTHERS = 1.

WS_UPLOAD * CALL FUNCTION 'WS_UPLOAD' * EXPORTING * FILENAME = PATHFILE * FILETYPE = 'BIN' * 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 * OTHERS = 8.

GUI_UPLOAD CALL FUNCTION 'GUI_UPLOAD' EXPORTING FILENAME = file_name "old name: PATHFILE FILETYPE = 'BIN' * HAS_FIELD_SEPARATOR = ' ' * HEADER_LENGTH = 0 * READ_BY_LINE = 'X' IMPORTING FILELENGTH = LENGTH * HEADER = 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 = 8.

POPUP_TO_DISPLAY_TEXT CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT' EXPORTING TITEL = TEXT-001 TEXTLINE1 = TEXT-003 EXCEPTIONS OTHERS = 1.

POPUP_TO_DISPLAY_TEXT CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT' EXPORTING TITEL = TEXT-001 TEXTLINE1 = TEXT-003 EXCEPTIONS OTHERS = 1.

POPUP_TO_DISPLAY_TEXT CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT' EXPORTING TITEL = TEXT-001 TEXTLINE1 = TEXT-004 EXCEPTIONS OTHERS = 1.

POPUP_TO_DISPLAY_TEXT CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT' EXPORTING TITEL = TEXT-002 TEXTLINE1 = TEXT-003 EXCEPTIONS OTHERS = 1.

WS_FILENAME_GET CALL FUNCTION 'WS_FILENAME_GET' EXPORTING DEF_FILENAME = ' ' DEF_PATH = PATHFILE MASK = MASK MODE = 'S' TITLE = TEXT-201 IMPORTING FILENAME = RET_STR RC = DUMMY EXCEPTIONS * inv_winsys = 1 * no_batch = 2 SELECTION_CANCEL = 3 SELECTION_ERROR = 4 OTHERS = 5.

POPUP_TO_DISPLAY_TEXT CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT' EXPORTING TITEL = TEXT-002 TEXTLINE1 = TEXT-003 EXCEPTIONS OTHERS = 1.

WS_DOWNLOAD * CALL FUNCTION 'WS_DOWNLOAD' * EXPORTING * BIN_FILESIZE = LENGTH * FILENAME = PATHFILE * FILETYPE = 'BIN' * 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 = file_name FILETYPE = 'BIN' * APPEND = ' ' * WRITE_FIELD_SEPARATOR = ' ' * HEADER = '00' * TRUNC_TRAILING_BLANKS = ' ' * WRITE_LF = 'X' * COL_SELECT = ' ' * COL_SELECT_MASK = ' ' * IMPORTING * FILELENGTH = 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.

POPUP_TO_DISPLAY_TEXT CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT' EXPORTING TITEL = TEXT-002 TEXTLINE1 = TEXT-004 EXCEPTIONS OTHERS = 1.

POPUP_TO_DISPLAY_TEXT CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT' EXPORTING TITEL = TEXT-002 TEXTLINE1 = TEXT-003 EXCEPTIONS OTHERS = 1.



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