MCHB SAP (Batch Stocks) Table details
Dictionary Type: Table
Description: Batch Stocks
Description: Batch Stocks
Table field list including key, data, relationships and ABAP select examples
MCHB is a standard SAP Table which is used to store Batch Stocks data and is available within R/3 SAP systems depending on the version and release level.
The MCHB table consists of various fields, each holding specific information or linking keys about Batch Stocks data available in SAP. These include MATNR (Material Number), WERKS (Plant), LGORT (Storage Location), CHARG (Batch Number).. See below for full list along with technical details, documentation, text table, check tables, foreign key relationships, conversion routines, relevant tcodes and example ABAP select code etc. .
Delivery Class: A - Application table (master and transaction data)Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Can be enhanced (character-type or numeric)
SAP MCHB table fields - Full list of fields found in SAP data dictionary
Field | Description | Data Element | Data Type | length (Dec) | Check table | Conversion Routine | Domain Name | MemoryID | SHLP |
MANDT | Client | MANDT | CLNT | 3 | T000 | MANDT | |||
MATNR | Material Number | MATNR | CHAR | 18 | MARA | MATN1 | MATNR | MAT | S_MAT1 |
WERKS | Plant | WERKS_D | CHAR | 4 | MARC | WERKS | WRK | H_T001W_C | |
LGORT | Storage Location | LGORT_D | CHAR | 4 | MARD | LGORT | LAG | ||
CHARG | Batch Number | CHARG_D | CHAR | 10 | MCHA | CHARG | CHA | ||
LVORM | Deletion Flag for All Data on a Batch Stock | LVOCB | CHAR | 1 | XFELD | ||||
ERSDA | Created On | ERSDA | DATS | 8 | DATUM | ||||
ERNAM | Name of Person who Created the Object | ERNAM | CHAR | 12 | USNAM | ||||
LAEDA | Date of Last Change | LAEDA | DATS | 8 | DATUM | ||||
AENAM | Name of Person Who Changed Object | AENAM | CHAR | 12 | USNAM | ||||
LFGJA | Fiscal Year of Current Period | LFGJA | NUMC | 4 | GJAHR | GJAHR | |||
LFMON | Current period (posting period) | LFMON | NUMC | 2 | MONAT | ||||
SPERC | Physical Inventory Blocking Indicator | SPERR | CHAR | 1 | SPERR | ||||
CLABS | Valuated Unrestricted-Use Stock | LABST | QUAN | 13(3) | MENG13V | ||||
CUMLM | Stock in transfer (from one storage location to another) | UMLMD | QUAN | 13(3) | MENG13V | ||||
CINSM | Stock in Quality Inspection | INSME | QUAN | 13(3) | MENG13V | ||||
CEINM | Total Stock of All Restricted Batches | EINME | QUAN | 13(3) | MENG13V | ||||
CSPEM | Blocked Stock | SPEME | QUAN | 13(3) | MENG13V | ||||
CRETM | Blocked Stock Returns | RETME | QUAN | 13(3) | MENG13V | ||||
CVMLA | Valuated unrestricted-use stock in previous period | VMLAB | QUAN | 13(3) | MENG13V | ||||
CVMUM | Stock in Transfer in Previous Period | VMUML | QUAN | 13(3) | MENG13V | ||||
CVMIN | Stock in Quality Inspection in Previous Period | VMINS | QUAN | 13(3) | MENG13V | ||||
CVMEI | Restricted-Use Stock in Previous Period | VMEIN | QUAN | 13(3) | MENG13V | ||||
CVMSP | Blocked stock of previous period | VMSPE | QUAN | 13(3) | MENG13V | ||||
CVMRE | Blocked Stock Returns in Previous Period | VMRET | QUAN | 13(3) | MENG13V | ||||
KZICL | Physical inventory indicator for whse stock in current year | KZILL | CHAR | 3 | INVKZ | ||||
KZICQ | Phys. inventory ind. f. stock in qual. insp. in current year | KZILQ | CHAR | 3 | INVKZ | ||||
KZICE | Physical inventory indicator for restricted-use stock | KZILE | CHAR | 3 | INVKZ | ||||
KZICS | Physical inventory indicator for blocked stock | KZILS | CHAR | 3 | INVKZ | ||||
KZVCL | Physical inventory indicator for stock in previous year | KZVLL | CHAR | 3 | INVKZ | ||||
KZVCQ | Phys. inventory ind. f. stock in qual. insp. in prev. period | KZVLQ | CHAR | 3 | INVKZ | ||||
KZVCE | Physical inventory ind. for restricted-use stock, prev.pd | KZVLE | CHAR | 3 | INVKZ | ||||
KZVCS | Phys. inventory indicator for blocked stock in prev. period | KZVLS | CHAR | 3 | INVKZ | ||||
HERKL | Country of origin of the material | HERKL | CHAR | 3 | T005 | LAND1 | LND | ||
CHDLL | Date of Last Posted Count for Unrestricted-Use Stock | DLINL | DATS | 8 | DATS | ||||
CHJIN | Fiscal year of current physical inventory indicator | GJINV | NUMC | 4 | GJAHR | GJAHR | |||
CHRUE | MCHBH rec. already exists for per. before last of MCHB per. | CHRUE | CHAR | 1 | XFELD |
Key field | Non-key field |
How do I retrieve data from SAP table MCHB using ABAP code
The following ABAP code Example will allow you to do a basic selection on MCHB to SELECT all data from the tableDATA: WA_MCHB TYPE MCHB.
SELECT SINGLE *
FROM MCHB
INTO CORRESPONDING FIELDS OF WA_MCHB
WHERE...
How to access SAP table MCHB
Within an ECC or HANA version of SAP you can also view further information about MCHB and the data within it using relevant transactions such asSE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).
Search for further information about these or an SAP related objects