C_BatchCertificate
C_BatchCertificate is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_Batch) and exposes 39 fields with key fields Batch, Material, Plant. It has 3 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_Batch | Batches | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1] | I_MaterialText | _MaterialText | Batches.Material = _MaterialText.Material and _MaterialText.Language = $session.system_language |
| [1..1] | I_Product | _Product | $projection.Material = _Product.Product |
| [1..1] | I_CountryText | _CountryText | $projection.Country = _CountryText.Country and _CountryText.Language = $session.system_language |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CBATCHCERTI | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| UI.headerInfo.title.type | #STANDARD | view | |
| UI.headerInfo.title.value | Batch | view | |
| UI.headerInfo.description.type | #STANDARD | view | |
| UI.headerInfo.description.value | BatchShortDescription | view | |
| UI.headerInfo.typeNamePlural | Batches | view | |
| Search.searchable | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.updateEnabled | true | view |
Fields (39)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Batch | I_Batch | Batch | Lot No. |
| KEY | Material | I_Batch | Material | Vehicle Model |
| KEY | Plant | I_Batch | Plant | Valuation Area |
| MaterialName | _MaterialText | MaterialName | Material Description | |
| PlantName | Plant Description | |||
| BatchIsMarkedForDeletion | I_Batch | BatchIsMarkedForDeletion | ||
| MatlBatchIsInRstrcdUseStock | I_Batch | MatlBatchIsInRstrcdUseStock | Batch restr. | |
| Supplier | I_Batch | Supplier | Supplier | |
| BatchBySupplier | I_Batch | BatchBySupplier | Supplier Batch | |
| CountryOfOrigin | I_Batch | CountryOfOrigin | Country/Region of Origin | |
| RegionOfOrigin | I_Batch | RegionOfOrigin | Reg. of Origin | |
| MatlBatchAvailabilityDate | I_Batch | MatlBatchAvailabilityDate | ||
| ShelfLifeExpirationDate | I_Batch | ShelfLifeExpirationDate | SLED/BBD | |
| ManufactureDate | I_Batch | ManufactureDate | Date of Manuf. | |
| NextInspectionDate | I_Batch | NextInspectionDate | ||
| LastGoodsReceiptDate | I_Batch | LastGoodsReceiptDate | ||
| IsSubordinateBatch | I_Batch | IsSubordinateBatch | ||
| BatchIdentifyingPlant | I_Batch | BatchIdentifyingPlant | Plant | |
| CreationDateTime | I_Batch | CreationDateTime | Timestamp | |
| LastChangeDateTime | I_Batch | LastChangeDateTime | Timestamp | |
| ClfnObjectInternalID | I_Batch | ClfnObjectInternalID | ||
| BatchExtWhseMgmtInternalId | I_Batch | BatchExtWhseMgmtInternalId | ||
| StockSegment | I_Batch | StockSegment | Stock Segment | |
| InventoryValuationType | I_Batch | InventoryValuationType | Valuation Type | |
| BatchShortDescription | ||||
| Customer | ||||
| CustomerName | ||||
| Country | ||||
| CityName | ||||
| PostalCode | ||||
| EmailAddress | ||||
| QltyCertificateProfile | ||||
| QualityCertificateType | ||||
| QltyCertProfileVersion | ||||
| QltyCertRecipientNumber | ||||
| QltyCertRecipientType | ||||
| _MaterialText | _MaterialText | |||
| _Product | _Product | |||
| _CountryText | _CountryText |
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 C_BatchCertificate.
-- 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: CBATCHCERTI
CREATE VIEW C_BatchCertificate AS
SELECT
Batches.Batch AS Batch,
Batches.Material AS Material,
Batches.Plant AS Plant,
_MaterialText.MaterialName AS MaterialName,
Batches._Plant.PlantName AS PlantName,
Batches.BatchIsMarkedForDeletion AS BatchIsMarkedForDeletion,
Batches.MatlBatchIsInRstrcdUseStock AS MatlBatchIsInRstrcdUseStock,
Batches.Supplier AS Supplier,
Batches.BatchBySupplier AS BatchBySupplier,
Batches.CountryOfOrigin AS CountryOfOrigin,
Batches.RegionOfOrigin AS RegionOfOrigin,
Batches.MatlBatchAvailabilityDate AS MatlBatchAvailabilityDate,
Batches.ShelfLifeExpirationDate AS ShelfLifeExpirationDate,
Batches.ManufactureDate AS ManufactureDate,
Batches.NextInspectionDate AS NextInspectionDate,
Batches.LastGoodsReceiptDate AS LastGoodsReceiptDate,
Batches.IsSubordinateBatch AS IsSubordinateBatch,
Batches.BatchIdentifyingPlant AS BatchIdentifyingPlant,
Batches.CreationDateTime AS CreationDateTime,
Batches.LastChangeDateTime AS LastChangeDateTime,
Batches.ClfnObjectInternalID AS ClfnObjectInternalID,
Batches.BatchExtWhseMgmtInternalId AS BatchExtWhseMgmtInternalId,
Batches.StockSegment AS StockSegment,
Batches.InventoryValuationType AS InventoryValuationType,
cast( '' as kztxt_batch ) AS BatchShortDescription,
cast( '' as kunnr ) AS Customer,
cast( '' as md_customer_name ) AS CustomerName,
cast( '' as land1_gp ) AS Country,
cast( '' as ort01_gp ) AS CityName,
cast( '' as pstlz ) AS PostalCode,
cast( '' as ad_smtpadr ) AS EmailAddress,
cast( '' as qvorlnr ) AS QltyCertificateProfile,
cast( '' as qzgtyp ) AS QualityCertificateType,
cast( '' as qcversion ) AS QltyCertProfileVersion,
cast ( '' as na_parnr ) AS QltyCertRecipientNumber,
cast( '' as qc_recipient_type ) AS QltyCertRecipientType
FROM I_Batch AS Batches
LEFT OUTER JOIN I_MaterialText AS _MaterialText ON Batches.Material = _MaterialText.Material AND _MaterialText.Language = $session.system_language -- association [1]
LEFT OUTER JOIN I_Product AS _Product ON Material = _Product.Product -- association [1..1]
LEFT OUTER JOIN I_CountryText AS _CountryText ON Country = _CountryText.Country AND _CountryText.Language = $session.system_language -- association [1..1]
;
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