SAP Reports / Programs | Personnel Management | Personnel Administration | India(PA-PA-IN) SAP PA

PUUADIN3 SAP ABAP INCLUDE - Include PUUADIN3







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


INCLUDES used within this REPORT PUUADIN3

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_DOWNLOAD * call function 'WS_DOWNLOAD' * exporting ** BIN_FILESIZE = '50' ** CODEPAGE = 'WK1' * filename = pathname * filetype = ftype ** MODE = ' ' ** WK1_N_FORMAT = '0' ** WK1_N_SIZE = '0' ** WK1_T_FORMAT = '0' ** WK1_T_SIZE = '0' ** COL_SELECT = ' ' ** COL_SELECTMASK = ' ' ** NO_AUTH_CHECK = ' ' ** IMPORTING ** FILELENGTH = ' ' * tables * data_tab = itab_errc ** FIELDNAMES = ** EXCEPTIONS ** FILE_OPEN_ERROR = 1 ** FILE_WRITE_ERROR = 2 ** INVALID_FILESIZE = 3 ** INVALID_TYPE = 4 ** NO_BATCH = 5 ** UNKNOWN_ERROR = 6 ** INVALID_TABLE_WIDTH = 7 ** GUI_REFUSE_FILETRANSFER = 8 ** CUSTOMER_ERROR = 9 ** NO_AUTHORTY = 10 ** OTHERS = 11 * .

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING * BIN_FILESIZE = FILENAME = pathname FILETYPE = ftype * APPEND = ' ' * WRITE_FIELD_SEPARATOR = ' ' * HEADER = '00' * TRUNC_TRAILING_BLANKS = ' ' * WRITE_LF = 'X' * COL_SELECT = ' ' * COL_SELECT_MASK = ' ' * IMPORTING * FILELENGTH = TABLES DATA_TAB = itab_errc * 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

WS_DOWNLOAD * call function 'WS_DOWNLOAD' * exporting ** BIN_FILESIZE = '50' ** CODEPAGE = 'WK1' * filename = pathname * filetype = ftype ** MODE = ' ' ** WK1_N_FORMAT = '0' ** WK1_N_SIZE = '0' ** WK1_T_FORMAT = '0' ** WK1_T_SIZE = '0' ** COL_SELECT = ' ' ** COL_SELECTMASK = ' ' ** NO_AUTH_CHECK = ' ' ** IMPORTING ** FILELENGTH = ' ' * tables * data_tab = itab_corc ** FIELDNAMES = ** EXCEPTIONS ** FILE_OPEN_ERROR = 1 ** FILE_WRITE_ERROR = 2 ** INVALID_FILESIZE = 3 ** INVALID_TYPE = 4 ** NO_BATCH = 5 ** UNKNOWN_ERROR = 6 ** INVALID_TABLE_WIDTH = 7 ** GUI_REFUSE_FILETRANSFER = 8 ** CUSTOMER_ERROR = 9 ** NO_AUTHORTY = 10 ** OTHERS = 11 * .

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING * BIN_FILESIZE = FILENAME = pathname FILETYPE = ftype * APPEND = ' ' * WRITE_FIELD_SEPARATOR = ' ' * HEADER = '00' * TRUNC_TRAILING_BLANKS = ' ' * WRITE_LF = 'X' * COL_SELECT = ' ' * COL_SELECT_MASK = ' ' * IMPORTING * FILELENGTH = TABLES DATA_TAB = itab_corc * 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

WS_FILENAME_GET call function 'WS_FILENAME_GET' exporting def_filename = rlgrap-filename def_path = $pathname mask = ',*.*,*.*.'

WS_DOWNLOAD * call function 'WS_DOWNLOAD' * exporting ** BIN_FILESIZE = '50' ** CODEPAGE = 'WK1' * filename = $dl_pathname * filetype = $dl_ftype ** MODE = ' ' ** WK1_N_FORMAT = '0' ** WK1_N_SIZE = '0' ** WK1_T_FORMAT = '0' ** WK1_T_SIZE = '0' ** COL_SELECT = ' ' ** COL_SELECTMASK = ' ' ** NO_AUTH_CHECK = ' ' ** IMPORTING ** FILELENGTH = ' ' * tables * data_tab = itab_corc ** FIELDNAMES = ** EXCEPTIONS ** FILE_OPEN_ERROR = 1 ** FILE_WRITE_ERROR = 2 ** INVALID_FILESIZE = 3 ** INVALID_TYPE = 4 ** NO_BATCH = 5 ** UNKNOWN_ERROR = 6 ** INVALID_TABLE_WIDTH = 7 ** GUI_REFUSE_FILETRANSFER = 8 ** CUSTOMER_ERROR = 9 ** NO_AUTHORTY = 10 ** OTHERS = 11 * .

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING * BIN_FILESIZE = FILENAME = $dl_pathname FILETYPE = $dl_ftype * APPEND = ' ' * WRITE_FIELD_SEPARATOR = ' ' * HEADER = '00' * TRUNC_TRAILING_BLANKS = ' ' * WRITE_LF = 'X' * COL_SELECT = ' ' * COL_SELECT_MASK = ' ' * IMPORTING * FILELENGTH = TABLES DATA_TAB = itab_corc * 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

WS_UPLOAD * call function 'WS_UPLOAD' * exporting * codepage = 'IBM' * filename = $ul_pathname * filetype = $ul_ftype ** headlen = ' ' ** line_exit = ' ' ** trunclen = ' ' * user_form = ' ' * user_prog = ' ' * importing * filelength = $ul_file_length * tables * data_tab = ul_itab_name * 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 = $ul_pathname FILETYPE = $ul_ftype * HAS_FIELD_SEPARATOR = ' ' * HEADER_LENGTH = 0 * READ_BY_LINE = 'X' IMPORTING FILELENGTH = $ul_file_length * HEADER = TABLES DATA_TAB = ul_itab_name 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

HR_READ_INFOTYPE call function 'HR_READ_INFOTYPE' exporting pernr = ul_itab_final-pernr infty = '0008' begda = low-date endda = dweffdt * IMPORTING * SUBRC = tables infty_tab = basicpay exceptions infty_not_found = 1 others = 2 .

BDC_INSERT call function 'BDC_INSERT' exporting tcode = 'PA30' tables dynprotab = bdcdata.

BDC_CLOSE_GROUP call function 'BDC_CLOSE_GROUP'.

HR_READ_INFOTYPE call function 'HR_READ_INFOTYPE' exporting pernr = pernr-pernr infty = '0025' begda = low-date endda = dweffdt * IMPORTING * SUBRC =
tables infty_tab = appraisal exceptions infty_not_found = 1 others = 2 .

BDC_OPEN_GROUP call function 'BDC_OPEN_GROUP' exporting client = sy-mandt group = bthsec user = sy-uname.



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