SAP /SAPAPO/DM_DATA_WRITE_ADVANCED Function Module for Saves Data to InfoCube









/SAPAPO/DM_DATA_WRITE_ADVANCED is a standard /sapapo/dm data write advanced SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Saves Data to 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 /sapapo/dm data write advanced FM, simply by entering the name /SAPAPO/DM_DATA_WRITE_ADVANCED into the relevant SAP transaction such as SE37 or SE38.

Function Group: /SAPAPO/DM_DEMAND_PLANNING
Program Name: /SAPAPO/SAPLDM_DEMAND_PLANNING
Main Program: /SAPAPO/SAPLDM_DEMAND_PLANNING
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update: 1



Function /SAPAPO/DM_DATA_WRITE_ADVANCED 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 '/SAPAPO/DM_DATA_WRITE_ADVANCED'"Saves Data to InfoCube
EXPORTING
I_CUBE = "
* I_FLG_TIME_DISAGG = ' ' "

TABLES
T_SELECTION = "
T_LINES = "
T_TAB = "
T_TAB_BIM = "
T_COLS_ASSIGN = "
T_PERKZ_ASSIGN = "
* T_COLS_HIER = "
* T_COLS_AGGREG = "
* T_PLOB_VALUES = "
.



IMPORTING Parameters details for /SAPAPO/DM_DATA_WRITE_ADVANCED

I_CUBE -

Data type: /SAPAPO/DM_INT_CUBES-INFOCUBE
Optional: No
Call by Reference: No ( called with pass by value option)

I_FLG_TIME_DISAGG -

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

TABLES Parameters details for /SAPAPO/DM_DATA_WRITE_ADVANCED

T_SELECTION -

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

T_LINES -

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

T_TAB -

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

T_TAB_BIM -

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

T_COLS_ASSIGN -

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

T_PERKZ_ASSIGN -

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

T_COLS_HIER -

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

T_COLS_AGGREG -

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

T_PLOB_VALUES -

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

Copy and paste ABAP code example for /SAPAPO/DM_DATA_WRITE_ADVANCED 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_i_cube  TYPE /SAPAPO/DM_INT_CUBES-INFOCUBE, "   
lt_t_selection  TYPE STANDARD TABLE OF /SAPAPO/DM_INT_SELECTION, "   
lt_t_lines  TYPE STANDARD TABLE OF /SAPAPO/MCP6_LI, "   
lv_i_flg_time_disagg  TYPE AS400FLAG, "   SPACE
lt_t_tab  TYPE STANDARD TABLE OF /SAPAPO/MXSOP, "   
lt_t_tab_bim  TYPE STANDARD TABLE OF /SAPAPO/MXSOP, "   
lt_t_cols_assign  TYPE STANDARD TABLE OF /SAPAPO/DM_PERIO_CONVERT_2, "   
lt_t_perkz_assign  TYPE STANDARD TABLE OF /SAPAPO/DM_PERIO_CONVERT_1, "   
lt_t_cols_hier  TYPE STANDARD TABLE OF /SAPAPO/PGAN, "   
lt_t_cols_aggreg  TYPE STANDARD TABLE OF /SAPAPO/PGCOLS, "   
lt_t_plob_values  TYPE STANDARD TABLE OF /SAPAPO/DM_T_PLOB_VALUES. "   

  CALL FUNCTION '/SAPAPO/DM_DATA_WRITE_ADVANCED'  "Saves Data to InfoCube
    EXPORTING
         I_CUBE = lv_i_cube
         I_FLG_TIME_DISAGG = lv_i_flg_time_disagg
    TABLES
         T_SELECTION = lt_t_selection
         T_LINES = lt_t_lines
         T_TAB = lt_t_tab
         T_TAB_BIM = lt_t_tab_bim
         T_COLS_ASSIGN = lt_t_cols_assign
         T_PERKZ_ASSIGN = lt_t_perkz_assign
         T_COLS_HIER = lt_t_cols_hier
         T_COLS_AGGREG = lt_t_cols_aggreg
         T_PLOB_VALUES = lt_t_plob_values
. " /SAPAPO/DM_DATA_WRITE_ADVANCED




ABAP code using 7.40 inline data declarations to call FM /SAPAPO/DM_DATA_WRITE_ADVANCED

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 INFOCUBE FROM /SAPAPO/DM_INT_CUBES INTO @DATA(ld_i_cube).
 
 
 
DATA(ld_i_flg_time_disagg) = ' '.
 
 
 
 
 
 
 
 


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!