SAP Reports / Programs

ROIUREP_MMS2014_MRTPEND_LOAD SAP ABAP Report - MMS-2014 MRT_PEND Load from RTPEND







ROIUREP_MMS2014_MRTPEND_LOAD 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_MMS2014_MRTPEND_LOAD 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_MMS2014_MRTPEND_LOAD. "Basic submit
SUBMIT ROIUREP_MMS2014_MRTPEND_LOAD AND RETURN. "Return to original report after report execution complete
SUBMIT ROIUREP_MMS2014_MRTPEND_LOAD 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_SA_YR = D .
Selection Text: P_SA_MO = D .
Selection Text: P_CO_CD = D .
Title: MMS-2014 MRT_PEND Load from RTPEND
Text Symbol: 025 = Subroutine DELETE_PREV_REJECTS Entered
Text Symbol: 026 = OIUREP_MMS_REJS
Text Symbol: 027 = OIUREP_MMS_2014_LOAD_EDITS
Text Symbol: 028 = Subroutine VALIDATE_TRANS Entered
Text Symbol: 029 = Subroutine PREP_MMS_REJECTS Entered
Text Symbol: 030 = Total MMS Transactions Rejected:
Text Symbol: 031 = Updating
Text Symbol: 032 = OIUREP_RPEND
Text Symbol: 115 = Subroutine PROCESS_RECOUPABLE_BALS Entered
Text Symbol: 157 = OUIREP_RECOUP
Text Symbol: 158 = Subroutine insert_t50_tc51_in_rtpend Entered
Text Symbol: 159 = End of Subroutine insert_t50_tc51_in_rtpend
Text Symbol: 160 = Subroutine sum_to_mrt_pend Entered
Text Symbol: 161 = End of Subroutine sum_to_mrt_pend
Text Symbol: 162 = Subroutine Add_to_recoup_to_mrt_pend Entered
Text Symbol: 163 = Subroutine LOAD_CURRENT_RECOUPS Entered
Text Symbol: 164 = Subroutine NET_ROYALTY_TO_RECOUP Entered
Text Symbol: 165 = Subroutine DETERMINE_CURRENT_RECOUP_BALS Entered
Text Symbol: 166 = Subroutine SET_ALLOTTEE_ROY_LIMIT Entered
Text Symbol: 167 = Subroutine RECOUP_FROM_ROYALTY Entered
Text Symbol: 168 = Subroutine VALIDATE_RECOUPS Entered
Text Symbol: 001 = Subroutine LOAD_INTERNAL_TABLES Entered
Text Symbol: 002 = Subroutine CONFIRM_NO_KEY_ENTRIES Entered
Text Symbol: 003 = Subroutine GENERATE_ASCII_FILE Entered
Text Symbol: 004 = Subroutine MATCH_HISTORY Entered
Text Symbol: 005 = Subroutine MATCH_DEDS_FROM_01 Entered
Text Symbol: 006 = Subroutine MATCH_11_15_HISTORY Entered
Text Symbol: 007 = Subroutine DELETE_NET_ZERO Entered
Text Symbol: 008 = Subroutine CREATE_DOC_ID Entered
Text Symbol: 009 = Subroutine LOAD_OIUREP_MRT_PEND Entered
Text Symbol: 010 = Program Stop
Text Symbol: 011 = Deleting
Text Symbol: 012 = Record skipped
Text Symbol: 013 = Error ENQUEUEing Table ->





Text Symbol: 014 = Inserting
Text Symbol: 015 = Subroutine SUM_TO_MMS_KEY Entered
Text Symbol: 016 = Subroutine CREATE_FILE_NAME Entered
Text Symbol: 017 = Subroutine MATCH_HISTORY_BY_PRODUCT Entered
Text Symbol: 018 = Extraneous CREDIT entries Deleted from
Text Symbol: 019 = Subroutine CONFIRM_CREDITS Entered
Text Symbol: 020 = OIUREP_MRT_CREDIT. Details -->
Text Symbol: 021 = Subroutine DETERMINE_DEDUCT_TRANS Entered
Text Symbol: 022 = I_OIUREP_MRT_PEND
Text Symbol: 023 = Subroutine DELETE_ZERO_RECS Entered
Text Symbol: 024 = Match 01 from Deds


INCLUDES used within this REPORT ROIUREP_MMS2014_MRTPEND_LOAD

INCLUDE: ROIUREP_MMS2014_ASCII_FORMAT, "ASCII FORMAT FOR 2014
ROIUREP_MMS2014_GEN_APLG_PARMS, "APP LOG PARAMETERS
ROIUREP_MMS2014_ASCII_FILE_TOP, "VARIABLES FOR ASCII
ROIUREP_MMS2014_ASCII_FILE_GEN, "MAIN FORMS FOR ASCII FILE
ROIUREP_MMS2014_REPGEN_ARCHIST. "ADJUST ARC/REVS/REBOOKS
INCLUDE ROIUREP_MMS2014_MRTPEND_RECOUP.


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:

OIU_NUMBER_GET_INFO CALL FUNCTION 'OIU_NUMBER_GET_INFO' "SOGK028169 CP EXPORTING "SOGK028169 CP tabname = c_mrt_hist "SOGK028169 CP externind = c_x_flag "SOGK028169 CP IMPORTING "SOGK028169 CP nriv = s_nriv "SOGK028169 CP EXCEPTIONS "SOGK028169 CP table_not_found = 1 "SOGK028169 CP interval_not_found = 2 "SOGK028169 CP object_not_found = 3 "SOGK028169 CP other_error = 4 "SOGK028169 CP OTHERS = 5. "SOGK028169 CP

OIUREP_MRT_PEND_UPDATE CALL FUNCTION 'OIUREP_MRT_PEND_UPDATE' IN UPDATE TASK * EXPORTING "SOGK031599 RL * local = ' ' "SOGK031599 RL TABLES * INSERT_RECORDS = * UPDATE_RECORDS = * delete_records = i_oiurep_mrt_pend "SOGK011494 CP * delete_records = i_temp_mrt_pend "SOGK011494 CP delete_records = lt_temp EXCEPTIONS update_failure = 1 OTHERS = 2.

OIUREP_MMS_2014_HIST_SEL_LKEY CALL FUNCTION 'OIUREP_MMS_2014_HIST_SEL_LKEY' EXPORTING p_payor = wa_oiurep_mrt_pend-payor_no p_fed_indian_cd = wa_oiurep_mrt_pend-fed_indian_cd p_indian_tribe_no = wa_oiurep_mrt_pend-indian_tribe_no p_lease_no = wa_oiurep_mrt_pend-lease_no p_agreement_no = wa_oiurep_mrt_pend-agreement_no p_api_well_no = wa_oiurep_mrt_pend-api_well_no p_api_well_cm = wa_oiurep_mrt_pend-api_well_cm_no p_mms_prod_cd = wa_oiurep_mrt_pend-mms_prod_cd p_sales_type_cd = wa_oiurep_mrt_pend-sales_type_cd p_sales_date = wa_oiurep_mrt_pend-sales_date * P_SALES_YEAR = * P_SALES_MONTH = p_pay_method_cd = wa_oiurep_mrt_pend-pay_method_cd p_trans_cd = wa_oiurep_mrt_pend-trans_cd p_include_reversals = ' ' "without reversals TABLES mms_2014_hist_itab = i_oiurep_mrt_hist EXCEPTIONS error_from_hist_selct = 1 OTHERS = 2.

OIUREP_MMS_2014_HIST_SEL_LKEY CALL FUNCTION 'OIUREP_MMS_2014_HIST_SEL_LKEY' EXPORTING p_payor = wa_oiurep_mrt_pend-payor_no p_fed_indian_cd = wa_oiurep_mrt_pend-fed_indian_cd p_indian_tribe_no = wa_oiurep_mrt_pend-indian_tribe_no p_lease_no = wa_oiurep_mrt_pend-lease_no p_agreement_no = wa_oiurep_mrt_pend-agreement_no p_api_well_no = wa_oiurep_mrt_pend-api_well_no p_api_well_cm = wa_oiurep_mrt_pend-api_well_cm_no p_mms_prod_cd = wa_oiurep_mrt_pend-mms_prod_cd p_sales_type_cd = wa_oiurep_mrt_pend-sales_type_cd p_sales_date = wa_oiurep_mrt_pend-sales_date * P_SALES_YEAR = * P_SALES_MONTH = p_pay_method_cd = wa_oiurep_mrt_pend-pay_method_cd p_trans_cd = wa_oiurep_mrt_pend-trans_cd p_include_reversals = c_x_flag "with reversals TABLES mms_2014_hist_itab = i_oiurep_mrt_hist EXCEPTIONS error_from_hist_selct = 1 OTHERS = 2.

OIUREP_MMS_2014_HIST_SEL_LKEY CALL FUNCTION 'OIUREP_MMS_2014_HIST_SEL_LKEY' EXPORTING p_payor = wa_oiurep_mrt_pend-payor_no p_fed_indian_cd = wa_oiurep_mrt_pend-fed_indian_cd p_indian_tribe_no = wa_oiurep_mrt_pend-indian_tribe_no p_lease_no = wa_oiurep_mrt_pend-lease_no p_agreement_no = wa_oiurep_mrt_pend-agreement_no p_api_well_no = wa_oiurep_mrt_pend-api_well_no p_api_well_cm = wa_oiurep_mrt_pend-api_well_cm_no p_mms_prod_cd = wa_oiurep_mrt_pend-mms_prod_cd p_sales_type_cd = wa_oiurep_mrt_pend-sales_type_cd p_sales_date = wa_oiurep_mrt_pend-sales_date * p_sales_year = wa_oiurep_mrt_pend-sales_year * p_sales_month = wa_oiurep_mrt_pend-sales_month p_pay_method_cd = wa_oiurep_mrt_pend-pay_method_cd p_trans_cd = c_trans_ded_cd * p_include_reversals = c_x_flag "with revs "SOGK011494 p_include_reversals = space "no revs "SOGK011494 CP TABLES mms_2014_hist_itab = i_oiurep_mrt_hist EXCEPTIONS error_from_hist_selct = 1 OTHERS = 2.

OIUREP_MMS_2014_HIST_SEL_LKEY CALL FUNCTION 'OIUREP_MMS_2014_HIST_SEL_LKEY' EXPORTING p_payor = wa_oiurep_mrt_pend-payor_no p_fed_indian_cd = wa_oiurep_mrt_pend-fed_indian_cd p_indian_tribe_no = wa_oiurep_mrt_pend-indian_tribe_no p_lease_no = wa_oiurep_mrt_pend-lease_no p_agreement_no = wa_oiurep_mrt_pend-agreement_no p_api_well_no = wa_oiurep_mrt_pend-api_well_no p_api_well_cm = wa_oiurep_mrt_pend-api_well_cm_no p_mms_prod_cd = wa_oiurep_mrt_pend-mms_prod_cd p_sales_type_cd = wa_oiurep_mrt_pend-sales_type_cd p_sales_date = wa_oiurep_mrt_pend-sales_date * p_sales_year = wa_oiurep_mrt_pend-sales_year * p_sales_month = wa_oiurep_mrt_pend-sales_month p_pay_method_cd = wa_oiurep_mrt_pend-pay_method_cd p_trans_cd = c_procs_ded_cd "15 * p_include_reversals = c_x_flag "with revs SOGK011494 CP p_include_reversals = space "no revs "SOGK011494 CP TABLES mms_2014_hist_itab = i_oiurep_mrt_hist EXCEPTIONS error_from_hist_selct = 1 OTHERS = 2.

OIUH_PWGETLASTDAY * CALL FUNCTION 'OIUH_PWGETLASTDAY' "SOGK027708 CP * CHANGING "SOGK027708 CP * date = w_date_slash "SOGK027708 CP * rdate = w_date_slash "SOGK027708 CP * rcode = w_ret_code "SOGK027708 CP * EXCEPTIONS "SOGK027708 CP * goback = 1 "SOGK027708 CP * failed = 2 "SOGK027708 CP * warning = 3 "SOGK027708 CP * OTHERS = 4. "SOGK027708 CP

OIUH_PWTOJULIANDT * CALL FUNCTION 'OIUH_PWTOJULIANDT' "SOGK027708 CP * CHANGING "SOGK027708 CP * date = w_date_slash "SOGK027708 CP * rdate = w_julian_date "SOGK027708 CP * rcode = w_ret_code "SOGK027708 CP * EXCEPTIONS "SOGK027708 CP * goback = 1 "SOGK027708 CP * failed = 2 "SOGK027708 CP * warning = 3 "SOGK027708 CP * OTHERS = 4. "SOGK027708 CP

OIU_GET_NEXT_SYS_NO CALL FUNCTION 'OIU_GET_NEXT_SYS_NO' "SOGK027708 CP EXPORTING "SOGK027708 CP tabname = 'OIUREP_MRT_HIST' "SOGK027708 CP IMPORTING "SOGK027708 CP sys_no = w_docid "SOGK027708 CP EXCEPTIONS "SOGK027708 CP table_not_found = 1 "SOGK027708 CP object_not_found = 2 "SOGK027708 CP interval_not_found = 3 "SOGK027708 CP number_range_not_intern = 4 "SOGK027708 CP interval_overflow = 5 "SOGK027708 CP OTHERS = 6. "SOGK027708 CP

NUMBER_CHECK CALL FUNCTION 'NUMBER_CHECK' "SOGK028169 CP EXPORTING "SOGK028169 CP nr_range_nr = s_nriv-nrrangenr "SOGK028169 CP number = w_docid "SOGK028169 CP object = s_nriv-object "SOGK028169 CP IMPORTING "SOGK028169 CP returncode = w_nr_rc "SOGK028169 CP EXCEPTIONS "SOGK028169 CP interval_not_found = 1 "SOGK028169 CP number_range_not_extern = 2 "SOGK028169 CP object_not_found = 3 "SOGK028169 CP OTHERS = 4. "SOGK028169 CP






ENQUEUE_E_OIUREPMRTPEND CALL FUNCTION 'ENQUEUE_E_OIUREPMRTPEND' EXPORTING mode_oiurep_mrt_pend = c_e_flag mandt = sy-mandt * DOC_ID = doc_id = w_docid "SOGK011158 CP * DET_LINE_NO = * X_DOC_ID = ' ' * X_DET_LINE_NO = ' ' * _scope = '2' * _wait = ' ' * _collect = ' ' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

OIUREP_MRT_PEND_UPDATE CALL FUNCTION 'OIUREP_MRT_PEND_UPDATE' IN UPDATE TASK * EXPORTING "SOGK031599 RL * local = ' ' "SOGK031599 RL TABLES * insert_records = i_oiurep_mrt_pend insert_records = i_oiurep_mrt_pend_insert * UPDATE_RECORDS = * DELETE_RECORDS = EXCEPTIONS update_failure = 1 OTHERS = 2 .

DEQUEUE_E_OIUREPMRTPEND CALL FUNCTION 'DEQUEUE_E_OIUREPMRTPEND' EXPORTING mode_oiurep_mrt_pend = c_e_flag mandt = sy-mandt * DOC_ID = doc_id = w_docid "SOGK011158 CP * DET_LINE_NO = * X_DOC_ID = ' ' * X_DET_LINE_NO = ' ' * _scope = '3' * _synchron = ' ' * _collect = ' ' .

OIUREP_MMS_2014_WRITE_APP_LOG CALL FUNCTION 'OIUREP_MMS_2014_WRITE_APP_LOG' EXPORTING log_handle = w_log_handle message_type = p_type * message_class = sy-msgid "SOGK027708 CP message_class = 'OIUREP_MMS_2014' "SOGK027708 CP message_number = p_number message_variable1 = p_var1 message_variable2 = p_var2 message_variable3 = p_var3 message_variable4 = p_var4 parameters = p_parms EXCEPTIONS error_writing_to_app_log = 1 OTHERS = 2.

OIUREP_MMS_2014_UPDATE_STATUS CALL FUNCTION 'OIUREP_MMS_2014_UPDATE_STATUS' EXPORTING status = p_status * LOCK_AND_HOLD = 'X' commit_and_wait = p_commit bukrs = p_bukrs sales_year = p_sales_year sales_month = p_sales_month * RUN_TYPE = * START_DATE = * SUPPLEMENTAL_REPORTS = * FORCED = ' ' IMPORTING log_handle = w_log_handle CHANGING jobname = p_jobnm 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 invalid_status_change = 14 error_aborting_job = 15 OTHERS = 16 .

OIU_GET_NEXT_SYS_NO * CALL FUNCTION 'OIU_GET_NEXT_SYS_NO' "SOGK008639 CP * EXPORTING "SOGK008639 CP * tabname = c_number_obj "SOGK008639 CP ** TOYEAR = "SOGK008639 CP * IMPORTING "SOGK008639 CP * sys_no = w_unique_file_num "SOGK008639 CP * EXCEPTIONS "SOGK008639 CP * table_not_found = 1 "SOGK008639 CP * object_not_found = 2 "SOGK008639 CP * interval_not_found = 3 "SOGK008639 CP * number_range_not_intern = 4 "SOGK008639 CP * interval_overflow = 5 "SOGK008639 CP * OTHERS = 6. "SOGK008639 CP

FILE_GET_NAME CALL FUNCTION 'FILE_GET_NAME' "SOGK008639 CP EXPORTING "SOGK008639 CP logical_filename = 'OIUREP_MMS_2014_TRIAL_ASCII_FILE' parameter_1 = p_co_cd "SOGK008639 CP parameter_2 = p_sa_yr "SOGK008639 CP parameter_3 = p_sa_mo "SOGK008639 CP IMPORTING "SOGK008639 CP file_name = w_ascii_file "SOGK008639 CP EXCEPTIONS "SOGK008639 CP file_not_found = 1 "SOGK008639 CP OTHERS = 2. "SOGK008639 CP

OIUREP_MMS_2014_HIST_SEL_LKEY * CALL FUNCTION 'OIUREP_MMS_2014_HIST_SEL_LKEY' "SOGK012206 CP * EXPORTING "SOGK012206 CP * p_payor = wa_oiurep_mrt_pend-payor_no * p_fed_indian_cd = wa_oiurep_mrt_pend-fed_indian_cd * p_indian_tribe_no = wa_oiurep_mrt_pend-indian_tribe_no * p_lease_no = wa_oiurep_mrt_pend-lease_no"SOGK012206 CP * p_agreement_no = wa_oiurep_mrt_pend-agreement_no * p_api_well_no = wa_oiurep_mrt_pend-api_well_no * p_api_well_cm = wa_oiurep_mrt_pend-api_well_cm_no * p_mms_prod_cd = space "SOGK012206 CP * p_sales_type_cd = space "SOGK012206 CP * p_sales_date = wa_oiurep_mrt_pend-sales_date ** P_SALES_YEAR = "SOGK012206 CP ** P_SALES_MONTH = "SOGK012206 CP * p_pay_method_cd = wa_oiurep_mrt_pend-pay_method_cd * p_trans_cd = c_estpay_cd "SOGK012206 CP * p_include_reversals = ' ' "without reversals * TABLES "SOGK012206 CP * mms_2014_hist_itab = i_oiurep_mrt_hist "SOGK012206 CP * EXCEPTIONS "SOGK012206 CP * error_from_hist_selct = 1 "SOGK012206 CP * OTHERS = 2. "SOGK012206 CP

OIUREP_MMS_2014_HIST_EST_PAYS CALL FUNCTION 'OIUREP_MMS_2014_HIST_EST_PAYS' "SOGK012206 CP EXPORTING "SOGK012206 CP p_payor = wa_oiurep_mrt_pend-payor_no "SOGK012206 CP p_lease_no = wa_oiurep_mrt_pend-lease_no "SOGK012206 CP p_trans_cd = c_estpay_cd "SOGK012206 CP TABLES "SOGK012206 CP mms_2014_hist_itab = i_oiurep_mrt_hist "SOGK012206 CP EXCEPTIONS "SOGK012206 CP error_from_hist_selct = 1 "SOGK012206 CP OTHERS = 2. "SOGK012206 CP

OIUREP_MMS_2014_MTHS_BTWN_DATE * CALL FUNCTION 'OIUREP_MMS_2014_MTHS_BTWN_DATE' * EXPORTING * i_date_1 = wa_oiurep_mrt_pend-sales_date * i_date_2 = w_eom_date ** I_INCL_DATE_1 = ' ' * IMPORTING * e_months = w_months.

OIL_LAST_DAY_OF_MONTH CALL FUNCTION 'OIL_LAST_DAY_OF_MONTH' EXPORTING i_date = w_bom_date IMPORTING e_last_day = w_eom_date.

FMR3_GET_LOCAL_CURRENCY CALL FUNCTION 'FMR3_GET_LOCAL_CURRENCY' EXPORTING i_bukrs = p_co_cd IMPORTING e_hwaer = w_local_cur * E_FIKRS = * E_KOKRS = EXCEPTIONS invalid_waers = 1 wrong_bukrs = 2 OTHERS = 3.

OIUREP_MMS_2014_HIST_SEL_LKEY * CALL FUNCTION 'OIUREP_MMS_2014_HIST_SEL_LKEY' * EXPORTING * p_payor = wa_oiurep_mrt_pend-payor_no * p_fed_indian_cd = wa_oiurep_mrt_pend-fed_indian_cd * p_indian_tribe_no = wa_oiurep_mrt_pend-indian_tribe_no * p_lease_no = wa_oiurep_mrt_pend-lease_no * p_agreement_no = wa_oiurep_mrt_pend-agreement_no * p_api_well_no = wa_oiurep_mrt_pend-api_well_no * p_api_well_cm = wa_oiurep_mrt_pend-api_well_cm_no * p_mms_prod_cd = p_prod_code * p_sales_type_cd = p_salestype_code * p_sales_date = wa_oiurep_mrt_pend-sales_date ** P_SALES_YEAR = ** P_SALES_MONTH = * p_pay_method_cd = wa_oiurep_mrt_pend-pay_method_cd * p_trans_cd = p_trans_code * p_include_reversals = p_reversal_flag "with or w/out reversls * TABLES * mms_2014_hist_itab = i_oiurep_mrt_hist * EXCEPTIONS * error_from_hist_selct = 1 * OTHERS = 2.

OIUREP_MRT_CRED_UPDATE CALL FUNCTION 'OIUREP_MRT_CRED_UPDATE' IN UPDATE TASK EXPORTING bukrs = p_co_cd sales_year = p_sa_yr sales_month = p_sa_mo * local = c_x_flag "SOGK031599 RL TABLES * update_records = i_oiurep_mrt_cred "SOGK012065 CP update_records = i_credit_updates "SOGK012065 CP EXCEPTIONS update_failure = 1 OTHERS = 2.

OIUREP_MMS_2014_HIST_SEL_LKEY CALL FUNCTION 'OIUREP_MMS_2014_HIST_SEL_LKEY' EXPORTING p_payor = wa_oiurep_mrt_pend-payor_no p_fed_indian_cd = space p_indian_tribe_no = wa_oiurep_mrt_pend-indian_tribe_no p_lease_no = wa_oiurep_mrt_pend-lease_no p_agreement_no = wa_oiurep_mrt_pend-agreement_no p_api_well_no = space p_api_well_cm = space p_mms_prod_cd = space p_sales_type_cd = space p_sales_date = wa_oiurep_mrt_pend-sales_date p_pay_method_cd = space p_trans_cd = c_estpay_cd p_include_reversals = ' ' "without reversals TABLES mms_2014_hist_itab = i_oiurep_mrt_hist EXCEPTIONS error_from_hist_selct = 1 OTHERS = 2.

OIUREP_MMS_2014_HIST_EST_PAYS * CALL FUNCTION 'OIUREP_MMS_2014_HIST_EST_PAYS' * EXPORTING * p_payor = wa_oiurep_mrt_pend-payor_no * p_lease_no = wa_oiurep_mrt_pend-lease_no * p_trans_cd = c_estpay_cd * TABLES * mms_2014_hist_itab = i_oiurep_mrt_hist * EXCEPTIONS * error_from_hist_selct = 1 * OTHERS = 2.

OIUREP_MMS_2014_HIST_SEL_LKEY CALL FUNCTION 'OIUREP_MMS_2014_HIST_SEL_LKEY' EXPORTING p_payor = wa_oiurep_mrt_pend-payor_no p_fed_indian_cd = wa_oiurep_mrt_pend-fed_indian_cd p_indian_tribe_no = wa_oiurep_mrt_pend-indian_tribe_no p_lease_no = wa_oiurep_mrt_pend-lease_no p_agreement_no = wa_oiurep_mrt_pend-agreement_no p_api_well_no = wa_oiurep_mrt_pend-api_well_no p_api_well_cm = wa_oiurep_mrt_pend-api_well_cm_no p_mms_prod_cd = wa_oiurep_mrt_pend-mms_prod_cd p_sales_type_cd = wa_oiurep_mrt_pend-sales_type_cd p_sales_date = wa_oiurep_mrt_pend-sales_date p_pay_method_cd = wa_oiurep_mrt_pend-pay_method_cd p_trans_cd = c_roy_due_cd p_include_reversals = space "without reversals TABLES mms_2014_hist_itab = i_oiurep_mrt_hist EXCEPTIONS error_from_hist_selct = 1 OTHERS = 2.

OIUREP_MMS_REJCT_UPDATE CALL FUNCTION 'OIUREP_MMS_REJCT_UPDATE' IN UPDATE TASK "SOGK020071 CP * EXPORTING "SOGK031599 RL * local = ' ' "SOGK031599 RL TABLES "SOGK020071 CP * INSERT_RECORDS = "SOGK020071 CP delete_records = i_oiurep_mms_rejs "SOGK020071 CP * UPDATE_RECORDS = "SOGK020071 CP EXCEPTIONS "SOGK020071 CP update_failure = 1 "SOGK020071 CP insert_failure = 2 "SOGK020071 CP delete_failure = 3 "SOGK020071 CP OTHERS = 4. "SOGK020071 CP

OIUREP_MMS_2014_LOAD_EDITS CALL FUNCTION 'OIUREP_MMS_2014_LOAD_EDITS' "SOGK020071 CP EXPORTING "SOGK020071 CP extraction_only = space "SOGK020071 CP lease_no = -lease_no "SOGK020071 CP agreement_no = -agreement_no "SOGK020071 CP fed_indian_cd = -fed_indian_cd "SOGK020071 CP mms_prod_cd = -mms_prod_cd "SOGK020071 CP sales_type_cd = -sales_type_cd "SOGK020071 CP trans_cd = -trans_cd "SOGK020071 CP pay_method_cd = -pay_method_cd "SOGK020071 CP sales_date = -sales_date "SOGK020071 CP sa_qy = -mms_sa_qy "SOGK020071 CP sa_amt = -mms_sa_amt "SOGK020071 CP adj_cd = -adj_cd "SOGK020071 CP roy_pr_alw_amt = -roy_pr_alw_amt "SOGK020071 CP trnsp_alw_de_amt = -trnsp_alw_de_amt "SOGK020071 CP proc_alw_de_amt = -proc_alw_de_amt "SOGK020071 CP roy_ls_allow_amt = -roy_ls_allow_amt "SOGK020071 CP gas_mmbtu_qy = -gas_mmbtu_qy "SOGK020071 CP edit_eff_dt = w_rptgen_edteffdt "P7IK029696 HN - SLA *start N_1159585 MMS SLA 2008 changes report_year = -sales_year report_month = -sales_month history_fl = -reversal_fl *end N_1159585 MMS SLA 2008 changes TABLES "SOGK020071 CP e_tran_err_2_tb = w_tran_err_tb "SOGK020071 CP EXCEPTIONS "SOGK020071 CP OTHERS = 1. "SOGK020071 CP

OIUREP_MMS_REJCT_UPDATE



CALL FUNCTION 'OIUREP_MMS_REJCT_UPDATE' "IN UPDATE TASK "SOGK020071 CP * EXPORTING "SOGK031599 RL * local = ' ' "SOGK031599 RL TABLES "SOGK020071 CP insert_records = i_oiurep_mms_rejs "SOGK020071 CP * DELETE_RECORDS = "SOGK020071 CP * UPDATE_RECORDS = "SOGK020071 CP EXCEPTIONS "SOGK020071 CP update_failure = 1 "SOGK020071 CP insert_failure = 2 "SOGK020071 CP delete_failure = 3 "SOGK020071 CP OTHERS = 4. "SOGK020071 CP

OIUREP_RTPEND_UPDATE

OIUREP_RTPEND_UPDATE * CALL FUNCTION 'OIUREP_RTPEND_UPDATE' IN UPDATE TASK "SOGK028494 CP CALL FUNCTION 'OIUREP_RTPEND_UPDATE' *end of n_1756709 * EXPORTING "SOGK031599 RL * local = c_x_flag "SOGK031599 RL TABLES "SOGK028494 CP update_records = i_suspend_rtpend "SOGK028494 CP EXCEPTIONS "SOGK028494 CP update_failure = 1 "SOGK028494 CP insert_failure = 2 "SOGK028494 CP delete_failure = 3 "SOGK028494 CP OTHERS = 4. "SOGK028494 CP

OIUREP_CONVERT_MATNR_PDCD CALL FUNCTION 'OIUREP_CONVERT_MATNR_PDCD' "FM returns no excpts CHANGING matnr_pdcd = l_roiurep_matnr_pdcd_40C.



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