MCHAR SAP (Table for Transferring to SAPLMBIN for Batch/Stock Selection) Structure details
Description: Table for Transferring to SAPLMBIN for Batch/Stock Selection
Structure field list including key, data, relationships and ABAP select examples
MCHAR is a standard SAP Structure so does not store data like a database table does. It can be used to define the fields of other actual tables or to process "Table for Transferring to SAPLMBIN for Batch/Stock Selection" Information within sap ABAP programs.
This is done by declaring abap internal tables, work areas or database tables based on this Structure. These can then be used to store and process the required data appropriately.
i.e. DATA: wa_MCHAR TYPE MCHAR.
The MCHAR table consists of various fields, each holding specific information or linking keys about Table for Transferring to SAPLMBIN for Batch/Stock Selection data available in SAP. These include ZEILC (Line Number), MATNR (Material Number), WERKS (Plant), LGORT (Storage Location).. 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:Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Can be enhanced (character-type or numeric)
SAP MCHAR structure 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 |
ZEILC | Line Number | DZEILE | NUMC | 3 | ZEILE | POS | |||
MATNR | Material Number | MATNR | CHAR | 18 | MARA | MATN1 | MATNR | MAT | S_MAT1 |
WERKS | Plant | WERKS_D | CHAR | 4 | T001W | WERKS | WRK | H_T001W_C | |
LGORT | Storage Location | LGORT_D | CHAR | 4 | T001L | LGORT | LAG | ||
CHARG | Batch Number | CHARG_D | CHAR | 10 | MCHA | CHARG | CHA | ||
BWTAR | Valuation Type | BWTAR_D | CHAR | 10 | T149D | BWTAR | BWT | ||
CLABS | Valuated Unrestricted-Use Stock | LABST | QUAN | 13(3) | MENG13V | ||||
MENGE | Quantity | MENGE_D | QUAN | 13(3) | MENG13 | ||||
MEINS | Base Unit of Measure | MEINS | UNIT | 3 | T006 | CUNIT | MEINS | ||
ERFMG | Quantity | MENGE_D | QUAN | 13(3) | MENG13 | ||||
ERFME | Base Unit of Measure | MEINS | UNIT | 3 | T006 | CUNIT | MEINS | ||
ZUSTD | Batch in Restricted-Use Stock | DZUSTD | CHAR | 1 | XFELD | ||||
ZUSCH | Batch status key | DZUSCH | CHAR | 1 | ZUSCH | ||||
BSTAR | Stock type | BSTAR | CHAR | 1 | T064B | BSTAR | |||
SPERC | Physical Inventory Blocking Indicator | SPERR | CHAR | 1 | SPERR | ||||
XSELK | Item selected (selected, chosen, ...) | XSELP | CHAR | 1 | XFELD | ||||
KZICL | Physical inventory indicator for whse stock in current year | KZILL | CHAR | 3 | INVKZ | ||||
KZVCL | Physical inventory indicator for whse stock in current year | KZILL | CHAR | 3 | INVKZ | ||||
KZICQ | Physical inventory indicator for whse stock in current year | KZILL | CHAR | 3 | INVKZ | ||||
KZVCQ | Physical inventory indicator for whse stock in current year | KZILL | CHAR | 3 | INVKZ | ||||
KZICS | Physical inventory indicator for whse stock in current year | KZILL | CHAR | 3 | INVKZ | ||||
KZVCS | Physical inventory indicator for whse stock in current year | KZILL | CHAR | 3 | INVKZ | ||||
VERAB | Availability date | VERAB | DATS | 8 | DATUM | ||||
VFDAT | Shelf Life Expiration or Best-Before Date | VFDAT | DATS | 8 | DATUM | ||||
LVOCA | Deletion Flag for All Data on a Batch at a Plant | LVOCA | CHAR | 1 | XFELD | ||||
HERKR | Region of origin of material (non-preferential origin) | HERKR | CHAR | 3 | Assigned to domain | REGIO | |||
HERKL | Country of origin of the material | HERKL | CHAR | 3 | Assigned to domain | LAND1 | LND | ||
MTVER | Export/import material group | MTVER | CHAR | 4 | Assigned to domain | MTVER | |||
LIFCH | Vendor Account Number | ELIFN | CHAR | 10 | Assigned to domain | ALPHA | LIFNR | LIF | KRED_C |
LICHA | Vendor Batch Number | LICHN | CHAR | 15 | LICHN | ||||
QNDAT | Next Inspection Date | QNPDAT | DATS | 8 | DATUM | ||||
ZAEDT | Date of last status change | DZAEDT | DATS | 8 | DATUM | ||||
FVDT1 | Date for unrestricted use | FVDAT | DATS | 8 | DATUM | ||||
FVDT2 | Date for unrestricted use | FVDAT | DATS | 8 | DATUM | ||||
FVDT3 | Date for unrestricted use | FVDAT | DATS | 8 | DATUM | ||||
FVDT4 | Date for unrestricted use | FVDAT | DATS | 8 | DATUM | ||||
FVDT5 | Date for unrestricted use | FVDAT | DATS | 8 | DATUM | ||||
FVDT6 | Date for unrestricted use | FVDAT | DATS | 8 | DATUM | ||||
LVOCB | Deletion Flag for All Data on a Batch Stock | LVOCB | CHAR | 1 | XFELD | ||||
HSDAT | Date of Manufacture | HSDAT | DATS | 8 | DATUM | ||||
LWEDT | Date of last goods receipt | LWEDT | DATS | 8 | DATUM | ||||
ERSDA | Created On | ERSDA | DATS | 8 | DATUM |
Key field | Non-key field |
How do I retrieve data from SAP structure MCHAR using ABAP code?
As MCHAR is a database structure and not a table it does not store any data in the SAP data dictionary. The ABAP SELECT statement is therefore not appropriate and can not be performed on MCHAR as there is no data to select.How to access SAP table MCHAR
Within an ECC or HANA version of SAP you can also view further information about MCHAR 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