SAP Reports / Programs

ROIUREP_GENERIC SAP ABAP Report - Generic Regulatory Report







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


Text pool values


Title: Generic Regulatory Report


INCLUDES used within this REPORT ROIUREP_GENERIC

INCLUDE ROIUREP_GENERIC_TOP.
INCLUDE ROIUREP_STANDARD_INCLUDE_TOP.
INCLUDE ROIUREP_REPORTS_O01.
INCLUDE ROIUREP_ALLF01.
INCLUDE ROIUREP_ALLF02.
INCLUDE ROIUREP_ALLF03.
INCLUDE ROIUREP_GENERIC_F01.
INCLUDE ROIUREP_ADJUST_QUANTITIES.


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:

OIUREP_REG_UPDATE_STATUS CALL FUNCTION 'OIUREP_REG_UPDATE_STATUS' EXPORTING status = '11' lock_and_hold = 'X' commit_and_wait = ' ' agency = c_agency rep_name = gf_rep_name org1 = org1 year = year month = month IMPORTING log_handle = gs_log_handle e_rrst = gs_rrst TABLES t_rrst_det = gt_rrst_det CHANGING jobname = jobname EXCEPTIONS invalid_status = 1 error_locking_table_entry = 2 missing_required_field = 3 error_creating_app_log = 4 error_writing_to_app_log = 5 error_reading_run_entry = 6 error_loading_log_from_db = 7 error_saving_app_log_to_db = 8 error_refreshing_app_log = 9 error_opening_job = 10 error_creating_job_name = 11 error_executing_job_in_batch = 12 error_closing_job = 13 duplicate_run_entry = 14 invalid_status_change = 15 OTHERS = 16.

OIUREP_FG1_ERROR_MESSAGE CALL FUNCTION 'OIUREP_FG1_ERROR_MESSAGE' EXPORTING i_log_handle = gs_log_handle i_msgty = sy-msgty i_msgno = sy-msgno i_msgid = sy-msgid i_var1 = sy-msgv1 i_var2 = sy-msgv2 i_var3 = sy-msgv3 i_var4 = sy-msgv4 EXCEPTIONS app_log_error = 0 OTHERS = 0.

OIUREP_FG1_CALC_FIRST_LAST_DAY CALL FUNCTION 'OIUREP_FG1_CALC_FIRST_LAST_DAY' EXPORTING i_year = year i_month = month IMPORTING e_beg_dt = w_beg_dt e_end_dt = w_end_dt e_prev_beg_dt = w_prev_beg_dt e_prev_end_dt = w_prev_end_dt e_beg_dt_000000 = w_beg_dt_000000 e_beg_dt_240000 = w_beg_dt_240000 e_end_dt_000000 = w_end_dt_000000 e_end_dt_240000 = w_end_dt_240000.

OIUREP_FG1_SELECT_OPER_CONTACT * CALL FUNCTION 'OIUREP_FG1_SELECT_OPER_CONTACT' * EXPORTING * i_agency = gf_agency * i_rep_name = gf_rep_name * i_org_lvl_1 = org1 * i_org_lvl_2 = org2 * i_org_lvl_3 = org3 * i_org_lvl_4 = org4 * IMPORTING * e_operator_code = gs_op-operator_code * e_operator_name = gs_op-operator_name * e_contact_phone = gs_op-phone * e_contact_extn = gs_op-extn * e_contact_name = gs_op-contact * e_contact_street = gs_op-street * e_contact_city = gs_op-city * e_contact_state = gs_op-state * e_contact_zip = gs_op-zip * e_contact_fax = gs_op-fax * e_contact_email = gs_op-email * e_contact_title = gs_op-title * e_po_box = gs_op-po_box * e_po_box_cd = gs_op-po_box_cd.

OIUREP_FG1_SELECT_OPER_CONTACT CALL FUNCTION 'OIUREP_FG1_SELECT_OPER_CONTACT' EXPORTING i_agency = gf_agency i_rep_name = gf_rep_name i_org_lvl_1 = org1 i_org_lvl_2 = org2 i_org_lvl_3 = org3 i_org_lvl_4 = org4 i_beg_date = w_beg_dt i_end_date = w_end_dt IMPORTING e_operator_code = gs_op-operator_code e_operator_name = gs_op-operator_name e_contact_phone = gs_op-phone e_contact_extn = gs_op-extn e_contact_name = gs_op-contact e_contact_street = gs_op-street e_contact_city = gs_op-city e_contact_state = gs_op-state e_contact_zip = gs_op-zip e_contact_fax = gs_op-fax e_contact_email = gs_op-email e_contact_title = gs_op-title e_po_box = gs_op-po_box e_po_box_cd = gs_op-po_box_cd.

OIUREP_FG1_CALC_FIRST_LAST_DAY CALL FUNCTION 'OIUREP_FG1_CALC_FIRST_LAST_DAY' EXPORTING i_year = gt_master_data-rwc_prd_dt+0(4) i_month = gt_master_data-rwc_prd_dt+4(2) IMPORTING e_beg_dt = w_beg_dt e_end_dt = w_end_dt e_prev_beg_dt = w_prev_beg_dt e_prev_end_dt = w_prev_end_dt e_beg_dt_000000 = w_beg_dt_000000 e_beg_dt_240000 = w_beg_dt_240000 e_end_dt_000000 = w_end_dt_000000 e_end_dt_240000 = w_end_dt_240000.

OIUREP_FG1_SELECT_WCDVLH_W_INV CALL FUNCTION 'OIUREP_FG1_SELECT_WCDVLH_W_INV' EXPORTING i_wl_no = gt_master_data-wl_no i_wc_no = gt_master_data-wc_no i_agency = gf_agency i_beg_dt = w_beg_dt i_end_dt = w_end_dt i_prev_beg_dt = w_prev_beg_dt i_prev_end_dt = w_prev_end_dt i_clear_ind = c_yes * i_override_grp = -override_grp * Populate rep range table instead of passing rep name "SOHK014425 KG * i_rep_name = gf_rep_name "P7IK013033 HN TABLES t_wcdvlh_tb = gt_wcdvlh t_rep_range = gt_rep_range.

OIUREP_FG1_SORT_UNDUP_WCDVLH CALL FUNCTION 'OIUREP_FG1_SORT_UNDUP_WCDVLH' EXPORTING i_wl_no = gt_master_data-wl_no i_wc_no = gt_master_data-wc_no i_agency = gf_agency * Report column should be "STD_VOL_XX" "SOHK014425 KG * i_rpt_column = 'PRD_AMOUNT' i_rpt_column = 'STD_VOL_01' i_beg_dt = w_beg_dt i_end_dt = w_end_dt TABLES t_wcdvlh = gt_wcdvlh t_rep_range = gt_rep_range.

OIUREP_FG1_ERROR_MESSAGE CALL FUNCTION 'OIUREP_FG1_ERROR_MESSAGE' EXPORTING i_log_handle = gs_log_handle i_msgty = 'E' i_msgno = '045' i_msgid = c_oiurr i_var1 = gt_rrst_det-sub_rep_name i_var2 = sy-msgv2 i_var3 = sy-msgv3 i_var4 = sy-msgv4 EXCEPTIONS app_log_error = 0 OTHERS = 0.

OIUREP_FG1_ERROR_MESSAGE CALL FUNCTION 'OIUREP_FG1_ERROR_MESSAGE' EXPORTING i_log_handle = gs_log_handle i_msgty = 'E' i_msgno = '046' i_msgid = c_oiurr i_var1 = gt_rrst_det-sub_rep_name i_var2 = sy-msgv2 i_var3 = sy-msgv3 i_var4 = sy-msgv4 EXCEPTIONS app_log_error = 0 OTHERS = 0.

OIUREP_FG1_CHECK_REPORT_ERROR CALL FUNCTION 'OIUREP_FG1_CHECK_REPORT_ERROR' IMPORTING e_error_flg = gf_error_flg.

OIUREP_FG1_CHECK_REPORT_ERROR CALL FUNCTION 'OIUREP_FG1_CHECK_REPORT_ERROR' IMPORTING e_error_flg = gf_error_flg.

OIUREP_REG_UPDATE_STATUS CALL FUNCTION 'OIUREP_REG_UPDATE_STATUS' EXPORTING status = '12' lock_and_hold = 'X' commit_and_wait = ' ' IMPORTING log_handle = gs_log_handle TABLES t_rrst_det = gt_rrst_det CHANGING jobname = jobname EXCEPTIONS invalid_status = 1 error_locking_table_entry = 2 missing_required_field = 3 error_creating_app_log = 4 error_writing_to_app_log = 5 error_reading_run_entry = 6 error_loading_log_from_db = 7 error_saving_app_log_to_db = 8 error_refreshing_app_log = 9 error_opening_job = 10 error_creating_job_name = 11 error_executing_job_in_batch = 12 error_closing_job = 13 duplicate_run_entry = 14 invalid_status_change = 15 OTHERS = 16.

OIUREP_REG_UPDATE_STATUS CALL FUNCTION 'OIUREP_REG_UPDATE_STATUS' EXPORTING status = '13' lock_and_hold = 'X' commit_and_wait = ' ' IMPORTING log_handle = gs_log_handle TABLES t_rrst_det = gt_rrst_det CHANGING jobname = jobname EXCEPTIONS invalid_status = 1 error_locking_table_entry = 2 missing_required_field = 3 error_creating_app_log = 4 error_writing_to_app_log = 5 error_reading_run_entry = 6 error_loading_log_from_db = 7 error_saving_app_log_to_db = 8 error_refreshing_app_log = 9 error_opening_job = 10 error_creating_job_name = 11 error_executing_job_in_batch = 12 error_closing_job = 13 duplicate_run_entry = 14 invalid_status_change = 15 OTHERS = 16.



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