SAP MB_CONTROL_MOVETYPE_GET Function Module for NOTRANSL: Lesen der Steuertabellen









MB_CONTROL_MOVETYPE_GET is a standard mb control movetype get 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: Lesen der Steuertabellen 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 mb control movetype get FM, simply by entering the name MB_CONTROL_MOVETYPE_GET into the relevant SAP transaction such as SE37 or SE38.

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



Function MB_CONTROL_MOVETYPE_GET 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 'MB_CONTROL_MOVETYPE_GET'"NOTRANSL: Lesen der Steuertabellen
EXPORTING
* I_MANDT = SY-MANDT "
* I_BWART = '*' "
* I_WERTU = '*' "
* I_MENGU = '*' "
* I_SOBKZ = '*' "
* I_KZBEW = '*' "
* I_KZZUG = '*' "
* I_KZVBR = '*' "

IMPORTING
E_ST156S = "

TABLES
* TE_ST156S_TAB = "

EXCEPTIONS
INCONSISTENT_ENTRIES = 1 NO_ENTRIES_FOUND = 2
.



IMPORTING Parameters details for MB_CONTROL_MOVETYPE_GET

I_MANDT -

Data type: T001-MANDT
Default: SY-MANDT
Optional: Yes
Call by Reference: Yes

I_BWART -

Data type: T156SC-BWART
Default: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_WERTU -

Data type: T156SC-WERTU
Default: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_MENGU -

Data type: T156SC-MENGU
Default: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SOBKZ -

Data type: T156SC-SOBKZ
Default: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_KZBEW -

Data type: T156SC-KZBEW
Default: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_KZZUG -

Data type: T156SC-KZZUG
Default: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_KZVBR -

Data type: T156SC-KZVBR
Default: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for MB_CONTROL_MOVETYPE_GET

E_ST156S -

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

TABLES Parameters details for MB_CONTROL_MOVETYPE_GET

TE_ST156S_TAB -

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

EXCEPTIONS details

INCONSISTENT_ENTRIES -

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

NO_ENTRIES_FOUND -

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

Copy and paste ABAP code example for MB_CONTROL_MOVETYPE_GET 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_i_mandt  TYPE T001-MANDT, "   SY-MANDT
lv_e_st156s  TYPE ST156S, "   
lt_te_st156s_tab  TYPE STANDARD TABLE OF ST156S, "   
lv_inconsistent_entries  TYPE ST156S, "   
lv_i_bwart  TYPE T156SC-BWART, "   '*'
lv_no_entries_found  TYPE T156SC, "   
lv_i_wertu  TYPE T156SC-WERTU, "   '*'
lv_i_mengu  TYPE T156SC-MENGU, "   '*'
lv_i_sobkz  TYPE T156SC-SOBKZ, "   '*'
lv_i_kzbew  TYPE T156SC-KZBEW, "   '*'
lv_i_kzzug  TYPE T156SC-KZZUG, "   '*'
lv_i_kzvbr  TYPE T156SC-KZVBR. "   '*'

  CALL FUNCTION 'MB_CONTROL_MOVETYPE_GET'  "NOTRANSL: Lesen der Steuertabellen
    EXPORTING
         I_MANDT = lv_i_mandt
         I_BWART = lv_i_bwart
         I_WERTU = lv_i_wertu
         I_MENGU = lv_i_mengu
         I_SOBKZ = lv_i_sobkz
         I_KZBEW = lv_i_kzbew
         I_KZZUG = lv_i_kzzug
         I_KZVBR = lv_i_kzvbr
    IMPORTING
         E_ST156S = lv_e_st156s
    TABLES
         TE_ST156S_TAB = lt_te_st156s_tab
    EXCEPTIONS
        INCONSISTENT_ENTRIES = 1
        NO_ENTRIES_FOUND = 2
. " MB_CONTROL_MOVETYPE_GET




ABAP code using 7.40 inline data declarations to call FM MB_CONTROL_MOVETYPE_GET

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 MANDT FROM T001 INTO @DATA(ld_i_mandt).
DATA(ld_i_mandt) = SY-MANDT.
 
 
 
 
"SELECT single BWART FROM T156SC INTO @DATA(ld_i_bwart).
DATA(ld_i_bwart) = '*'.
 
 
"SELECT single WERTU FROM T156SC INTO @DATA(ld_i_wertu).
DATA(ld_i_wertu) = '*'.
 
"SELECT single MENGU FROM T156SC INTO @DATA(ld_i_mengu).
DATA(ld_i_mengu) = '*'.
 
"SELECT single SOBKZ FROM T156SC INTO @DATA(ld_i_sobkz).
DATA(ld_i_sobkz) = '*'.
 
"SELECT single KZBEW FROM T156SC INTO @DATA(ld_i_kzbew).
DATA(ld_i_kzbew) = '*'.
 
"SELECT single KZZUG FROM T156SC INTO @DATA(ld_i_kzzug).
DATA(ld_i_kzzug) = '*'.
 
"SELECT single KZVBR FROM T156SC INTO @DATA(ld_i_kzvbr).
DATA(ld_i_kzvbr) = '*'.
 


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!