PBDNUPIN3 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 PBDNUPIN3 into the relevant SAP transactions such as SE38 or SE80
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.
Title: Include for upload/download subroutines.
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
GUI_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
CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING FILENAME = pathname FILETYPE = ftype TABLES DATA_TAB = itab_errc. "UnicodeGUI_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
CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING FILENAME = pathname FILETYPE = ftype TABLES DATA_TAB = itab_corc. "UnicodeWS_FILENAME_GET call function 'WS_FILENAME_GET' exporting def_filename = rlgrap-filename def_path = $pathname mask = ',*.*,*.*.'
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 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
BDC_INSERT call function 'BDC_INSERT' exporting tcode = 'PA30' tables dynprotab = bdcdata.
BDC_CLOSE_GROUP call function 'BDC_CLOSE_GROUP'.
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 PBDNUPIN3 or its description.