SAP Reports / Programs | Production and Revenue Accounting | Industry Solution Oil | Production and Revenue Accounting(IS-OIL-PRA) SAP IS

ROIUREP_FILE_UPLOAD_HISTORY SAP ABAP Report - Report ROIUREP_FILE_UPLOAD_HISTORY







ROIUREP_FILE_UPLOAD_HISTORY 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 ROIUREP_FILE_UPLOAD_HISTORY 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 ROIUREP_FILE_UPLOAD_HISTORY. "Basic submit
SUBMIT ROIUREP_FILE_UPLOAD_HISTORY AND RETURN. "Return to original report after report execution complete
SUBMIT ROIUREP_FILE_UPLOAD_HISTORY 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_AGY = Agency
Selection Text: P_BUKRS = Company
Selection Text: P_FILE = File Name
Selection Text: P_FINAL = Final
Selection Text: P_IND = Oil / Gas Indicator
Selection Text: P_SIM = Simulation
Title: Report ROIUREP_FILE_UPLOAD_HISTORY
Text Symbol: 001 = Mode
Text Symbol: 003 = Execution parameters
Text Symbol: 004 = File details
Text Symbol: 006 = Record In Error
Text Symbol: 007 = Error Type


INCLUDES used within this REPORT ROIUREP_FILE_UPLOAD_HISTORY

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:

F4_FILENAME CALL FUNCTION 'F4_FILENAME' "allows user to select path/file EXPORTING program_name = 'ROIUREP_UPLOAD_HISTORY' dynpro_number = syst-dynnr field_name = 'p_file' IMPORTING file_name = p_file.

OIUREP_CREATE_ROYHIST CALL FUNCTION 'OIUREP_CREATE_ROYHIST' EXPORTING roy_exec_param = ls_exec_param EXCEPTIONS get_data_error = 1 hist_create_error = 2 no_first_yyyymm = 3 OTHERS = 4.

OIUREP_CREATE_VOLHIST CALL FUNCTION 'OIUREP_CREATE_VOLHIST' EXPORTING roy_exec_param = ls_exec_param EXCEPTIONS get_data_error = 1 hist_create_error = 2 no_first_yyyymm = 3 OTHERS = 4.

GUI_UPLOAD CALL FUNCTION 'GUI_UPLOAD' EXPORTING filename = ld_file filetype = 'ASC' TABLES data_tab = lt_file 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.

OIUREP_ROY_GET_RPT_YYYYMM CALL FUNCTION 'OIUREP_ROY_GET_RPT_YYYYMM' EXPORTING roy_exec_param = ls_exec_param IMPORTING last_rpt_yyyymm = lf_lastyear_month next_rpt_yyyymm = lf_curryear_month.

OIUREP_GET_RPT_ENTTY CALL FUNCTION 'OIUREP_GET_RPT_ENTTY' EXPORTING roy_exec_param = ls_exec_param rpt_entty_key = ls_entty_key for_yyyymm = la_roydata-year_month_amnd TABLES rpt_entty = lt_entty EXCEPTIONS duplicate_insert = 1 invalid_delete = 2 invalid_update = 3 no_base_yyyymm = 4 OTHERS = 5.

GUI_UPLOAD CALL FUNCTION 'GUI_UPLOAD' EXPORTING filename = ld_file filetype = 'ASC' TABLES data_tab = lt_file 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.

OIUREP_ROY_GET_RPT_YYYYMM CALL FUNCTION 'OIUREP_ROY_GET_RPT_YYYYMM' EXPORTING roy_exec_param = ls_exec_param IMPORTING last_rpt_yyyymm = lf_lastyear_month next_rpt_yyyymm = lf_curryear_month.

OIUREP_GET_RPT_ENTTY CALL FUNCTION 'OIUREP_GET_RPT_ENTTY' EXPORTING roy_exec_param = ls_exec_param rpt_entty_key = ls_entty_key for_yyyymm = la_voldata-year_month_amnd TABLES rpt_entty = lt_entty EXCEPTIONS duplicate_insert = 1 invalid_delete = 2 invalid_update = 3 no_base_yyyymm = 4 OTHERS = 5.



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