A_Batch

DDL: A_BATCH Type: view_entity CONSUMPTION

Batches

A_Batch is a Consumption CDS View that provides data about "Batches" in SAP S/4HANA. It reads from 1 data source (R_BatchTP) and exposes 22 fields with key fields Material, BatchIdentifyingPlant, Batch.

Data Sources (1)

SourceAliasJoin Type
R_BatchTP R_BatchTP projection

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label Batches view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.sapObjectNodeType.name Batch view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MASTER view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
VDM.viewType #CONSUMPTION view

Fields (22)

KeyFieldSource TableSource FieldDescription
KEY Material Material Vehicle Model
KEY BatchIdentifyingPlant BatchIdentifyingPlant Plant
KEY Batch Batch Lot No.
BatchIsMarkedForDeletion BatchIsMarkedForDeletion
MatlBatchIsInRstrcdUseStock MatlBatchIsInRstrcdUseStock Batch restr.
Supplier Supplier Supplier
BatchBySupplier BatchBySupplier Supplier Batch
CountryOfOrigin CountryOfOrigin Country/Region of Origin
RegionOfOrigin RegionOfOrigin Reg. of Origin
MatlBatchAvailabilityDate MatlBatchAvailabilityDate
ShelfLifeExpirationDate ShelfLifeExpirationDate SLED/BBD
ManufactureDate ManufactureDate Date of Manuf.
FreeDefinedDate1 FreeDefinedDate1
FreeDefinedDate2 FreeDefinedDate2
FreeDefinedDate3 FreeDefinedDate3
FreeDefinedDate4 FreeDefinedDate4
FreeDefinedDate5 FreeDefinedDate5
FreeDefinedDate6 FreeDefinedDate6
CreationDateTime CreationDateTime Timestamp
LastChangeDateTime LastChangeDateTime Timestamp
BatchExtWhseMgmtInternalId BatchExtWhseMgmtInternalId
_Product _Product

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 A_Batch.
-- 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 A_Batch AS
SELECT
  Material,
  BatchIdentifyingPlant,
  Batch,
  BatchIsMarkedForDeletion,
  MatlBatchIsInRstrcdUseStock,
  Supplier,
  BatchBySupplier,
  CountryOfOrigin,
  RegionOfOrigin,
  MatlBatchAvailabilityDate,
  ShelfLifeExpirationDate,
  ManufactureDate,
  FreeDefinedDate1,
  FreeDefinedDate2,
  FreeDefinedDate3,
  FreeDefinedDate4,
  FreeDefinedDate5,
  FreeDefinedDate6,
  CreationDateTime,
  LastChangeDateTime,
  BatchExtWhseMgmtInternalId
FROM R_BatchTP
;