SAP BICS_PROV_ADD_STRUCTURE_MEMBER Function Module for Generate Structural Component
BICS_PROV_ADD_STRUCTURE_MEMBER is a standard bics prov add structure member SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Generate Structural Component 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 bics prov add structure member FM, simply by entering the name BICS_PROV_ADD_STRUCTURE_MEMBER into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSBOLAP_BICS_PROVIDER
Program Name: SAPLRSBOLAP_BICS_PROVIDER
Main Program: SAPLRSBOLAP_BICS_PROVIDER
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:
Function BICS_PROV_ADD_STRUCTURE_MEMBER 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 'BICS_PROV_ADD_STRUCTURE_MEMBER'"Generate Structural Component.
EXPORTING
I_DATA_PROVIDER_HANDLE = "Unique Object Handle for External Communication
I_STRUCTURE_ID = "Structure ID
* I_MEMBER_ID = "Update > 0, Creation = 0
I_CHECK = "Only Check Formula
I_FORMULA_DESCRIPTION = "Formula Description
I_FORMULA_NAME = "Object Name
IMPORTING
E_MAX_MESSAGE_TYPE = "Messages, Message Type
E_MEMBER_ID = "New Member ID
E_FORMULA_OK = "Is Formula Correct?
TABLES
I_T_STATISTIC_INFO = "OLAP Statistics: Mass Insert of Event Data
I_T_DEFINITION = "State of a Formula
E_T_DATA_CELLS = "New/Changed Data Cells
EXCEPTIONS
INVALID_DATA_PROVIDER_HANDLE = 1
IMPORTING Parameters details for BICS_PROV_ADD_STRUCTURE_MEMBER
I_DATA_PROVIDER_HANDLE - Unique Object Handle for External Communication
Data type: RSBOLAP_HANDLEOptional: No
Call by Reference: No ( called with pass by value option)
I_STRUCTURE_ID - Structure ID
Data type: RSBOLAP_OBJECT_IDOptional: No
Call by Reference: No ( called with pass by value option)
I_MEMBER_ID - Update > 0, Creation = 0
Data type: RSBOLAP_OBJECT_IDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_CHECK - Only Check Formula
Data type: RS_BOOLOptional: No
Call by Reference: No ( called with pass by value option)
I_FORMULA_DESCRIPTION - Formula Description
Data type: RSBOLAP_OBJECT_TEXTOptional: No
Call by Reference: No ( called with pass by value option)
I_FORMULA_NAME - Object Name
Data type: RSBOLAP_OBJECT_NAMEOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BICS_PROV_ADD_STRUCTURE_MEMBER
E_MAX_MESSAGE_TYPE - Messages, Message Type
Data type: SYMSGTYOptional: No
Call by Reference: No ( called with pass by value option)
E_MEMBER_ID - New Member ID
Data type: RSBOLAP_OBJECT_IDOptional: No
Call by Reference: No ( called with pass by value option)
E_FORMULA_OK - Is Formula Correct?
Data type: RS_BOOLOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BICS_PROV_ADD_STRUCTURE_MEMBER
I_T_STATISTIC_INFO - OLAP Statistics: Mass Insert of Event Data
Data type: RSSTA_S_EVENTINPUTOptional: No
Call by Reference: Yes
I_T_DEFINITION - State of a Formula
Data type: BICS_PROV_STATE_LOCAL_FORMULAOptional: No
Call by Reference: Yes
E_T_DATA_CELLS - New/Changed Data Cells
Data type: BICS_PROV_META_DATA_CELLOptional: No
Call by Reference: Yes
EXCEPTIONS details
INVALID_DATA_PROVIDER_HANDLE - Invalid Data Provider Handle
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for BICS_PROV_ADD_STRUCTURE_MEMBER 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_max_message_type | TYPE SYMSGTY, " | |||
lt_i_t_statistic_info | TYPE STANDARD TABLE OF RSSTA_S_EVENTINPUT, " | |||
lv_i_data_provider_handle | TYPE RSBOLAP_HANDLE, " | |||
lv_invalid_data_provider_handle | TYPE RSBOLAP_HANDLE, " | |||
lv_e_member_id | TYPE RSBOLAP_OBJECT_ID, " | |||
lv_i_structure_id | TYPE RSBOLAP_OBJECT_ID, " | |||
lt_i_t_definition | TYPE STANDARD TABLE OF BICS_PROV_STATE_LOCAL_FORMULA, " | |||
lv_i_member_id | TYPE RSBOLAP_OBJECT_ID, " | |||
lv_e_formula_ok | TYPE RS_BOOL, " | |||
lt_e_t_data_cells | TYPE STANDARD TABLE OF BICS_PROV_META_DATA_CELL, " | |||
lv_i_check | TYPE RS_BOOL, " | |||
lv_i_formula_description | TYPE RSBOLAP_OBJECT_TEXT, " | |||
lv_i_formula_name | TYPE RSBOLAP_OBJECT_NAME. " |
  CALL FUNCTION 'BICS_PROV_ADD_STRUCTURE_MEMBER' "Generate Structural Component |
EXPORTING | ||
I_DATA_PROVIDER_HANDLE | = lv_i_data_provider_handle | |
I_STRUCTURE_ID | = lv_i_structure_id | |
I_MEMBER_ID | = lv_i_member_id | |
I_CHECK | = lv_i_check | |
I_FORMULA_DESCRIPTION | = lv_i_formula_description | |
I_FORMULA_NAME | = lv_i_formula_name | |
IMPORTING | ||
E_MAX_MESSAGE_TYPE | = lv_e_max_message_type | |
E_MEMBER_ID | = lv_e_member_id | |
E_FORMULA_OK | = lv_e_formula_ok | |
TABLES | ||
I_T_STATISTIC_INFO | = lt_i_t_statistic_info | |
I_T_DEFINITION | = lt_i_t_definition | |
E_T_DATA_CELLS | = lt_e_t_data_cells | |
EXCEPTIONS | ||
INVALID_DATA_PROVIDER_HANDLE = 1 | ||
. " BICS_PROV_ADD_STRUCTURE_MEMBER |
ABAP code using 7.40 inline data declarations to call FM BICS_PROV_ADD_STRUCTURE_MEMBER
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.Search for further information about these or an SAP related objects