SAP MB_SELECT_STOCK_IN_TRANSIT Function Module for DE-EN-LANG-SWITCH-NO-TRANSLATION









MB_SELECT_STOCK_IN_TRANSIT is a standard mb select stock in transit SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for DE-EN-LANG-SWITCH-NO-TRANSLATION 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 select stock in transit FM, simply by entering the name MB_SELECT_STOCK_IN_TRANSIT into the relevant SAP transaction such as SE37 or SE38.

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



Function MB_SELECT_STOCK_IN_TRANSIT 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_SELECT_STOCK_IN_TRANSIT'"DE-EN-LANG-SWITCH-NO-TRANSLATION
EXPORTING
I_WI_GM = "Goods Movements Posted to Unrestricted Use
* I_NO_ST = "Materials Without Valuated Goods Receipt Blocked Stock
I_CONDENSE = "Checkbox

TABLES
* T_RA_MATNR = "DE-EN-LANG-SWITCH-NO-TRANSLATION
T_RESULT = "Structure Interface Stock in Transit
* T_RA_DEL_IN = "Structure for Ranges Table for Sales Document
* T_RA_DEL_OUT = "Structure for Ranges Table for Sales Document
* T_RA_WERKS = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* T_RA_RESWK = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* T_RA_SOBKZ = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* T_RA_LIFNR = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* T_RA_EKGRP = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* T_RA_EKORG = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* T_RA_EBELN = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* T_RA_EBELP = "DE-EN-LANG-SWITCH-NO-TRANSLATION

EXCEPTIONS
PARAMETER_ERROR = 1 MISSING_AUTHORIZATION = 2
.



IMPORTING Parameters details for MB_SELECT_STOCK_IN_TRANSIT

I_WI_GM - Goods Movements Posted to Unrestricted Use

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

I_NO_ST - Materials Without Valuated Goods Receipt Blocked Stock

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

I_CONDENSE - Checkbox

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

TABLES Parameters details for MB_SELECT_STOCK_IN_TRANSIT

T_RA_MATNR - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: Yes
Call by Reference: Yes

T_RESULT - Structure Interface Stock in Transit

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

T_RA_DEL_IN - Structure for Ranges Table for Sales Document

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

T_RA_DEL_OUT - Structure for Ranges Table for Sales Document

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

T_RA_WERKS - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: Yes
Call by Reference: Yes

T_RA_RESWK - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: Yes
Call by Reference: Yes

T_RA_SOBKZ - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: Yes
Call by Reference: Yes

T_RA_LIFNR - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: Yes
Call by Reference: Yes

T_RA_EKGRP - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: Yes
Call by Reference: Yes

T_RA_EKORG - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: Yes
Call by Reference: Yes

T_RA_EBELN - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: Yes
Call by Reference: Yes

T_RA_EBELP - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

PARAMETER_ERROR - Parameter Error

Data type:
Optional: No
Call by Reference: Yes

MISSING_AUTHORIZATION - Authorization missing

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for MB_SELECT_STOCK_IN_TRANSIT 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_wi_gm  TYPE MB5SIT_WI_GM, "   
lt_t_ra_matnr  TYPE STANDARD TABLE OF MB5SIT_WI_GM, "   
lv_parameter_error  TYPE MB5SIT_WI_GM, "   
lt_t_result  TYPE STANDARD TABLE OF MB5SIT, "   
lt_t_ra_del_in  TYPE STANDARD TABLE OF SHP_VBELN_RANGE, "   
lt_t_ra_del_out  TYPE STANDARD TABLE OF SHP_VBELN_RANGE, "   
lv_i_no_st  TYPE MB5OA_NO_ST, "   
lt_t_ra_werks  TYPE STANDARD TABLE OF MB5OA_NO_ST, "   
lv_missing_authorization  TYPE MB5OA_NO_ST, "   
lv_i_condense  TYPE XFELD, "   
lt_t_ra_reswk  TYPE STANDARD TABLE OF XFELD, "   
lt_t_ra_sobkz  TYPE STANDARD TABLE OF XFELD, "   
lt_t_ra_lifnr  TYPE STANDARD TABLE OF XFELD, "   
lt_t_ra_ekgrp  TYPE STANDARD TABLE OF XFELD, "   
lt_t_ra_ekorg  TYPE STANDARD TABLE OF XFELD, "   
lt_t_ra_ebeln  TYPE STANDARD TABLE OF XFELD, "   
lt_t_ra_ebelp  TYPE STANDARD TABLE OF XFELD. "   

  CALL FUNCTION 'MB_SELECT_STOCK_IN_TRANSIT'  "DE-EN-LANG-SWITCH-NO-TRANSLATION
    EXPORTING
         I_WI_GM = lv_i_wi_gm
         I_NO_ST = lv_i_no_st
         I_CONDENSE = lv_i_condense
    TABLES
         T_RA_MATNR = lt_t_ra_matnr
         T_RESULT = lt_t_result
         T_RA_DEL_IN = lt_t_ra_del_in
         T_RA_DEL_OUT = lt_t_ra_del_out
         T_RA_WERKS = lt_t_ra_werks
         T_RA_RESWK = lt_t_ra_reswk
         T_RA_SOBKZ = lt_t_ra_sobkz
         T_RA_LIFNR = lt_t_ra_lifnr
         T_RA_EKGRP = lt_t_ra_ekgrp
         T_RA_EKORG = lt_t_ra_ekorg
         T_RA_EBELN = lt_t_ra_ebeln
         T_RA_EBELP = lt_t_ra_ebelp
    EXCEPTIONS
        PARAMETER_ERROR = 1
        MISSING_AUTHORIZATION = 2
. " MB_SELECT_STOCK_IN_TRANSIT




ABAP code using 7.40 inline data declarations to call FM MB_SELECT_STOCK_IN_TRANSIT

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.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!