SAP ITOB_CHECK_MATERIAL_BATCH Function Module for NOTRANSL: L2: Erweiterte Chargenprüfung (Stammcharge)









ITOB_CHECK_MATERIAL_BATCH is a standard itob check material batch 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: L2: Erweiterte Chargenprüfung (Stammcharge) 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 itob check material batch FM, simply by entering the name ITOB_CHECK_MATERIAL_BATCH into the relevant SAP transaction such as SE37 or SE38.

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



Function ITOB_CHECK_MATERIAL_BATCH 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 'ITOB_CHECK_MATERIAL_BATCH'"NOTRANSL: L2: Erweiterte Chargenprüfung (Stammcharge)
EXPORTING
MATNR_IMP = "Material Number
* X_MESS_TYPE = 'E' "
BATCH_IMP = "
PLANT_IMP = "Plant
LOCAT_IMP = "Storage Location
* CHECK_LVORM = ' ' "
* DIALOG_MODE = 'X' "
* DIALOG_CURSOR = ' ' "
* DIALOG_STEPL = 0 "
* INIT_MESSAGE_DATA = 'X' "

IMPORTING
RESULT_EXP = "
MCHAR_EXP = "
MBEW_EXP = "
MTCOR_EXP = "

EXCEPTIONS
EMPTY_KEY = 1 APPLICATION_ERROR = 2
.



IMPORTING Parameters details for ITOB_CHECK_MATERIAL_BATCH

MATNR_IMP - Material Number

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

X_MESS_TYPE -

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

BATCH_IMP -

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

PLANT_IMP - Plant

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

LOCAT_IMP - Storage Location

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

CHECK_LVORM -

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

DIALOG_MODE -

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

DIALOG_CURSOR -

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

DIALOG_STEPL -

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

INIT_MESSAGE_DATA -

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

EXPORTING Parameters details for ITOB_CHECK_MATERIAL_BATCH

RESULT_EXP -

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

MCHAR_EXP -

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

MBEW_EXP -

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

MTCOR_EXP -

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

EXCEPTIONS details

EMPTY_KEY -

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

APPLICATION_ERROR -

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

Copy and paste ABAP code example for ITOB_CHECK_MATERIAL_BATCH 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_empty_key  TYPE STRING, "   
lv_matnr_imp  TYPE ITOB-MATNR, "   
lv_result_exp  TYPE I, "   
lv_x_mess_type  TYPE SY-MSGTY, "   'E'
lv_batch_imp  TYPE ITOB-CHARGE, "   
lv_mchar_exp  TYPE MCHAR, "   
lv_application_error  TYPE MCHAR, "   
lv_mbew_exp  TYPE MBEW, "   
lv_plant_imp  TYPE ITOB-WERK, "   
lv_locat_imp  TYPE ITOB-LAGER, "   
lv_mtcor_exp  TYPE MTCOR, "   
lv_check_lvorm  TYPE SY-BINPT, "   ' '
lv_dialog_mode  TYPE SY-BINPT, "   'X'
lv_dialog_cursor  TYPE DD03D-FIELDNAME, "   SPACE
lv_dialog_stepl  TYPE SY-STEPL, "   0
lv_init_message_data  TYPE SY-BINPT. "   'X'

  CALL FUNCTION 'ITOB_CHECK_MATERIAL_BATCH'  "NOTRANSL: L2: Erweiterte Chargenprüfung (Stammcharge)
    EXPORTING
         MATNR_IMP = lv_matnr_imp
         X_MESS_TYPE = lv_x_mess_type
         BATCH_IMP = lv_batch_imp
         PLANT_IMP = lv_plant_imp
         LOCAT_IMP = lv_locat_imp
         CHECK_LVORM = lv_check_lvorm
         DIALOG_MODE = lv_dialog_mode
         DIALOG_CURSOR = lv_dialog_cursor
         DIALOG_STEPL = lv_dialog_stepl
         INIT_MESSAGE_DATA = lv_init_message_data
    IMPORTING
         RESULT_EXP = lv_result_exp
         MCHAR_EXP = lv_mchar_exp
         MBEW_EXP = lv_mbew_exp
         MTCOR_EXP = lv_mtcor_exp
    EXCEPTIONS
        EMPTY_KEY = 1
        APPLICATION_ERROR = 2
. " ITOB_CHECK_MATERIAL_BATCH




ABAP code using 7.40 inline data declarations to call FM ITOB_CHECK_MATERIAL_BATCH

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 MATNR FROM ITOB INTO @DATA(ld_matnr_imp).
 
 
"SELECT single MSGTY FROM SY INTO @DATA(ld_x_mess_type).
DATA(ld_x_mess_type) = 'E'.
 
"SELECT single CHARGE FROM ITOB INTO @DATA(ld_batch_imp).
 
 
 
 
"SELECT single WERK FROM ITOB INTO @DATA(ld_plant_imp).
 
"SELECT single LAGER FROM ITOB INTO @DATA(ld_locat_imp).
 
 
"SELECT single BINPT FROM SY INTO @DATA(ld_check_lvorm).
DATA(ld_check_lvorm) = ' '.
 
"SELECT single BINPT FROM SY INTO @DATA(ld_dialog_mode).
DATA(ld_dialog_mode) = 'X'.
 
"SELECT single FIELDNAME FROM DD03D INTO @DATA(ld_dialog_cursor).
DATA(ld_dialog_cursor) = ' '.
 
"SELECT single STEPL FROM SY INTO @DATA(ld_dialog_stepl).
 
"SELECT single BINPT FROM SY INTO @DATA(ld_init_message_data).
DATA(ld_init_message_data) = 'X'.
 


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!