A_Batch
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)
| Source | Alias | Join Type |
|---|---|---|
| R_BatchTP | R_BatchTP | projection |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Material | Material | ||
| KEY | BatchIdentifyingPlant | BatchIdentifyingPlant | ||
| KEY | Batch | Batch | ||
| BatchIsMarkedForDeletion | BatchIsMarkedForDeletion | |||
| MatlBatchIsInRstrcdUseStock | MatlBatchIsInRstrcdUseStock | |||
| Supplier | Supplier | |||
| BatchBySupplier | BatchBySupplier | |||
| CountryOfOrigin | CountryOfOrigin | |||
| RegionOfOrigin | RegionOfOrigin | |||
| MatlBatchAvailabilityDate | MatlBatchAvailabilityDate | |||
| ShelfLifeExpirationDate | ShelfLifeExpirationDate | |||
| ManufactureDate | ManufactureDate | |||
| FreeDefinedDate1 | FreeDefinedDate1 | |||
| FreeDefinedDate2 | FreeDefinedDate2 | |||
| FreeDefinedDate3 | FreeDefinedDate3 | |||
| FreeDefinedDate4 | FreeDefinedDate4 | |||
| FreeDefinedDate5 | FreeDefinedDate5 | |||
| FreeDefinedDate6 | FreeDefinedDate6 | |||
| CreationDateTime | CreationDateTime | |||
| LastChangeDateTime | LastChangeDateTime | |||
| BatchExtWhseMgmtInternalId | BatchExtWhseMgmtInternalId | |||
| _Product | _Product |
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Batches'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.sapObjectNodeType.name: 'Batch'
@ObjectModel.usageType: {serviceQuality: #C, sizeCategory: #L, dataClass: #MASTER}
@VDM.lifecycle.contract.type: #PUBLIC_REMOTE_API
@VDM.viewType: #CONSUMPTION
define root view entity A_Batch
provider contract transactional_query
as projection on R_BatchTP
{
key Material,
key BatchIdentifyingPlant,
key Batch,
BatchIsMarkedForDeletion,
MatlBatchIsInRstrcdUseStock,
Supplier,
BatchBySupplier,
CountryOfOrigin,
RegionOfOrigin,
MatlBatchAvailabilityDate,
ShelfLifeExpirationDate,
ManufactureDate,
FreeDefinedDate1,
FreeDefinedDate2,
FreeDefinedDate3,
FreeDefinedDate4,
FreeDefinedDate5,
FreeDefinedDate6,
CreationDateTime,
LastChangeDateTime,
BatchExtWhseMgmtInternalId,
/* Compositions */
_BatchPlantTP as _BatchPlant : redirected to composition child A_BatchPlant,
_BatchClassTP as _BatchClass : redirected to composition child A_BatchClass,
_BatchCharacteristicTP as _BatchCharc : redirected to composition child A_BatchCharc,
_BatchTextTP as _BatchText : redirected to composition child A_BatchText,
/* Associations */
@Consumption.hidden: true
_Product
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"R_BATCHTP"
],
"ASSOCIATED":
[
"A_BATCHCHARC",
"A_BATCHCLASS",
"A_BATCHPLANT",
"A_BATCHTEXT",
"I_PRODUCT",
"R_BATCHCHARACTERISTICTP",
"R_BATCHCLASSTP",
"R_BATCHPLANTTP",
"R_BATCHTEXTTP"
],
"BASE":
[
"R_BATCHTP"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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