I_BatchVH
Batch
I_BatchVH is a Composite CDS View that provides data about "Batch" in SAP S/4HANA. It reads from 9 data sources and exposes 90 fields with key fields Material, Batch, Material, Batch, Material. It has 4 associations to related views.
Data Sources (9)
| Source | Alias | Join Type |
|---|---|---|
| I_BatchConfiguration | I_BatchConfiguration | inner |
| I_BatchConfiguration | I_BatchConfiguration | inner |
| I_BatchConfiguration | I_BatchConfiguration | inner |
| I_BatchCrossPlant | I_BatchCrossPlant | from |
| I_BatchCrossPlant | I_BatchCrossPlant | left_outer |
| I_BatchPlant | I_BatchPlant | union_all |
| I_BatchPlant | I_BatchPlant | union_all |
| I_MaterialPlant | I_MaterialPlant | inner |
| I_MaterialPlant | I_MaterialPlant | inner |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [1..1] | I_Product | _Product | $projection.Material = _Product.Product |
| [0..1] | I_ClfnObjectClassForKeyDate | _ClfnObjectClassForKeyDate | $projection.ClfnObjectInternalID = _ClfnObjectClassForKeyDate.ClfnObjectInternalID |
| [0..*] | I_ClfnObjectCharcValForKeyDate | _ClfnObjectCharcValForKeyDate | $projection.ClfnObjectInternalID = _ClfnObjectCharcValForKeyDate.ClfnObjectInternalID |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IBATCHVH | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| EndUserText.label | Batch | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.dataCategory | #VALUE_HELP | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.representativeKey | Batch | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Search.searchable | true | view | |
| Consumption.ranked | true | view | |
| VDM.private | false | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view |
Fields (90)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Material | Material | Vehicle Model | |
| KEY | Batch | Batch | Lot No. | |
| BatchIsMarkedForDeletion | BatchIsMarkedForDeletion | Stock del. flag | ||
| MatlBatchIsInRstrcdUseStock | MatlBatchIsInRstrcdUseStock | Batch restr. | ||
| Supplier | Supplier | Supplier | ||
| BatchBySupplier | BatchBySupplier | Supplier Batch | ||
| CountryOfOrigin | CountryOfOrigin | Country/Region of Origin | ||
| RegionOfOrigin | RegionOfOrigin | Reg. of Origin | ||
| MatlBatchAvailabilityDate | MatlBatchAvailabilityDate | Available from | ||
| ShelfLifeExpirationDate | ShelfLifeExpirationDate | SLED/BBD | ||
| ManufactureDate | ManufactureDate | Date of Manuf. | ||
| FreeDefinedDate1 | FreeDefinedDate1 | |||
| FreeDefinedDate2 | FreeDefinedDate2 | |||
| FreeDefinedDate3 | FreeDefinedDate3 | |||
| FreeDefinedDate4 | FreeDefinedDate4 | |||
| FreeDefinedDate5 | FreeDefinedDate5 | |||
| FreeDefinedDate6 | FreeDefinedDate6 | |||
| DefinitionOfBatchLevel | DefinitionOfBatchLevel | |||
| CreationDateTime | CreationDateTime | Timestamp | ||
| LastChangeDateTime | LastChangeDateTime | Timestamp | ||
| ClfnObjectInternalID | ClfnObjectInternalID | Int. Object No. | ||
| BatchExtWhseMgmtInternalId | BatchExtWhseMgmtInternalId | UUID | ||
| _Plant | _Plant | |||
| _Material | _Material | |||
| _Supplier | _Supplier | |||
| _CountryOfOrigin | _CountryOfOrigin | |||
| _RegionOfOrigin | _RegionOfOrigin | |||
| _Product | _Product | |||
| _ClfnObjectClassForKeyDate | _ClfnObjectClassForKeyDate | |||
| Plant | ||||
| KEY | Material | I_BatchPlant | Material | Vehicle Model |
| KEY | Batch | Batch | Lot No. | |
| BatchIsMarkedForDeletion | BatchIsMarkedForDeletion | Stock del. flag | ||
| MatlBatchIsInRstrcdUseStock | MatlBatchIsInRstrcdUseStock | Batch restr. | ||
| Supplier | Supplier | Supplier | ||
| BatchBySupplier | BatchBySupplier | Supplier Batch | ||
| CountryOfOrigin | I_BatchPlant | CountryOfOrigin | Country/Region of Origin | |
| RegionOfOrigin | I_BatchPlant | RegionOfOrigin | Reg. of Origin | |
| MatlBatchAvailabilityDate | MatlBatchAvailabilityDate | Available from | ||
| ShelfLifeExpirationDate | ShelfLifeExpirationDate | SLED/BBD | ||
| ManufactureDate | ManufactureDate | Date of Manuf. | ||
| FreeDefinedDate1 | FreeDefinedDate1 | |||
| FreeDefinedDate2 | FreeDefinedDate2 | |||
| FreeDefinedDate3 | FreeDefinedDate3 | |||
| FreeDefinedDate4 | FreeDefinedDate4 | |||
| FreeDefinedDate5 | FreeDefinedDate5 | |||
| FreeDefinedDate6 | FreeDefinedDate6 | |||
| DefinitionOfBatchLevel | DefinitionOfBatchLevel | |||
| CreationDateTime | CreationDateTime | Timestamp | ||
| LastChangeDateTime | LastChangeDateTime | Timestamp | ||
| ClfnObjectInternalID | ClfnObjectInternalID | Int. Object No. | ||
| BatchExtWhseMgmtInternalId | BatchExtWhseMgmtInternalId | UUID | ||
| _Plant | I_BatchPlant | _Plant | ||
| _Material | I_BatchPlant | _Material | ||
| _Supplier | _Supplier | |||
| _CountryOfOrigin | _CountryOfOrigin | |||
| _RegionOfOrigin | _RegionOfOrigin | |||
| _Product | _Product | |||
| _ClfnObjectClassForKeyDate | _ClfnObjectClassForKeyDate | |||
| Plant | ||||
| KEY | Material | I_BatchPlant | Material | Vehicle Model |
| KEY | Batch | I_BatchPlant | Batch | Lot No. |
| BatchIsMarkedForDeletion | I_BatchCrossPlant | BatchIsMarkedForDeletion | Stock del. flag | |
| MatlBatchIsInRstrcdUseStock | I_BatchCrossPlant | MatlBatchIsInRstrcdUseStock | Batch restr. | |
| Supplier | I_BatchCrossPlant | Supplier | Supplier | |
| BatchBySupplier | I_BatchCrossPlant | BatchBySupplier | Supplier Batch | |
| CountryOfOrigin | I_BatchCrossPlant | CountryOfOrigin | Country/Region of Origin | |
| RegionOfOrigin | I_BatchCrossPlant | RegionOfOrigin | Reg. of Origin | |
| MatlBatchAvailabilityDate | I_BatchCrossPlant | MatlBatchAvailabilityDate | Available from | |
| ShelfLifeExpirationDate | I_BatchCrossPlant | ShelfLifeExpirationDate | SLED/BBD | |
| ManufactureDate | I_BatchCrossPlant | ManufactureDate | Date of Manuf. | |
| FreeDefinedDate1 | I_BatchCrossPlant | FreeDefinedDate1 | ||
| FreeDefinedDate2 | I_BatchCrossPlant | FreeDefinedDate2 | ||
| FreeDefinedDate3 | I_BatchCrossPlant | FreeDefinedDate3 | ||
| FreeDefinedDate4 | I_BatchCrossPlant | FreeDefinedDate4 | ||
| FreeDefinedDate5 | I_BatchCrossPlant | FreeDefinedDate5 | ||
| FreeDefinedDate6 | I_BatchCrossPlant | FreeDefinedDate6 | ||
| DefinitionOfBatchLevel | ||||
| CreationDateTime | I_BatchPlant | CreationDateTime | Timestamp | |
| LastChangeDateTime | I_BatchPlant | LastChangeDateTime | Timestamp | |
| ClfnObjectInternalID | I_BatchCrossPlant | ClfnObjectInternalID | Int. Object No. | |
| BatchExtWhseMgmtInternalId | I_BatchPlant | BatchExtWhseMgmtInternalId | UUID | |
| _Plant | I_BatchPlant | _Plant | ||
| _Material | I_BatchPlant | _Material | ||
| _Supplier | I_BatchCrossPlant | _Supplier | ||
| _CountryOfOrigin | I_BatchCrossPlant | _CountryOfOrigin | ||
| _RegionOfOrigin | I_BatchCrossPlant | _RegionOfOrigin | ||
| _Product | _Product | |||
| _ClfnObjectClassForKeyDate | _ClfnObjectClassForKeyDate | |||
| _ClfnObjectCharcValForKeyDate | _ClfnObjectCharcValForKeyDate |
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_BatchVH.
-- 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: IBATCHVH
CREATE VIEW I_BatchVH AS
SELECT
Material,
Batch,
BatchIsMarkedForDeletion,
MatlBatchIsInRstrcdUseStock,
Supplier,
BatchBySupplier,
CountryOfOrigin,
RegionOfOrigin,
MatlBatchAvailabilityDate,
ShelfLifeExpirationDate,
ManufactureDate,
FreeDefinedDate1,
FreeDefinedDate2,
FreeDefinedDate3,
FreeDefinedDate4,
FreeDefinedDate5,
FreeDefinedDate6,
DefinitionOfBatchLevel,
CreationDateTime,
LastChangeDateTime,
ClfnObjectInternalID,
BatchExtWhseMgmtInternalId,
I_BatchPlant._Plant AS _Plant,
I_BatchPlant._Material AS _Material,
I_BatchCrossPlant._Supplier AS _Supplier,
I_BatchCrossPlant._CountryOfOrigin AS _CountryOfOrigin,
I_BatchCrossPlant._RegionOfOrigin AS _RegionOfOrigin
FROM I_BatchCrossPlant
INNER JOIN I_BatchConfiguration ON /* join condition not captured in parsed metadata */
INNER JOIN I_MaterialPlant ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_BatchCrossPlant ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant -- association [0..1]
LEFT OUTER JOIN I_Product AS _Product ON Material = _Product.Product -- association [1..1]
LEFT OUTER JOIN I_ClfnObjectClassForKeyDate AS _ClfnObjectClassForKeyDate ON ClfnObjectInternalID = _ClfnObjectClassForKeyDate.ClfnObjectInternalID -- association [0..1]
LEFT OUTER JOIN I_ClfnObjectCharcValForKeyDate AS _ClfnObjectCharcValForKeyDate ON ClfnObjectInternalID = _ClfnObjectCharcValForKeyDate.ClfnObjectInternalID -- association [0..*]
-- UNION ALL with additional select branch(es): I_BatchPlant
;
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