SAP OIUREP_GET_RPT_ENTTY Function Module for Obtains the reporting entities during a reporting and effective month









OIUREP_GET_RPT_ENTTY is a standard oiurep get rpt entty SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Obtains the reporting entities during a reporting and effective month 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 get rpt entty FM, simply by entering the name OIUREP_GET_RPT_ENTTY into the relevant SAP transaction such as SE37 or SE38.

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



Function OIUREP_GET_RPT_ENTTY 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_GET_RPT_ENTTY'"Obtains the reporting entities during a reporting and effective month
EXPORTING
ROY_EXEC_PARAM = "Execution Parameters for Royalty Reporting
* RPT_ENTTY_KEY = "Reporting Entities Key
FOR_YYYYMM = "YYYYMM for which master data to be obtained

TABLES
RPT_ENTTY = "Reporting Entities effective for the given YYYYMM

EXCEPTIONS
DUPLICATE_INSERT = 1 INVALID_DELETE = 2 INVALID_UPDATE = 3 NO_BASE_YYYYMM = 4
.



IMPORTING Parameters details for OIUREP_GET_RPT_ENTTY

ROY_EXEC_PARAM - Execution Parameters for Royalty Reporting

Data type: ROIUREP_EXEC_PARAM
Optional: No
Call by Reference: Yes

RPT_ENTTY_KEY - Reporting Entities Key

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

FOR_YYYYMM - YYYYMM for which master data to be obtained

Data type: OIUREP_EXEC_STAT-YEAR_MONTH
Optional: No
Call by Reference: Yes

TABLES Parameters details for OIUREP_GET_RPT_ENTTY

RPT_ENTTY - Reporting Entities effective for the given YYYYMM

Data type: OIUREP_RPT_ENTTY
Optional: No
Call by Reference: Yes

EXCEPTIONS details

DUPLICATE_INSERT - Attempt to insert a duplicate record

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

INVALID_DELETE - Attempt to delete a non-existant record

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

INVALID_UPDATE - Attemp to update a non-existant record

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

NO_BASE_YYYYMM - No base month defined in customizing

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for OIUREP_GET_RPT_ENTTY 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_rpt_entty  TYPE STANDARD TABLE OF OIUREP_RPT_ENTTY, "   
lv_roy_exec_param  TYPE ROIUREP_EXEC_PARAM, "   
lv_duplicate_insert  TYPE ROIUREP_EXEC_PARAM, "   
lv_rpt_entty_key  TYPE ROIUREP_RE_KEY, "   
lv_invalid_delete  TYPE ROIUREP_RE_KEY, "   
lv_for_yyyymm  TYPE OIUREP_EXEC_STAT-YEAR_MONTH, "   
lv_invalid_update  TYPE OIUREP_EXEC_STAT, "   
lv_no_base_yyyymm  TYPE OIUREP_EXEC_STAT. "   

  CALL FUNCTION 'OIUREP_GET_RPT_ENTTY'  "Obtains the reporting entities during a reporting and effective month
    EXPORTING
         ROY_EXEC_PARAM = lv_roy_exec_param
         RPT_ENTTY_KEY = lv_rpt_entty_key
         FOR_YYYYMM = lv_for_yyyymm
    TABLES
         RPT_ENTTY = lt_rpt_entty
    EXCEPTIONS
        DUPLICATE_INSERT = 1
        INVALID_DELETE = 2
        INVALID_UPDATE = 3
        NO_BASE_YYYYMM = 4
. " OIUREP_GET_RPT_ENTTY




ABAP code using 7.40 inline data declarations to call FM OIUREP_GET_RPT_ENTTY

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.

 
 
 
 
 
"SELECT single YEAR_MONTH FROM OIUREP_EXEC_STAT INTO @DATA(ld_for_yyyymm).
 
 
 


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!