A_Batch

DDL: A_BATCH Type: view_entity CONSUMPTION Package: LO_BM_BATCH_BO_API

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 27 fields with key fields Material, BatchIdentifyingPlant, Batch. It is exposed through 1 OData service (API_BATCH_SRV). Part of development package LO_BM_BATCH_BO_API.

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

OData Services (1)

ServiceBindingVersionContractRelease
API_BATCH_SRV API_BATCH_SRV V2 C2 C1

Fields (27)

KeyFieldSource TableSource FieldDescription
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
NextInspectionDate NextInspectionDate
LastGoodsReceiptDate LastGoodsReceiptDate
ExportAndImportProductGroup ExportAndImportProductGroup
BatchCertificationDate BatchCertificationDate
BatchVersion BatchVersion
_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,
      @Feature: 'LOBM_BAT_SRV_OD_ADDS_MISS_FLDS'  
      NextInspectionDate,
      @Feature: 'LOBM_BAT_SRV_OD_ADDS_MISS_FLDS'  
      LastGoodsReceiptDate,
      @Feature: 'LOBM_BAT_SRV_OD_ADDS_MISS_FLDS'  
      ExportAndImportProductGroup,
      @Feature: 'LOBM_BAT_SRV_OD_ADDS_MISS_FLDS'  
      BatchCertificationDate,
      @Feature: 'LOBM_BAT_SRV_OD_ADDS_MISS_FLDS'  
      BatchVersion,

      /* 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
}