C_BatchCertificate

DDL: C_BATCHCERTIFICATE SQL: CBATCHCERTI Type: view CONSUMPTION

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)

SourceAliasJoin Type
I_Batch Batches from

Associations (3)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;