SAP BM_READ_PARAMS_SET Function Module for









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

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



Function BM_READ_PARAMS_SET 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_READ_PARAMS_SET'"
EXPORTING
* LANGUAGE = SY-LANGU "
* DISPLAY_MODE = 'D' "Single-Character Flag
* W_HEADER = 'X' "Data element for Flag - Any use
* W_HEADER_TEXT = 'X' "
* W_ATTR1 = ' ' "Data element for Flag - Any use
* W_TADIR = ' ' "Data element for Flag - Any use
* W_DELETED = ' ' "Data element for Flag - Any use

IMPORTING
PARAMS = "Flag Structure for Read Modules
.



IMPORTING Parameters details for BM_READ_PARAMS_SET

LANGUAGE -

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

DISPLAY_MODE - Single-Character Flag

Data type: BMPARAM0-DSPLMODE
Default: 'D'
Optional: Yes
Call by Reference: No ( called with pass by value option)

W_HEADER - Data element for Flag - Any use

Data type: BMPARAM0-W_ATTR0
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

W_HEADER_TEXT -

Data type: BMPARAM0-W_TEXT0
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

W_ATTR1 - Data element for Flag - Any use

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

W_TADIR - Data element for Flag - Any use

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

W_DELETED - Data element for Flag - Any use

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

EXPORTING Parameters details for BM_READ_PARAMS_SET

PARAMS - Flag Structure for Read Modules

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

Copy and paste ABAP code example for BM_READ_PARAMS_SET 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_params  TYPE BMPARAM0, "   
lv_language  TYPE SY-LANGU, "   SY-LANGU
lv_display_mode  TYPE BMPARAM0-DSPLMODE, "   'D'
lv_w_header  TYPE BMPARAM0-W_ATTR0, "   'X'
lv_w_header_text  TYPE BMPARAM0-W_TEXT0, "   'X'
lv_w_attr1  TYPE BMPARAM0-W_ATTR1, "   SPACE
lv_w_tadir  TYPE BMPARAM0-W_TADIR, "   SPACE
lv_w_deleted  TYPE BMPARAM0-W_DELETED. "   SPACE

  CALL FUNCTION 'BM_READ_PARAMS_SET'  "
    EXPORTING
         LANGUAGE = lv_language
         DISPLAY_MODE = lv_display_mode
         W_HEADER = lv_w_header
         W_HEADER_TEXT = lv_w_header_text
         W_ATTR1 = lv_w_attr1
         W_TADIR = lv_w_tadir
         W_DELETED = lv_w_deleted
    IMPORTING
         PARAMS = lv_params
. " BM_READ_PARAMS_SET




ABAP code using 7.40 inline data declarations to call FM BM_READ_PARAMS_SET

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 LANGU FROM SY INTO @DATA(ld_language).
DATA(ld_language) = SY-LANGU.
 
"SELECT single DSPLMODE FROM BMPARAM0 INTO @DATA(ld_display_mode).
DATA(ld_display_mode) = 'D'.
 
"SELECT single W_ATTR0 FROM BMPARAM0 INTO @DATA(ld_w_header).
DATA(ld_w_header) = 'X'.
 
"SELECT single W_TEXT0 FROM BMPARAM0 INTO @DATA(ld_w_header_text).
DATA(ld_w_header_text) = 'X'.
 
"SELECT single W_ATTR1 FROM BMPARAM0 INTO @DATA(ld_w_attr1).
DATA(ld_w_attr1) = ' '.
 
"SELECT single W_TADIR FROM BMPARAM0 INTO @DATA(ld_w_tadir).
DATA(ld_w_tadir) = ' '.
 
"SELECT single W_DELETED FROM BMPARAM0 INTO @DATA(ld_w_deleted).
DATA(ld_w_deleted) = ' '.
 


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!