C_BatchTP

DDL: C_BATCHTP SQL: CBATCHTP Type: view CONSUMPTION

Manage Batches

C_BatchTP is a Consumption CDS View that provides data about "Manage Batches" in SAP S/4HANA. It reads from 1 data source (I_BatchTP) and exposes 12 fields with key fields Batch, Material, Plant. It has 9 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_BatchTP I_BatchTP from

Associations (9)

CardinalityTargetAliasCondition
[0..*] C_BatchTP _SubordinateBatch $projection.Batch = _SubordinateBatch.Batch and $projection.Material = _SubordinateBatch.Material and $projection.Plant = '' and _SubordinateBatch.IsSubordinateBatch = 'X'
[0..*] C_BatchObjPgInspectionLot _BatchObjPgInspectionLot $projection.Batch = _BatchObjPgInspectionLot.Batch and $projection.Material = _BatchObjPgInspectionLot.Material and $projection.Plant = _BatchObjPgInspectionLot.Plant
[0..*] C_BatchObjPgInspectionLot _BatchObjPgInspLotCrossPlant $projection.Batch = _BatchObjPgInspLotCrossPlant.Batch and $projection.Material = _BatchObjPgInspLotCrossPlant.Material
[0..*] C_BatchObjPageBatchHistory _BatchObjPageBatchHistory $projection.Batch = _BatchObjPageBatchHistory.Batch and $projection.Material = _BatchObjPageBatchHistory.Material and $projection.Plant = _BatchObjPageBatchHistory.Plant
[0..*] C_BatchObjPageBatchHistory _BatchObjPgBatHistCrossPlant $projection.Batch = _BatchObjPgBatHistCrossPlant.Batch and $projection.Material = _BatchObjPgBatHistCrossPlant.Material
[0..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier
[0..1] I_BatchManagedMaterialVH _BatchManagedMaterialVH $projection.MaterialForEdit = _BatchManagedMaterialVH.Material
[0..*] I_BatchPlant _BatchPlant $projection.Material = _BatchPlant.Material and $projection.Batch = _BatchPlant.Batch and $projection.Plant = ''
[0..1] C_ChFiExBatchClfn _ChFiExBatchClfn $projection.Plant = _ChFiExBatchClfn.Plant and $projection.Material = _ChFiExBatchClfn.Material and $projection.Batch = _ChFiExBatchClfn.Batch

Annotations (24)

NameValueLevelField
AbapCatalog.sqlViewName CBATCHTP view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Manage Batches view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.transactionalProcessingDelegated true view
ObjectModel.compositionRoot true view
ObjectModel.draftEnabled true view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled EXTERNAL_CALCULATION view
ObjectModel.deleteEnabled EXTERNAL_CALCULATION view
VDM.private false view
VDM.viewType #CONSUMPTION view
Consumption.semanticObject Batch view
UI.headerInfo.typeName Batch view
UI.headerInfo.typeNamePlural Batches view
UI.headerInfo.title.label Batch view
UI.headerInfo.title.value BatchForEdit view
UI.headerInfo.description.label Batch Short Description view
UI.headerInfo.description.value BatchShortDescription view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY Batch Batch Lot No.
KEY Material Material Vehicle Model
KEY Plant Plant Valuation Area
BatchForEdit BatchForEdit Lot No.
MaterialForEdit MaterialForEdit Product
PlantForEdit PlantForEdit Plant ID
MatlBatchIsInRstrcdUseStock MatlBatchIsInRstrcdUseStock Batch restr.
BatchRestrictionStatus BatchRestrictionStatus Batch Status
BatchRestrictionStsCriticality BatchRestrictionStsCriticality
BatchIsMarkedForDeletion
objectModelenabledtobesetagain
objectModelenabledtobesetagain

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_BatchTP.
-- 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: CBATCHTP

CREATE VIEW C_BatchTP AS
SELECT
  Batch,
  Material,
  Plant,
  BatchForEdit,
  MaterialForEdit,
  PlantForEdit,
  MatlBatchIsInRstrcdUseStock,
  BatchRestrictionStatus,
  BatchRestrictionStsCriticality,
  cast(BatchIsMarkedForDeletion as s4bop_batch_marked_for_delet preserving type) AS BatchIsMarkedForDeletion
FROM I_BatchTP
LEFT OUTER JOIN C_BatchTP AS _SubordinateBatch ON Batch = _SubordinateBatch.Batch AND Material = _SubordinateBatch.Material AND Plant = '' AND _SubordinateBatch.IsSubordinateBatch = 'X'  -- association [0..*]
LEFT OUTER JOIN C_BatchObjPgInspectionLot AS _BatchObjPgInspectionLot ON Batch = _BatchObjPgInspectionLot.Batch AND Material = _BatchObjPgInspectionLot.Material AND Plant = _BatchObjPgInspectionLot.Plant  -- association [0..*]
LEFT OUTER JOIN C_BatchObjPgInspectionLot AS _BatchObjPgInspLotCrossPlant ON Batch = _BatchObjPgInspLotCrossPlant.Batch AND Material = _BatchObjPgInspLotCrossPlant.Material  -- association [0..*]
LEFT OUTER JOIN C_BatchObjPageBatchHistory AS _BatchObjPageBatchHistory ON Batch = _BatchObjPageBatchHistory.Batch AND Material = _BatchObjPageBatchHistory.Material AND Plant = _BatchObjPageBatchHistory.Plant  -- association [0..*]
LEFT OUTER JOIN C_BatchObjPageBatchHistory AS _BatchObjPgBatHistCrossPlant ON Batch = _BatchObjPgBatHistCrossPlant.Batch AND Material = _BatchObjPgBatHistCrossPlant.Material  -- association [0..*]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier  -- association [0..1]
LEFT OUTER JOIN I_BatchManagedMaterialVH AS _BatchManagedMaterialVH ON MaterialForEdit = _BatchManagedMaterialVH.Material  -- association [0..1]
LEFT OUTER JOIN I_BatchPlant AS _BatchPlant ON Material = _BatchPlant.Material AND Batch = _BatchPlant.Batch AND Plant = ''  -- association [0..*]
LEFT OUTER JOIN C_ChFiExBatchClfn AS _ChFiExBatchClfn ON Plant = _ChFiExBatchClfn.Plant AND Material = _ChFiExBatchClfn.Material AND Batch = _ChFiExBatchClfn.Batch  -- association [0..1]
;