SAP BM_OBJECT_STRUCT_SAVE_BMEF Function Module for









BM_OBJECT_STRUCT_SAVE_BMEF is a standard bm object struct save bmef SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 bm object struct save bmef FM, simply by entering the name BM_OBJECT_STRUCT_SAVE_BMEF into the relevant SAP transaction such as SE37 or SE38.

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



Function BM_OBJECT_STRUCT_SAVE_BMEF 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 'BM_OBJECT_STRUCT_SAVE_BMEF'"
EXPORTING
I_FUNCTION_ID = "
* I_SAVE_QUE = "
* I_SAVE_BCS = "
* I_SAVE_REQ = "
* I_STRUCT_ID = "
* I_STRUCT_TEXT = "
* I_SAVE_ONLY_EXTENSIONS = ' ' "Single-Character Flag
* I_EXTENSION = ' ' "Structure enhancement ID
* I_DEVCLASS = "
* I_REQNO = "
* I_LANGUAGE = SY-LANGU "
* I_SAVE_IMG = "

IMPORTING
E_STRUCTURE = "
_USAGES_UPDATE = "

TABLES
* I_IMG_ITEMS = "
* I_QUE_ITEMS = "
* I_BCS_ITEMS = "
* I_REQ_ITEMS = "
* E_MESSAGES = "

EXCEPTIONS
STRUCTURE_NOT_FOUND = 1 ERROR_OCCURRED = 2 ERROR_IN_USAGES = 3
.



IMPORTING Parameters details for BM_OBJECT_STRUCT_SAVE_BMEF

I_FUNCTION_ID -

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

I_SAVE_QUE -

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

I_SAVE_BCS -

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

I_SAVE_REQ -

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

I_STRUCT_ID -

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

I_STRUCT_TEXT -

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

I_SAVE_ONLY_EXTENSIONS - Single-Character Flag

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

I_EXTENSION - Structure enhancement ID

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

I_DEVCLASS -

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

I_REQNO -

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

I_LANGUAGE -

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

I_SAVE_IMG -

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

EXPORTING Parameters details for BM_OBJECT_STRUCT_SAVE_BMEF

E_STRUCTURE -

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

_USAGES_UPDATE -

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

TABLES Parameters details for BM_OBJECT_STRUCT_SAVE_BMEF

I_IMG_ITEMS -

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

I_QUE_ITEMS -

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

I_BCS_ITEMS -

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

I_REQ_ITEMS -

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

E_MESSAGES -

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

EXCEPTIONS details

STRUCTURE_NOT_FOUND -

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

ERROR_OCCURRED -

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

ERROR_IN_USAGES -

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

Copy and paste ABAP code example for BM_OBJECT_STRUCT_SAVE_BMEF 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_structure  TYPE TTREE, "   
lt_i_img_items  TYPE STANDARD TABLE OF BMREF_ITEMS, "   
lv_i_function_id  TYPE BMOBJECT-ID, "   
lv_structure_not_found  TYPE BMOBJECT, "   
lv_i_save_que  TYPE C, "   
lv_i_save_bcs  TYPE C, "   
lv_i_save_req  TYPE C, "   
lt_i_que_items  TYPE STANDARD TABLE OF BMREF_ITEMS, "   
lv_i_struct_id  TYPE TTREE-ID, "   
lv_error_occurred  TYPE TTREE, "   
lv__usages_update  TYPE C, "   
lt_i_bcs_items  TYPE STANDARD TABLE OF BMREF_ITEMS, "   
lv_i_struct_text  TYPE C, "   
lv_error_in_usages  TYPE C, "   
lt_i_req_items  TYPE STANDARD TABLE OF BMREF_ITEMS, "   
lv_i_save_only_extensions  TYPE CHAR1, "   SPACE
lt_e_messages  TYPE STANDARD TABLE OF BMMSG, "   
lv_i_extension  TYPE HIER_NAMES, "   SPACE
lv_i_devclass  TYPE DEVCLASS, "   
lv_i_reqno  TYPE TRKORR, "   
lv_i_language  TYPE SY-LANGU, "   SY-LANGU
lv_i_save_img  TYPE C. "   

  CALL FUNCTION 'BM_OBJECT_STRUCT_SAVE_BMEF'  "
    EXPORTING
         I_FUNCTION_ID = lv_i_function_id
         I_SAVE_QUE = lv_i_save_que
         I_SAVE_BCS = lv_i_save_bcs
         I_SAVE_REQ = lv_i_save_req
         I_STRUCT_ID = lv_i_struct_id
         I_STRUCT_TEXT = lv_i_struct_text
         I_SAVE_ONLY_EXTENSIONS = lv_i_save_only_extensions
         I_EXTENSION = lv_i_extension
         I_DEVCLASS = lv_i_devclass
         I_REQNO = lv_i_reqno
         I_LANGUAGE = lv_i_language
         I_SAVE_IMG = lv_i_save_img
    IMPORTING
         E_STRUCTURE = lv_e_structure
         _USAGES_UPDATE = lv__usages_update
    TABLES
         I_IMG_ITEMS = lt_i_img_items
         I_QUE_ITEMS = lt_i_que_items
         I_BCS_ITEMS = lt_i_bcs_items
         I_REQ_ITEMS = lt_i_req_items
         E_MESSAGES = lt_e_messages
    EXCEPTIONS
        STRUCTURE_NOT_FOUND = 1
        ERROR_OCCURRED = 2
        ERROR_IN_USAGES = 3
. " BM_OBJECT_STRUCT_SAVE_BMEF




ABAP code using 7.40 inline data declarations to call FM BM_OBJECT_STRUCT_SAVE_BMEF

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 ID FROM BMOBJECT INTO @DATA(ld_i_function_id).
 
 
 
 
 
 
"SELECT single ID FROM TTREE INTO @DATA(ld_i_struct_id).
 
 
 
 
 
 
 
DATA(ld_i_save_only_extensions) = ' '.
 
 
DATA(ld_i_extension) = ' '.
 
 
 
"SELECT single LANGU FROM SY INTO @DATA(ld_i_language).
DATA(ld_i_language) = SY-LANGU.
 
 


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!