SAP Reports / Programs | Payroll | China(PY-CN) SAP PY

PC2UTCN0 SAP ABAP INCLUDE - Include PC2UTCN0: subroutine of download/upload MSWORD form







PC2UTCN0 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 PC2UTCN0 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 PC2UTCN0. "Basic submit
SUBMIT PC2UTCN0 AND RETURN. "Return to original report after report execution complete
SUBMIT PC2UTCN0 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 PC2UTCN0: subroutine of download/upload MSWORD form


INCLUDES used within this REPORT PC2UTCN0

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:

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING TEXT = PROGRESS_TEXT.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING TEXT = TEXT-012.

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

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

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING TEXT = TEXT-003.

WS_FILENAME_GET CALL FUNCTION 'WS_FILENAME_GET' EXPORTING DEF_FILENAME = ' ' DEF_PATH = PATHFILE MASK = MASK MODE = 'O' TITLE = TEXT-001 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-005 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 = L_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 = 17 .

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

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING TEXT = TEXT-003.

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

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

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

HR_CN_CHOOSE_FORM CALL FUNCTION 'HR_CN_CHOOSE_FORM' EXPORTING FORM_AREA = FORM_AREA IMPORTING FORM_ID = FORM_ID FORM_DESC = FORM_DESC.

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

POPUP_TO_DISPLAY_TEXT CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT' EXPORTING TITEL = TEXT-002 TEXTLINE1 = TEXT-013 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 PC2UTCN0 or its description.