SAP Reports / Programs

RFTBFF20 SAP ABAP Report - File Interface: Import Statistics Data







RFTBFF20 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Report RFTBFF20 allows you to transfer external market data into the SAP system in file form...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RFTBFF20 into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

TVMD - Transfer Mkt Data


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 RFTBFF20. "Basic submit
SUBMIT RFTBFF20 AND RETURN. "Return to original report after report execution complete
SUBMIT RFTBFF20 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: FILE = File name
Selection Text: PAR_TST = Test run
Selection Text: PCUPLOAD = PC upload
Title: File Interface: Import Statistics Data
Text Symbol: 002 = PC file
Text Symbol: 100 = Entry
Text Symbol: 101 = Other
001 WT C1 I11 I12 C2 I21 I22


INCLUDES used within this REPORT RFTBFF20

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:

FILE_GET_NAME CALL FUNCTION 'FILE_GET_NAME' EXPORTING logical_filename = gc_fname * any parameters defined for that logical file name including_dir = 'X' IMPORTING file_name = file EXCEPTIONS others = 1.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = gc_fname * any parameters defined for that logical file name CHANGING physical_filename = file EXCEPTIONS OTHERS = 1.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = 'RFTBFF20' dynumb = '1000' translate_to_upper = 'X' TABLES dynpfields = dynpfields EXCEPTIONS invalid_abapworkarea = 1 invalid_dynprofield = 2 invalid_dynproname = 3 invalid_dynpronummer = 4 invalid_request = 5 no_fielddescription = 6 invalid_parameter = 7 undefind_error = 8 OTHERS = 9.

WS_FILENAME_GET * CALL FUNCTION 'WS_FILENAME_GET' * EXPORTING * mask = ',*.*,*.*.'

GUI_FILE_LOAD_DIALOG CALL FUNCTION 'GUI_FILE_LOAD_DIALOG' EXPORTING WINDOW_TITLE = text-002 * DEFAULT_EXTENSION = * DEFAULT_FILE_NAME = * WITH_ENCODING = * FILE_FILTER = * INITIAL_DIRECTORY = IMPORTING FILENAME = tmp_filename_as_string * PATH = * FULLPATH = * USER_ACTION = * FILE_ENCODING = .

AUTHORITY_CHECK_DATASET CALL FUNCTION 'AUTHORITY_CHECK_DATASET' EXPORTING activity = 'READ' filename = fileshort EXCEPTIONS no_authority = 1 activity_unknown = 2 OTHERS = 3.

WS_UPLOAD * call function 'WS_UPLOAD' * use explizit cast because there was a different * parametertype at function WS_UPLOAD - GUI_UPLOAD MOVE file TO filestring.

GUI_UPLOAD CALL FUNCTION 'GUI_UPLOAD' "// UC EXPORTING filename = filestring filetype = 'ASC' TABLES data_tab = input_rec 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.

AUTHORITY_CHECK_DATASET CALL FUNCTION 'AUTHORITY_CHECK_DATASET' EXPORTING activity = 'READ' filename = fileshort EXCEPTIONS no_authority = 1 activity_unknown = 2 OTHERS = 3.

TB_FILEFEED_UNIXFILE_UPLD_DS2 CALL FUNCTION 'TB_FILEFEED_UNIXFILE_UPLD_DS2' EXPORTING file = file TABLES data_tab = input_rec EXCEPTIONS no_file = 1 OTHERS = 2.

TB_DS2_INPUT_CONVERT CALL FUNCTION 'TB_DS2_INPUT_CONVERT' TABLES input_rec = intern_rec.

TB_DATAFEED_AUTHORITY_CHECKS * call function 'TB_DATAFEED_AUTHORITY_CHECKS' * tables * sop_scl = sop_scl.

TB_DS2_CHECK_CUSTOMIZING CALL FUNCTION 'TB_DS2_CHECK_CUSTOMIZING' TABLES ds2_table = intern_rec EXCEPTIONS error_found = 1 OTHERS = 2.

TB_DATAFEED_R3TABLES_UPDATE CALL FUNCTION 'TB_DATAFEED_R3TABLES_UPDATE' EXPORTING filesource = 'X' test_only = par_tst TABLES sap_answer = sap_vtb_market EXCEPTIONS update_error = 1 OTHERS = 2.

TB_DS2_WRITE_TO_OUTPUT CALL FUNCTION 'TB_DS2_WRITE_TO_OUTPUT' TABLES tp_ds2data = intern_rec 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 RFTBFF20 or its description.