SAP RSDDK_CHECK_AGGREGATE Function Module for Check Aggregate Against Source









RSDDK_CHECK_AGGREGATE is a standard rsddk check aggregate SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Check Aggregate Against Source 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 rsddk check aggregate FM, simply by entering the name RSDDK_CHECK_AGGREGATE into the relevant SAP transaction such as SE37 or SE38.

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



Function RSDDK_CHECK_AGGREGATE 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 'RSDDK_CHECK_AGGREGATE'"Check Aggregate Against Source
EXPORTING
I_AGGRCUBE = "Technical Name of the Aggregate to Be Checked
* I_BUILD_BY_PARENT = RS_C_FALSE "Build Check Aggregate from Higher-Level Aggregate, otherwise from InfoCube
* I_LOG_FILE = RS_C_FALSE "Write Log File and Jump to Transaction /nsgl1 at End
* I_CHECK_MODE = 'A' "'A' Normal Check, 'Q' Quick&Dirty, 'C' Check. Aggr (if available)
* I_TSX_SELDR_PART = "Restrictions on SELDR
* I_PARALLEL_MODE = RS_C_FALSE "Parallel Mode
* I_BLOCKSIZE = "Overwriting the RSADMINC-BLOCKSIZE with...
* I_SHOW_REPORT = RS_C_FALSE "Display SQL Statement

IMPORTING
E_T_MSG = "BW: Table with Messages (Application Log)
E_SUBRC = "Return Value, Return Value After ABAP Statements

EXCEPTIONS
AGGR_NOT_FOUND = 1 AGGR_EMPTY = 2 TEMPLATE_ERROR = 3 CHECK_NOT_POSSIBLE = 4 INHERITED_ERROR = 5 OTHERS = 6
.



IMPORTING Parameters details for RSDDK_CHECK_AGGREGATE

I_AGGRCUBE - Technical Name of the Aggregate to Be Checked

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

I_BUILD_BY_PARENT - Build Check Aggregate from Higher-Level Aggregate, otherwise from InfoCube

Data type: RS_BOOL
Default: RS_C_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_LOG_FILE - Write Log File and Jump to Transaction /nsgl1 at End

Data type: RS_BOOL
Default: RS_C_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CHECK_MODE - 'A' Normal Check, 'Q' Quick&Dirty, 'C' Check. Aggr (if available)

Data type: RSDDAGGRCHECKMODE
Default: 'A'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TSX_SELDR_PART - Restrictions on SELDR

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

I_PARALLEL_MODE - Parallel Mode

Data type: RS_BOOL
Default: RS_C_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_BLOCKSIZE - Overwriting the RSADMINC-BLOCKSIZE with...

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

I_SHOW_REPORT - Display SQL Statement

Data type: RS_BOOL
Default: RS_C_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for RSDDK_CHECK_AGGREGATE

E_T_MSG - BW: Table with Messages (Application Log)

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

E_SUBRC - Return Value, Return Value After ABAP Statements

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

EXCEPTIONS details

AGGR_NOT_FOUND - Aggregate Not Found

Data type:
Optional: No
Call by Reference: Yes

AGGR_EMPTY - Aggregate Empty

Data type:
Optional: No
Call by Reference: Yes

TEMPLATE_ERROR - Error during Template Generation

Data type:
Optional: No
Call by Reference: Yes

CHECK_NOT_POSSIBLE - Check Not Possible (Hier. or Fix Value)

Data type:
Optional: No
Call by Reference: Yes

INHERITED_ERROR -

Data type:
Optional: No
Call by Reference: Yes

OTHERS -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for RSDDK_CHECK_AGGREGATE 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:
lv_e_t_msg  TYPE RS_T_MSG, "   
lv_i_aggrcube  TYPE RSINFOCUBE, "   
lv_aggr_not_found  TYPE RSINFOCUBE, "   
lv_e_subrc  TYPE SY-SUBRC, "   
lv_aggr_empty  TYPE SY, "   
lv_i_build_by_parent  TYPE RS_BOOL, "   RS_C_FALSE
lv_i_log_file  TYPE RS_BOOL, "   RS_C_FALSE
lv_template_error  TYPE RS_BOOL, "   
lv_i_check_mode  TYPE RSDDAGGRCHECKMODE, "   'A'
lv_check_not_possible  TYPE RSDDAGGRCHECKMODE, "   
lv_inherited_error  TYPE RSDDAGGRCHECKMODE, "   
lv_i_tsx_seldr_part  TYPE RSDD_TSX_SELDR, "   
lv_others  TYPE RSDD_TSX_SELDR, "   
lv_i_parallel_mode  TYPE RS_BOOL, "   RS_C_FALSE
lv_i_blocksize  TYPE I, "   
lv_i_show_report  TYPE RS_BOOL. "   RS_C_FALSE

  CALL FUNCTION 'RSDDK_CHECK_AGGREGATE'  "Check Aggregate Against Source
    EXPORTING
         I_AGGRCUBE = lv_i_aggrcube
         I_BUILD_BY_PARENT = lv_i_build_by_parent
         I_LOG_FILE = lv_i_log_file
         I_CHECK_MODE = lv_i_check_mode
         I_TSX_SELDR_PART = lv_i_tsx_seldr_part
         I_PARALLEL_MODE = lv_i_parallel_mode
         I_BLOCKSIZE = lv_i_blocksize
         I_SHOW_REPORT = lv_i_show_report
    IMPORTING
         E_T_MSG = lv_e_t_msg
         E_SUBRC = lv_e_subrc
    EXCEPTIONS
        AGGR_NOT_FOUND = 1
        AGGR_EMPTY = 2
        TEMPLATE_ERROR = 3
        CHECK_NOT_POSSIBLE = 4
        INHERITED_ERROR = 5
        OTHERS = 6
. " RSDDK_CHECK_AGGREGATE




ABAP code using 7.40 inline data declarations to call FM RSDDK_CHECK_AGGREGATE

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 SUBRC FROM SY INTO @DATA(ld_e_subrc).
 
 
DATA(ld_i_build_by_parent) = RS_C_FALSE.
 
DATA(ld_i_log_file) = RS_C_FALSE.
 
 
DATA(ld_i_check_mode) = 'A'.
 
 
 
 
 
DATA(ld_i_parallel_mode) = RS_C_FALSE.
 
 
DATA(ld_i_show_report) = RS_C_FALSE.
 


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!