SAP Reports / Programs | Payroll | Denmark(PY-DK) SAP PY

RPCFTPM0 SAP ABAP Report - ftp client program for file transfer to and from PBS







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


Text pool values


Selection Text: TOTALTIM = Maximum repeat time
Selection Text: RFC = Fetch from PBS via RFC
Selection Text: RETRY = Repeat if error occurs
Selection Text: PROT = Detailed log
Selection Text: PCUPLOAD = Load local file(s)
Selection Text: INVFILEN = Name of PBS entry values file
Selection Text: INTERVAL = Repeat every X minutes
Selection Text: INPUTVAL = Import PBS entry values
Selection Text: FIRMA = Company
Selection Text: FILEN = Name of results file
Selection Text: FEHLER = Import error table
Selection Text: ERRFILEN = Name of error file
Selection Text: ERGEBNIS = Import results table
Selection Text: DATASET = Dataset
Title: ftp client program for file transfer to and from PBS
Text Symbol: 002 = Output main directory of company:
Text Symbol: 001 = Screen output of a file on the PBS-RFC server:


INCLUDES used within this REPORT RPCFTPM0

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:

GUI_UPLOAD CALL FUNCTION 'GUI_UPLOAD' EXPORTING FILENAME = source1 * FILETYPE = 'ASC' * HAS_FIELD_SEPARATOR = ' ' * HEADER_LENGTH = 0 IMPORTING FILELENGTH = FILELEN * HEADER = TABLES DATA_TAB = ITAB 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 .

WS_UPLOAD * CALL FUNCTION 'WS_UPLOAD' * EXPORTING * FILENAME = SOURCE1 * IMPORTING * FILELENGTH = FILELEN * TABLES * DATA_TAB = ITAB * 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.

HR_DK_FTP_PBS CALL FUNCTION 'HR_DK_FTP_PBS' DESTINATION 'HR_DK_PBS_FTP' EXPORTING COMMAND = COMMAND SOURCEFILE = SOURCE TARGETFILE = TARGET FIRMA = FIRMA TABLES ITAB = ITAB EXCEPTIONS COULNDT_OPEN_SOURCE = 1 COULDNT_OPEN_TARGET = 2 ERROR_WRITING_TARGET = 3 ERROR_READING_SOURCE = 4 ERROR_CLOSING_FILE = 5 ERROR_DELETING_FILE = 6 COULDNT_READ_FROM_FILE = 7 ERROR_CREATING_DIRECTORY = 8 CHANGE_DIR_FAILED = 9 CHANGE_MAINDIR_FAILED = 10 OPEN_SOURCEFILE_FAILED = 11 OPEN_TARGETFILE_FAILED = 12 OTHERS = 13.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING * BIN_FILESIZE = FILENAME = TARGET1 * FILETYPE = 'ASC' * APPEND = ' ' * WRITE_FIELD_SEPARATOR = ' ' * HEADER = '00' * TRUNC_TRAILING_BLANKS = ' ' * WRITE_LF = 'X' * COL_SELECT = ' ' * COL_SELECT_MASK = ' ' IMPORTING FILELENGTH = FILELEN TABLES DATA_TAB = ITAB EXCEPTIONS FILE_WRITE_ERROR = 2 NO_BATCH = 6 * GUI_REFUSE_FILETRANSFER = 3 INVALID_TYPE = 5 * NO_AUTHORITY = 5 UNKNOWN_ERROR = 7 * 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 = 8 .

WS_DOWNLOAD * CALL FUNCTION 'WS_DOWNLOAD' * EXPORTING * FILENAME = TARGET * IMPORTING * FILELENGTH = FILELEN * TABLES * DATA_TAB = ITAB ** 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 * OTHERS = 8.



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