I_BatchDistinctText

DDL: I_BATCHDISTINCTTEXT Type: view_entity COMPOSITE

Batch information by batch key - Text

I_BatchDistinctText (Composite)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Manufacturing

I_BatchDistinctText is a Composite CDS View that provides data about "Batch information by batch key - Text" in SAP S/4HANA. It reads from 1 data source (R_BatchText) and exposes 8 fields with key fields Language, Material, Plant, Batch. It has 2 associations to related views.

SAP API Hub

StateC1
Line of BusinessManufacturing
Application ComponentLO-BM-MD
CapabilitiesLanguage-Dependent Text, Data Source in SQL Select, Data Source for Defining CDS Entities, Association Target for Defining CDS Entities
PackageManufacturing for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view provides the prerequisites for answering the following business questions:</p> <ul> <li><p>When will the shelf life of the batch expire?</p></li> <li><p>To which supplier can a batch be traced?</p></li> <li><p>Where and when was the batch manufactured?</p></li> <li><p>Which batches are available for unrestricted use?</p></li> </ul>

Documentation

Data Sources (1)

SourceAliasJoin Type
R_BatchText R_BatchText from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[1..1] I_Product _Product $projection.Material = _Product.Product

Annotations (10)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Batch information by batch key - Text view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.dataCategory #TEXT view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
ObjectModel.representativeKey Batch view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY Language Language Report Text Language
KEY Material Material Material Number
KEY Plant BatchIdentifyingPlant Plant
KEY Batch Batch Batch Number
BatchDescription BatchDescription Batch Description
_Batch _Batch
_Product _Product
_Plant _Plant

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_BatchDistinctText.
-- 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.

CREATE VIEW I_BatchDistinctText AS
SELECT
  Language,
  Material,
  BatchIdentifyingPlant AS Plant,
  Batch,
  BatchDescription
FROM R_BatchText
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]
;