SAP QMLA_REPORTTYPE_SELECTION Function Module for NOTRANSL: Selektion von Berichtsarten









QMLA_REPORTTYPE_SELECTION is a standard qmla reporttype selection SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Selektion von Berichtsarten 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 qmla reporttype selection FM, simply by entering the name QMLA_REPORTTYPE_SELECTION into the relevant SAP transaction such as SE37 or SE38.

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



Function QMLA_REPORTTYPE_SELECTION 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 'QMLA_REPORTTYPE_SELECTION'"NOTRANSL: Selektion von Berichtsarten
EXPORTING
* I_BFHY_WA = "
* I_FLG_OPTION_NEW = "
* WINX1_06 = 10 "
* WINX2_06 = 62 "
* WINY1_06 = 10 "
* WINY2_06 = 17 "

IMPORTING
E_FEART = "

TABLES
* I_BFOM_TAB = "
* I_FAOB_TAB = "

EXCEPTIONS
NO_DATA_FOUND = 1 NO_DATA_SELECTED = 2
.



IMPORTING Parameters details for QMLA_REPORTTYPE_SELECTION

I_BFHY_WA -

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

I_FLG_OPTION_NEW -

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

WINX1_06 -

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

WINX2_06 -

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

WINY1_06 -

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

WINY2_06 -

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

EXPORTING Parameters details for QMLA_REPORTTYPE_SELECTION

E_FEART -

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

TABLES Parameters details for QMLA_REPORTTYPE_SELECTION

I_BFOM_TAB -

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

I_FAOB_TAB -

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

EXCEPTIONS details

NO_DATA_FOUND -

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

NO_DATA_SELECTED -

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

Copy and paste ABAP code example for QMLA_REPORTTYPE_SELECTION 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_feart  TYPE QMEL-FEART, "   
lv_i_bfhy_wa  TYPE QFOB, "   
lt_i_bfom_tab  TYPE STANDARD TABLE OF QFOM, "   
lv_no_data_found  TYPE QFOM, "   
lt_i_faob_tab  TYPE STANDARD TABLE OF QFEARTTXT, "   
lv_i_flg_option_new  TYPE QM00-QKZ, "   
lv_no_data_selected  TYPE QM00, "   
lv_winx1_06  TYPE SY-WINX1, "   10
lv_winx2_06  TYPE SY-WINX2, "   62
lv_winy1_06  TYPE SY-WINY1, "   10
lv_winy2_06  TYPE SY-WINY2. "   17

  CALL FUNCTION 'QMLA_REPORTTYPE_SELECTION'  "NOTRANSL: Selektion von Berichtsarten
    EXPORTING
         I_BFHY_WA = lv_i_bfhy_wa
         I_FLG_OPTION_NEW = lv_i_flg_option_new
         WINX1_06 = lv_winx1_06
         WINX2_06 = lv_winx2_06
         WINY1_06 = lv_winy1_06
         WINY2_06 = lv_winy2_06
    IMPORTING
         E_FEART = lv_e_feart
    TABLES
         I_BFOM_TAB = lt_i_bfom_tab
         I_FAOB_TAB = lt_i_faob_tab
    EXCEPTIONS
        NO_DATA_FOUND = 1
        NO_DATA_SELECTED = 2
. " QMLA_REPORTTYPE_SELECTION




ABAP code using 7.40 inline data declarations to call FM QMLA_REPORTTYPE_SELECTION

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 FEART FROM QMEL INTO @DATA(ld_e_feart).
 
 
 
 
 
"SELECT single QKZ FROM QM00 INTO @DATA(ld_i_flg_option_new).
 
 
"SELECT single WINX1 FROM SY INTO @DATA(ld_winx1_06).
DATA(ld_winx1_06) = 10.
 
"SELECT single WINX2 FROM SY INTO @DATA(ld_winx2_06).
DATA(ld_winx2_06) = 62.
 
"SELECT single WINY1 FROM SY INTO @DATA(ld_winy1_06).
DATA(ld_winy1_06) = 10.
 
"SELECT single WINY2 FROM SY INTO @DATA(ld_winy2_06).
DATA(ld_winy2_06) = 17.
 


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!