SAP OIUREP_RT_HIST_UPDATE Function Module for MMS-2014 Update OIUREP_RT_HIST, from OIUREP_MRT_HIST Update Only









OIUREP_RT_HIST_UPDATE is a standard oiurep rt hist update SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for MMS-2014 Update OIUREP_RT_HIST, from OIUREP_MRT_HIST Update Only processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for oiurep rt hist update FM, simply by entering the name OIUREP_RT_HIST_UPDATE into the relevant SAP transaction such as SE37 or SE38.

Function Group: OIUREP_MMS_2014_UPDATE
Program Name: SAPLOIUREP_MMS_2014_UPDATE
Main Program: SAPLOIUREP_MMS_2014_UPDATE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update: 1



Function OIUREP_RT_HIST_UPDATE pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'OIUREP_RT_HIST_UPDATE'"MMS-2014 Update OIUREP_RT_HIST, from OIUREP_MRT_HIST Update Only
TABLES
* INSERT_RECORDS = "Records to be inserted
* ORIGINAL_MRT_RECORDS = "Cascade Update: Original MRT_HIST records
* UPDATED_MRT_RECORDS = "Cascade Update: Updated MRT_HIST_records
* UPDATE_RECORDS = "Records to be updated
* DELETE_RECORDS = "Records to be deleted

EXCEPTIONS
UPDATE_FAILURE = 1 DELETE_FAILURE = 2
.



TABLES Parameters details for OIUREP_RT_HIST_UPDATE

INSERT_RECORDS - Records to be inserted

Data type: OIUREP_RT_HIST
Optional: Yes
Call by Reference: Yes

ORIGINAL_MRT_RECORDS - Cascade Update: Original MRT_HIST records

Data type: OIUREP_MRT_HIST
Optional: Yes
Call by Reference: Yes

UPDATED_MRT_RECORDS - Cascade Update: Updated MRT_HIST_records

Data type: OIUREP_MRT_HIST
Optional: Yes
Call by Reference: Yes

UPDATE_RECORDS - Records to be updated

Data type: OIUREP_RT_HIST
Optional: Yes
Call by Reference: Yes

DELETE_RECORDS - Records to be deleted

Data type: OIUREP_RT_HIST
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

UPDATE_FAILURE - Update Failed

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

DELETE_FAILURE - Delete Failure

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for OIUREP_RT_HIST_UPDATE Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lt_insert_records  TYPE STANDARD TABLE OF OIUREP_RT_HIST, "   
lv_update_failure  TYPE OIUREP_RT_HIST, "   
lv_delete_failure  TYPE OIUREP_RT_HIST, "   
lt_original_mrt_records  TYPE STANDARD TABLE OF OIUREP_MRT_HIST, "   
lt_updated_mrt_records  TYPE STANDARD TABLE OF OIUREP_MRT_HIST, "   
lt_update_records  TYPE STANDARD TABLE OF OIUREP_RT_HIST, "   
lt_delete_records  TYPE STANDARD TABLE OF OIUREP_RT_HIST. "   

  CALL FUNCTION 'OIUREP_RT_HIST_UPDATE'  "MMS-2014 Update OIUREP_RT_HIST, from OIUREP_MRT_HIST Update Only
    TABLES
         INSERT_RECORDS = lt_insert_records
         ORIGINAL_MRT_RECORDS = lt_original_mrt_records
         UPDATED_MRT_RECORDS = lt_updated_mrt_records
         UPDATE_RECORDS = lt_update_records
         DELETE_RECORDS = lt_delete_records
    EXCEPTIONS
        UPDATE_FAILURE = 1
        DELETE_FAILURE = 2
. " OIUREP_RT_HIST_UPDATE




ABAP code using 7.40 inline data declarations to call FM OIUREP_RT_HIST_UPDATE

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!