C_BatchTP
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. Part of development package LO_BM_BATCH_UI.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_BatchTP | I_BatchTP | from |
Associations (9)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA