SAP Reports / Programs | Financial Accounting | Bank Accounting | Payment Transactions(FI-BL-PT) SAP FI

OFX_FROM_FILE SAP ABAP Report - OFX Processing from File







OFX_FROM_FILE 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 OFX_FROM_FILE 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 OFX_FROM_FILE. "Basic submit
SUBMIT OFX_FROM_FILE AND RETURN. "Return to original report after report execution complete
SUBMIT OFX_FROM_FILE 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: P_FCT = D Application function module
Selection Text: P_FILE = D File name
Selection Text: P_MSGS = D OFX message set
Title: OFX Processing from File


INCLUDES used within this REPORT OFX_FROM_FILE

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:

KD_GET_FILENAME_ON_F4 call function 'KD_GET_FILENAME_ON_F4' exporting static = 'X' changing file_name = p_file.

WS_UPLOAD * call function 'WS_UPLOAD' * exporting * filename = g_file * tables * data_tab = gt_ofxtext * exceptions * others = 1.

OFX_STRUCTURE_GET call function 'OFX_STRUCTURE_GET' exporting im_message_set = p_msgs importing ex_structure_version = g_appl_resp_structure_vrs ex_structure_all = g_appl_resp_structure_all.

OFX_TO_SAP_CONVERT call function 'OFX_TO_SAP_CONVERT' exporting im_messageset = p_msgs importing ex_structure = tables pti_ofxtext = gt_ofxtext exceptions syntax_error = 1 field_overflow = 2 missing_tag = 3 assign_error = 4 others = 5.

COPY_STRUCTURE_CORRESPONDING call function 'COPY_STRUCTURE_CORRESPONDING' exporting im_structure = importing ex_structure = .

BAL_LOG_CREATE call function 'BAL_LOG_CREATE' exporting i_s_log = l_log_header importing e_log_handle = log_handle_in exceptions log_header_inconsistent = 1 others = 2.

BAL_LOG_MSG_ADD call function 'BAL_LOG_MSG_ADD' exporting i_log_handle = log_handle_in i_s_msg = message_in exceptions log_not_found = 1 msg_inconsistent = 2 others = 3.

BAL_LOG_HDR_READ call function 'BAL_LOG_HDR_READ' exporting i_log_handle = log_handle_in importing e_statistics = l_statistics exceptions log_not_found = 1 others = 2.

BAL_DSP_PROFILE_POPUP_GET call function 'BAL_DSP_PROFILE_POPUP_GET' importing e_s_display_profile = l_display_profile.

BAL_DSP_LOG_DISPLAY call function 'BAL_DSP_LOG_DISPLAY' exporting i_t_log_handle = lt_log_handles i_s_display_profile = l_display_profile exceptions others = 0.



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