SAP RSDG_CUBE_SAVE_DATASTATE Function Module for Sets the flags to the data state of an InfoCube









RSDG_CUBE_SAVE_DATASTATE is a standard rsdg cube save datastate SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Sets the flags to the data state of an InfoCube 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 rsdg cube save datastate FM, simply by entering the name RSDG_CUBE_SAVE_DATASTATE into the relevant SAP transaction such as SE37 or SE38.

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



Function RSDG_CUBE_SAVE_DATASTATE 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 'RSDG_CUBE_SAVE_DATASTATE'"Sets the flags to the data state of an InfoCube
EXPORTING
I_INFOCUBE = "InfoCube
* I_SET_QUERYPROP = RS_C_FALSE "Flag: Setting the Query Properties
* I_S_QUERYPROP = "InfoCube: Default Query Properties
* I_SET_DELTACACHE = RS_C_FALSE "Flag: Setting the delta capability
* I_S_DELTACACHE = "Delta Capability of an InfoProvider
* I_SET_PROVMODE = RS_C_FALSE "Flag: Setting the 'modes'
* I_S_PROVMODE = "'Modes' of an InfoProvider
* I_SET_DATALOAD = RS_C_FALSE "Flag: Setting the data load Prop.
* I_S_DATALOAD = "Data Load Properties
* I_SET_PROVDATA = RS_C_FALSE "Flag: Setting the Provdata Prop.
* I_S_PROVDATA = "Data Handling of an InfoProvider
* I_SET_BWSTAT = RS_C_FALSE "Flag: Set the BW statistic flag
* I_WITH_AUTH_CHECK = RS_C_TRUE "= 'X' with Authorisation check
* I_WITH_CTS = RS_C_TRUE "= 'X' with transport Connection
* I_WITH_ENQUEUE = RS_C_TRUE "= 'X' with a short timeout
* I_WITH_REFRESH = RS_C_TRUE "= 'X' delete buffer
* I_IGNORE_ACTIVE_ERROR = RS_C_FALSE "
* I_FORCE_TIMESTAMP = RS_C_FALSE "
* I_S_BWSTAT = "InfoCube: BW Statistics
* I_SET_REQUEST = RS_C_FALSE "Flag: Defining the BW request flags
* I_S_REQUEST = "InfoCube: Request treatment
* I_SET_DBSTAT = RS_C_FALSE "Flag: Setting the DB Performance Flags
* I_S_DBSTAT = "InfoCube: DB Performance Flags
* I_SET_DBPERF = RS_C_FALSE "Flag: Setting the DB Performance Flags
* I_S_DBPERF = "InfoCube: DB Performance Flags

IMPORTING
E_SUBRC = "= 0: Save done

EXCEPTIONS
INFOCUBE_NOT_IN_ACTIVE_VERSION = 1
.



IMPORTING Parameters details for RSDG_CUBE_SAVE_DATASTATE

I_INFOCUBE - InfoCube

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

I_SET_QUERYPROP - Flag: Setting the Query Properties

Data type: RS_BOOL
Default: RS_C_FALSE
Optional: Yes
Call by Reference: Yes

I_S_QUERYPROP - InfoCube: Default Query Properties

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

I_SET_DELTACACHE - Flag: Setting the delta capability

Data type: RS_BOOL
Default: RS_C_FALSE
Optional: Yes
Call by Reference: Yes

I_S_DELTACACHE - Delta Capability of an InfoProvider

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

I_SET_PROVMODE - Flag: Setting the 'modes'

Data type: RS_BOOL
Default: RS_C_FALSE
Optional: Yes
Call by Reference: Yes

I_S_PROVMODE - 'Modes' of an InfoProvider

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

I_SET_DATALOAD - Flag: Setting the data load Prop.

Data type: RS_BOOL
Default: RS_C_FALSE
Optional: Yes
Call by Reference: Yes

I_S_DATALOAD - Data Load Properties

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

I_SET_PROVDATA - Flag: Setting the Provdata Prop.

Data type: RS_BOOL
Default: RS_C_FALSE
Optional: Yes
Call by Reference: Yes

I_S_PROVDATA - Data Handling of an InfoProvider

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

I_SET_BWSTAT - Flag: Set the BW statistic flag

Data type: RS_BOOL
Default: RS_C_FALSE
Optional: Yes
Call by Reference: Yes

I_WITH_AUTH_CHECK - = 'X' with Authorisation check

Data type: RS_BOOL
Default: RS_C_TRUE
Optional: Yes
Call by Reference: Yes

I_WITH_CTS - = 'X' with transport Connection

Data type: RS_BOOL
Default: RS_C_TRUE
Optional: Yes
Call by Reference: Yes

I_WITH_ENQUEUE - = 'X' with a short timeout

Data type: RS_BOOL
Default: RS_C_TRUE
Optional: Yes
Call by Reference: Yes

I_WITH_REFRESH - = 'X' delete buffer

Data type: RS_BOOL
Default: RS_C_TRUE
Optional: Yes
Call by Reference: Yes

I_IGNORE_ACTIVE_ERROR -

Data type: RS_BOOL
Default: RS_C_FALSE
Optional: Yes
Call by Reference: Yes

I_FORCE_TIMESTAMP -

Data type: RS_BOOL
Default: RS_C_FALSE
Optional: Yes
Call by Reference: Yes

I_S_BWSTAT - InfoCube: BW Statistics

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

I_SET_REQUEST - Flag: Defining the BW request flags

Data type: RS_BOOL
Default: RS_C_FALSE
Optional: Yes
Call by Reference: Yes

I_S_REQUEST - InfoCube: Request treatment

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

I_SET_DBSTAT - Flag: Setting the DB Performance Flags

Data type: RS_BOOL
Default: RS_C_FALSE
Optional: Yes
Call by Reference: Yes

I_S_DBSTAT - InfoCube: DB Performance Flags

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

I_SET_DBPERF - Flag: Setting the DB Performance Flags

Data type: RS_BOOL
Default: RS_C_FALSE
Optional: Yes
Call by Reference: Yes

I_S_DBPERF - InfoCube: DB Performance Flags

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

EXPORTING Parameters details for RSDG_CUBE_SAVE_DATASTATE

E_SUBRC - = 0: Save done

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

EXCEPTIONS details

INFOCUBE_NOT_IN_ACTIVE_VERSION - nfoCube is not active in version available

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for RSDG_CUBE_SAVE_DATASTATE 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_subrc  TYPE SYSUBRC, "   
lv_i_infocube  TYPE RSD_INFOCUBE, "   
lv_infocube_not_in_active_version  TYPE RSD_INFOCUBE, "   
lv_i_set_queryprop  TYPE RS_BOOL, "   RS_C_FALSE
lv_i_s_queryprop  TYPE RSDCUBEQUERYPROP, "   
lv_i_set_deltacache  TYPE RS_BOOL, "   RS_C_FALSE
lv_i_s_deltacache  TYPE RSDPROVDELTA, "   
lv_i_set_provmode  TYPE RS_BOOL, "   RS_C_FALSE
lv_i_s_provmode  TYPE RSDPROVMODE, "   
lv_i_set_dataload  TYPE RS_BOOL, "   RS_C_FALSE
lv_i_s_dataload  TYPE RSD_S_DATA_LOAD, "   
lv_i_set_provdata  TYPE RS_BOOL, "   RS_C_FALSE
lv_i_s_provdata  TYPE RSDPROVDATA, "   
lv_i_set_bwstat  TYPE RS_BOOL, "   RS_C_FALSE
lv_i_with_auth_check  TYPE RS_BOOL, "   RS_C_TRUE
lv_i_with_cts  TYPE RS_BOOL, "   RS_C_TRUE
lv_i_with_enqueue  TYPE RS_BOOL, "   RS_C_TRUE
lv_i_with_refresh  TYPE RS_BOOL, "   RS_C_TRUE
lv_i_ignore_active_error  TYPE RS_BOOL, "   RS_C_FALSE
lv_i_force_timestamp  TYPE RS_BOOL, "   RS_C_FALSE
lv_i_s_bwstat  TYPE RSDCUBEBWSTAT, "   
lv_i_set_request  TYPE RS_BOOL, "   RS_C_FALSE
lv_i_s_request  TYPE RSDCUBEREQUEST, "   
lv_i_set_dbstat  TYPE RS_BOOL, "   RS_C_FALSE
lv_i_s_dbstat  TYPE RSDCUBEDBSTAT, "   
lv_i_set_dbperf  TYPE RS_BOOL, "   RS_C_FALSE
lv_i_s_dbperf  TYPE RSDCUBEDBFLAGS. "   

  CALL FUNCTION 'RSDG_CUBE_SAVE_DATASTATE'  "Sets the flags to the data state of an InfoCube
    EXPORTING
         I_INFOCUBE = lv_i_infocube
         I_SET_QUERYPROP = lv_i_set_queryprop
         I_S_QUERYPROP = lv_i_s_queryprop
         I_SET_DELTACACHE = lv_i_set_deltacache
         I_S_DELTACACHE = lv_i_s_deltacache
         I_SET_PROVMODE = lv_i_set_provmode
         I_S_PROVMODE = lv_i_s_provmode
         I_SET_DATALOAD = lv_i_set_dataload
         I_S_DATALOAD = lv_i_s_dataload
         I_SET_PROVDATA = lv_i_set_provdata
         I_S_PROVDATA = lv_i_s_provdata
         I_SET_BWSTAT = lv_i_set_bwstat
         I_WITH_AUTH_CHECK = lv_i_with_auth_check
         I_WITH_CTS = lv_i_with_cts
         I_WITH_ENQUEUE = lv_i_with_enqueue
         I_WITH_REFRESH = lv_i_with_refresh
         I_IGNORE_ACTIVE_ERROR = lv_i_ignore_active_error
         I_FORCE_TIMESTAMP = lv_i_force_timestamp
         I_S_BWSTAT = lv_i_s_bwstat
         I_SET_REQUEST = lv_i_set_request
         I_S_REQUEST = lv_i_s_request
         I_SET_DBSTAT = lv_i_set_dbstat
         I_S_DBSTAT = lv_i_s_dbstat
         I_SET_DBPERF = lv_i_set_dbperf
         I_S_DBPERF = lv_i_s_dbperf
    IMPORTING
         E_SUBRC = lv_e_subrc
    EXCEPTIONS
        INFOCUBE_NOT_IN_ACTIVE_VERSION = 1
. " RSDG_CUBE_SAVE_DATASTATE




ABAP code using 7.40 inline data declarations to call FM RSDG_CUBE_SAVE_DATASTATE

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.

 
 
 
DATA(ld_i_set_queryprop) = RS_C_FALSE.
 
 
DATA(ld_i_set_deltacache) = RS_C_FALSE.
 
 
DATA(ld_i_set_provmode) = RS_C_FALSE.
 
 
DATA(ld_i_set_dataload) = RS_C_FALSE.
 
 
DATA(ld_i_set_provdata) = RS_C_FALSE.
 
 
DATA(ld_i_set_bwstat) = RS_C_FALSE.
 
DATA(ld_i_with_auth_check) = RS_C_TRUE.
 
DATA(ld_i_with_cts) = RS_C_TRUE.
 
DATA(ld_i_with_enqueue) = RS_C_TRUE.
 
DATA(ld_i_with_refresh) = RS_C_TRUE.
 
DATA(ld_i_ignore_active_error) = RS_C_FALSE.
 
DATA(ld_i_force_timestamp) = RS_C_FALSE.
 
 
DATA(ld_i_set_request) = RS_C_FALSE.
 
 
DATA(ld_i_set_dbstat) = RS_C_FALSE.
 
 
DATA(ld_i_set_dbperf) = 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!