SAP BM_SELECTIONS_SELECT Function Module for









BM_SELECTIONS_SELECT is a standard bm selections select 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 selections select FM, simply by entering the name BM_SELECTIONS_SELECT into the relevant SAP transaction such as SE37 or SE38.

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



Function BM_SELECTIONS_SELECT 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_SELECTIONS_SELECT'"
EXPORTING
* COMP_OBJ = ' ' "
* COMP_TYP = ' ' "
FILTER_ID = "
* CONTEXT_VARIANT = ' ' "
* CONTEXT_NODE = ' ' "
* LANGUAGE = ' ' "' ' = Read without text
* NO_DIALOG = ' ' "

IMPORTING
SELECTION_HEADS = "
SELECTION_CONTEXTS = "
ERROR_OCCURED = "
PROCESSING_STATUS = "

TABLES
* ERRORS = "

EXCEPTIONS
NOT_FOUND = 1 INVALID_PARAMETER_COMBINATION = 2
.



IMPORTING Parameters details for BM_SELECTIONS_SELECT

COMP_OBJ -

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

COMP_TYP -

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

FILTER_ID -

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

CONTEXT_VARIANT -

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

CONTEXT_NODE -

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

LANGUAGE - SPACE = Read without text

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

NO_DIALOG -

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

EXPORTING Parameters details for BM_SELECTIONS_SELECT

SELECTION_HEADS -

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

SELECTION_CONTEXTS -

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

ERROR_OCCURED -

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

PROCESSING_STATUS -

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

TABLES Parameters details for BM_SELECTIONS_SELECT

ERRORS -

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

EXCEPTIONS details

NOT_FOUND -

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

INVALID_PARAMETER_COMBINATION -

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

Copy and paste ABAP code example for BM_SELECTIONS_SELECT 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:
lt_errors  TYPE STANDARD TABLE OF RPYGSER, "   
lv_comp_obj  TYPE DF55L-COMP_OBJ, "   SPACE
lv_not_found  TYPE DF55L, "   
lv_selection_heads  TYPE BMT_FC_SEL_HEADS, "   
lv_comp_typ  TYPE DF55L-COMP_TYP, "   SPACE
lv_selection_contexts  TYPE BMT_FC_SEL_CONTEXTS, "   
lv_invalid_parameter_combination  TYPE BMT_FC_SEL_CONTEXTS, "   
lv_filter_id  TYPE DF53S-FILTER_ID, "   
lv_error_occured  TYPE RPYGSGF-ERR_EXIST, "   
lv_context_variant  TYPE DF53S-CONTXT_VAR, "   SPACE
lv_processing_status  TYPE RPYGSGF-PROC_STAT, "   
lv_context_node  TYPE DF53S-CONTXT_NOD, "   SPACE
lv_language  TYPE DF55T-LANGU, "   SPACE
lv_no_dialog  TYPE BMT_FLAG. "   SPACE

  CALL FUNCTION 'BM_SELECTIONS_SELECT'  "
    EXPORTING
         COMP_OBJ = lv_comp_obj
         COMP_TYP = lv_comp_typ
         FILTER_ID = lv_filter_id
         CONTEXT_VARIANT = lv_context_variant
         CONTEXT_NODE = lv_context_node
         LANGUAGE = lv_language
         NO_DIALOG = lv_no_dialog
    IMPORTING
         SELECTION_HEADS = lv_selection_heads
         SELECTION_CONTEXTS = lv_selection_contexts
         ERROR_OCCURED = lv_error_occured
         PROCESSING_STATUS = lv_processing_status
    TABLES
         ERRORS = lt_errors
    EXCEPTIONS
        NOT_FOUND = 1
        INVALID_PARAMETER_COMBINATION = 2
. " BM_SELECTIONS_SELECT




ABAP code using 7.40 inline data declarations to call FM BM_SELECTIONS_SELECT

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 COMP_OBJ FROM DF55L INTO @DATA(ld_comp_obj).
DATA(ld_comp_obj) = ' '.
 
 
 
"SELECT single COMP_TYP FROM DF55L INTO @DATA(ld_comp_typ).
DATA(ld_comp_typ) = ' '.
 
 
 
"SELECT single FILTER_ID FROM DF53S INTO @DATA(ld_filter_id).
 
"SELECT single ERR_EXIST FROM RPYGSGF INTO @DATA(ld_error_occured).
 
"SELECT single CONTXT_VAR FROM DF53S INTO @DATA(ld_context_variant).
DATA(ld_context_variant) = ' '.
 
"SELECT single PROC_STAT FROM RPYGSGF INTO @DATA(ld_processing_status).
 
"SELECT single CONTXT_NOD FROM DF53S INTO @DATA(ld_context_node).
DATA(ld_context_node) = ' '.
 
"SELECT single LANGU FROM DF55T INTO @DATA(ld_language).
DATA(ld_language) = ' '.
 
DATA(ld_no_dialog) = ' '.
 


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!