I_BatchCrossPlant
Batch in table MCH1 without WERKS key
I_BatchCrossPlant is a Basic CDS View that provides data about "Batch in table MCH1 without WERKS key" in SAP S/4HANA. It reads from 1 data source (mch1) and exposes 34 fields with key fields Material, Batch. It has 8 associations to related views. Part of development package LO_BM_BATCH_DB.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| mch1 | mch1 | from |
Associations (8)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Material | _Material | $projection.Material = _Material.Material |
| [1..1] | I_Product | _Product | $projection.Material = _Product.Product |
| [0..*] | I_BusinessPartnerSupplier | _BusinessPartnerSupplier | $projection.Supplier = _BusinessPartnerSupplier.Supplier |
| [0..1] | I_Country | _CountryOfOrigin | $projection.CountryOfOrigin = _CountryOfOrigin.Country |
| [0..1] | I_Region | _RegionOfOrigin | $projection.RegionOfOrigin = _RegionOfOrigin.Region and $projection.CountryOfOrigin = _RegionOfOrigin.Country |
| [0..1] | I_Supplier | _Supplier | $projection.Supplier = _Supplier.Supplier |
| [1..1] | I_MatlBatchIsInRstrcdUseStock | _MatlBatchIsInRstrcdUseStock | $projection.MatlBatchIsInRstrcdUseStock = _MatlBatchIsInRstrcdUseStock.MatlBatchIsInRstrcdUseStock |
| [0..*] | I_BatchPlant | _BatchPlant | $projection.Material = _BatchPlant.Material and $projection.Batch = _BatchPlant.Batch |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IBATCHCROSSPLANT | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| EndUserText.label | Batch in table MCH1 without WERKS key | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.private | false | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view |
Fields (34)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Material | matnr | Vehicle Model | |
| KEY | Batch | charg | Chargeable Proc. | |
| BatchIsMarkedForDeletion | lvorm | Stock del. flag | ||
| MatlBatchIsInRstrcdUseStock | zustd | Dummy | ||
| Supplier | lifnr | Vendor no. | ||
| BatchBySupplier | licha | Supplier Batch | ||
| CountryOfOrigin | herkl | C/R of Origin | ||
| RegionOfOrigin | herkr | Reg. of Origin | ||
| MatlBatchAvailabilityDate | verab | Available from | ||
| ShelfLifeExpirationDate | vfdat | SLED/BBD | ||
| ManufactureDate | hsdat | Date of Manuf. | ||
| NextInspectionDate | qndat | Next Inspection | ||
| LastGoodsReceiptDate | lwedt | Last goods rec. | ||
| FreeDefinedDate1 | Date | |||
| FreeDefinedDate2 | Date | |||
| FreeDefinedDate3 | Date | |||
| FreeDefinedDate4 | Date | |||
| FreeDefinedDate5 | Date | |||
| FreeDefinedDate6 | Date | |||
| BatchCertificationDate | zfdat | Certif.on | ||
| LastChangeDateTime | lastchange_datetime | Time Stamp | ||
| ClfnObjectInternalID | cuobj_bm | Int. Object No. | ||
| BatchExtWhseMgmtInternalId | batch_id | UUID | ||
| StockSegment | sgt_scat | Stock Segment | ||
| ExportAndImportProductGroup | mtver | Intrastat Group | ||
| BatchVersion | version | XML Vers. | ||
| _Material | _Material | |||
| _Supplier | _Supplier | |||
| _BusinessPartnerSupplier | _BusinessPartnerSupplier | |||
| _CountryOfOrigin | _CountryOfOrigin | |||
| _RegionOfOrigin | _RegionOfOrigin | |||
| _Product | _Product | |||
| _MatlBatchIsInRstrcdUseStock | _MatlBatchIsInRstrcdUseStock | |||
| _BatchPlant | _BatchPlant |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view I_BatchCrossPlant.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: IBATCHCROSSPLANT
CREATE VIEW I_BatchCrossPlant AS
SELECT
matnr AS Material,
charg AS Batch,
lvorm AS BatchIsMarkedForDeletion,
zustd AS MatlBatchIsInRstrcdUseStock,
lifnr AS Supplier,
licha AS BatchBySupplier,
herkl AS CountryOfOrigin,
herkr AS RegionOfOrigin,
verab AS MatlBatchAvailabilityDate,
vfdat AS ShelfLifeExpirationDate,
hsdat AS ManufactureDate,
qndat AS NextInspectionDate,
lwedt AS LastGoodsReceiptDate,
cast(fvdt1 as batch_date_for_free_use_1 preserving type) AS FreeDefinedDate1,
cast(fvdt2 as batch_date_for_free_use_2 preserving type) AS FreeDefinedDate2,
cast(fvdt3 as batch_date_for_free_use_3 preserving type) AS FreeDefinedDate3,
cast(fvdt4 as batch_date_for_free_use_4 preserving type) AS FreeDefinedDate4,
cast(fvdt5 as batch_date_for_free_use_5 preserving type) AS FreeDefinedDate5,
cast(fvdt6 as batch_date_for_free_use_6 preserving type) AS FreeDefinedDate6,
zfdat AS BatchCertificationDate,
lastchange_datetime AS LastChangeDateTime,
cuobj_bm AS ClfnObjectInternalID,
batch_id AS BatchExtWhseMgmtInternalId,
sgt_scat AS StockSegment,
mtver AS ExportAndImportProductGroup,
version AS BatchVersion
FROM mch1
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material -- association [1..1]
LEFT OUTER JOIN I_Product AS _Product ON Material = _Product.Product -- association [1..1]
LEFT OUTER JOIN I_BusinessPartnerSupplier AS _BusinessPartnerSupplier ON Supplier = _BusinessPartnerSupplier.Supplier -- association [0..*]
LEFT OUTER JOIN I_Country AS _CountryOfOrigin ON CountryOfOrigin = _CountryOfOrigin.Country -- association [0..1]
LEFT OUTER JOIN I_Region AS _RegionOfOrigin ON RegionOfOrigin = _RegionOfOrigin.Region AND CountryOfOrigin = _RegionOfOrigin.Country -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier -- association [0..1]
LEFT OUTER JOIN I_MatlBatchIsInRstrcdUseStock AS _MatlBatchIsInRstrcdUseStock ON MatlBatchIsInRstrcdUseStock = _MatlBatchIsInRstrcdUseStock.MatlBatchIsInRstrcdUseStock -- association [1..1]
LEFT OUTER JOIN I_BatchPlant AS _BatchPlant ON Material = _BatchPlant.Material AND Batch = _BatchPlant.Batch -- association [0..*]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA