SAP RSDDK_AGGREGATE_WRITE Function Module for Intern: Writing an Aggregate









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

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



Function RSDDK_AGGREGATE_WRITE 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_AGGREGATE_WRITE'"Intern: Writing an Aggregate
EXPORTING
I_SX_AGGRCAT = "
I_S_FACTTAB_READ = "Boolean
* I_PROGRAM = "
* I_SET_BWSTATISTIC = RS_C_TRUE "Boolean
* I_CALC_STATISTIC = RS_C_TRUE "Boolean
* I_BLOCKNO = 0 "Number of the written block
I_PARENTCUBE = "
I_TH_SFC = "
I_TH_SFK = "
I_TSX_SELDR = "
I_SRDATE = "Date and Time, Current (Application Server) Date
I_CHANGEMODE = "
I_TH_FIXSID_WRITE = "Table of Fixed Values
I_TS_FACTTAB_WRITE = "Boolean

IMPORTING
E_INSERTED_REC = "
E_READ_REC = "
E_FACTTAB_WRITE = "
E_CNSID_MAX = "Master Data ID

CHANGING
C_T_MSG = "BW: Table with Messages (Application Log)

EXCEPTIONS
DATA_ERROR = 1 INHERITED_ERROR = 2
.



IMPORTING Parameters details for RSDDK_AGGREGATE_WRITE

I_SX_AGGRCAT -

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

I_S_FACTTAB_READ - Boolean

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

I_PROGRAM -

Data type: SY-REPID
Optional: Yes
Call by Reference: Yes

I_SET_BWSTATISTIC - Boolean

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

I_CALC_STATISTIC - Boolean

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

I_BLOCKNO - Number of the written block

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

I_PARENTCUBE -

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

I_TH_SFC -

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

I_TH_SFK -

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

I_TSX_SELDR -

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

I_SRDATE - Date and Time, Current (Application Server) Date

Data type: SY-DATUM
Optional: No
Call by Reference: Yes

I_CHANGEMODE -

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

I_TH_FIXSID_WRITE - Table of Fixed Values

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

I_TS_FACTTAB_WRITE - Boolean

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

EXPORTING Parameters details for RSDDK_AGGREGATE_WRITE

E_INSERTED_REC -

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

E_READ_REC -

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

E_FACTTAB_WRITE -

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

E_CNSID_MAX - Master Data ID

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

CHANGING Parameters details for RSDDK_AGGREGATE_WRITE

C_T_MSG - BW: Table with Messages (Application Log)

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

EXCEPTIONS details

DATA_ERROR - Error Writing to Database

Data type:
Optional: No
Call by Reference: Yes

INHERITED_ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for RSDDK_AGGREGATE_WRITE 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_c_t_msg  TYPE RS_T_MSG, "   
lv_data_error  TYPE RS_T_MSG, "   
lv_i_sx_aggrcat  TYPE RSDDK_SX_AGGRCAT, "   
lv_e_inserted_rec  TYPE I, "   
lv_i_s_facttab_read  TYPE RSDDK_S_FACTTAB, "   
lv_i_program  TYPE SY-REPID, "   
lv_i_set_bwstatistic  TYPE RS_BOOL, "   RS_C_TRUE
lv_i_calc_statistic  TYPE RS_BOOL, "   RS_C_TRUE
lv_i_blockno  TYPE I, "   0
lv_e_read_rec  TYPE F, "   
lv_i_parentcube  TYPE RSD_INFOCUBE, "   
lv_inherited_error  TYPE RSD_INFOCUBE, "   
lv_i_th_sfc  TYPE RSDD_TH_SFC, "   
lv_e_facttab_write  TYPE RSD_TABLNM, "   
lv_i_th_sfk  TYPE RSDD_TH_SFK, "   
lv_e_cnsid_max  TYPE RSSID, "   
lv_i_tsx_seldr  TYPE RSDD_TSX_SELDR, "   
lv_i_srdate  TYPE SY-DATUM, "   
lv_i_changemode  TYPE RSDDKCHGMODE, "   
lv_i_th_fixsid_write  TYPE RSDDTHFIXSID, "   
lv_i_ts_facttab_write  TYPE RSDDK_TS_FACTTAB. "   

  CALL FUNCTION 'RSDDK_AGGREGATE_WRITE'  "Intern: Writing an Aggregate
    EXPORTING
         I_SX_AGGRCAT = lv_i_sx_aggrcat
         I_S_FACTTAB_READ = lv_i_s_facttab_read
         I_PROGRAM = lv_i_program
         I_SET_BWSTATISTIC = lv_i_set_bwstatistic
         I_CALC_STATISTIC = lv_i_calc_statistic
         I_BLOCKNO = lv_i_blockno
         I_PARENTCUBE = lv_i_parentcube
         I_TH_SFC = lv_i_th_sfc
         I_TH_SFK = lv_i_th_sfk
         I_TSX_SELDR = lv_i_tsx_seldr
         I_SRDATE = lv_i_srdate
         I_CHANGEMODE = lv_i_changemode
         I_TH_FIXSID_WRITE = lv_i_th_fixsid_write
         I_TS_FACTTAB_WRITE = lv_i_ts_facttab_write
    IMPORTING
         E_INSERTED_REC = lv_e_inserted_rec
         E_READ_REC = lv_e_read_rec
         E_FACTTAB_WRITE = lv_e_facttab_write
         E_CNSID_MAX = lv_e_cnsid_max
    CHANGING
         C_T_MSG = lv_c_t_msg
    EXCEPTIONS
        DATA_ERROR = 1
        INHERITED_ERROR = 2
. " RSDDK_AGGREGATE_WRITE




ABAP code using 7.40 inline data declarations to call FM RSDDK_AGGREGATE_WRITE

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 REPID FROM SY INTO @DATA(ld_i_program).
 
DATA(ld_i_set_bwstatistic) = RS_C_TRUE.
 
DATA(ld_i_calc_statistic) = RS_C_TRUE.
 
 
 
 
 
 
 
 
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_i_srdate).
 
 
 
 


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!