C_BatchObjPageBatchHistory
Batch History for Batch Object Page
C_BatchObjPageBatchHistory is a Consumption CDS View that provides data about "Batch History for Batch Object Page" in SAP S/4HANA. It reads from 1 data source (P_BatchObjPageBatchHistory) and exposes 34 fields with key fields Plant, Material, Batch, MaterialDocumentYear, MaterialDocument. It has 6 associations to related views. Part of development package LO_BM_BATCH_UI.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_BatchObjPageBatchHistory | P_BatchObjPageBatchHistory | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_Language | sylangu |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Material | _Material | $projection.Material = _Material.Material |
| [0..1] | I_Supplier | _Supplier | $projection.Supplier = _Supplier.Supplier |
| [0..1] | I_SupplierCompany | _SupplierCompany | $projection.Supplier = _SupplierCompany.Supplier and $projection.CompanyCode = _SupplierCompany.CompanyCode |
| [0..1] | I_Customer | _Customer | $projection.Customer = _Customer.Customer |
| [0..1] | I_CustomerCompany | _CustomerCompany | $projection.Customer = _CustomerCompany.Customer and $projection.CompanyCode = _CustomerCompany.CompanyCode |
| [0..1] | I_BatchUsageType | _BatchUsageType | $projection.BatchUsageType = _BatchUsageType.BatchUsageType |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CBATCHOBJPGHIST | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| EndUserText.label | Batch History for Batch Object Page | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.private | false | view | |
| VDM.viewType | #CONSUMPTION | view | |
| UI.headerInfo.typeName | Batch History Item | view | |
| UI.headerInfo.typeNamePlural | Batch History Items | view | |
| UI.headerInfo.title.label | Batch Usage Type | view | |
| UI.headerInfo.title.value | BatchUsageTypeText | view |
Fields (34)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Plant | Plant | Valuation Area | |
| KEY | Material | P_BatchObjPageBatchHistory | Material | Vehicle Model |
| KEY | Batch | Batch | Lot No. | |
| KEY | MaterialDocumentYear | MaterialDocumentYear | Material Document Year | |
| KEY | MaterialDocument | MaterialDocument | Material Doc. | |
| KEY | MaterialDocumentItem | MaterialDocumentItem | Material Document Item | |
| ManufacturingOrder | ManufacturingOrder | Order | ||
| ManufacturingOrderItem | ManufacturingOrderItem | Manufacturing Order Item | ||
| PurchaseOrder | PurchaseOrder | Purchasing Document | ||
| PurchaseOrderItem | PurchaseOrderItem | Purchasing Document Item | ||
| SalesOrder | SalesOrder | SD Document | ||
| SalesOrderItem | SalesOrderItem | Sales Order Item | ||
| IsReversalMovementType | IsReversalMovementType | |||
| PostingDate | PostingDate | Posting Date for GR | ||
| QuantityInBaseUnit | QuantityInBaseUnit | Quantity | ||
| MaterialBaseUnit | P_BatchObjPageBatchHistory | MaterialBaseUnit | Valuation Unit | |
| Supplier | Supplier | Supplier | ||
| BatchBySupplier | BatchBySupplier | Supplier Batch | ||
| Customer | Customer | Sold-to Party | ||
| OutboundDelivery | OutboundDelivery | LE Delivery | ||
| OutboundDeliveryItem | OutboundDeliveryItem | Logistics Execution Delivery Item | ||
| IsGoodsIssueDocument | IsGoodsIssueDocument | |||
| BatchUsageType | BatchUsageType | |||
| BatchUsageTypeText | ||||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| _Plant | _Plant | |||
| _Material | _Material | |||
| _Batch | _Batch | |||
| _Supplier | _Supplier | |||
| _SupplierCompany | _SupplierCompany | |||
| _Customer | _Customer | |||
| _CustomerCompany | _CustomerCompany | |||
| _MaterialBaseUnit | _MaterialBaseUnit | |||
| _BatchUsageType | _BatchUsageType |
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_BatchObjPageBatchHistory.
-- 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: CBATCHOBJPGHIST
-- Parameters: P_Language : sylangu
CREATE VIEW C_BatchObjPageBatchHistory AS
SELECT
Plant,
P_BatchObjPageBatchHistory.Material AS Material,
Batch,
MaterialDocumentYear,
MaterialDocument,
MaterialDocumentItem,
ManufacturingOrder,
ManufacturingOrderItem,
PurchaseOrder,
PurchaseOrderItem,
SalesOrder,
SalesOrderItem,
IsReversalMovementType,
PostingDate,
QuantityInBaseUnit,
P_BatchObjPageBatchHistory.MaterialBaseUnit AS MaterialBaseUnit,
Supplier,
BatchBySupplier,
Customer,
OutboundDelivery,
OutboundDeliveryItem,
IsGoodsIssueDocument,
BatchUsageType,
_BatchUsageType._Text[1: Language=$parameters.P_Language].BatchUsageTypeText AS BatchUsageTypeText,
CompanyCode
FROM P_BatchObjPageBatchHistory
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material -- association [1..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier -- association [0..1]
LEFT OUTER JOIN I_SupplierCompany AS _SupplierCompany ON Supplier = _SupplierCompany.Supplier AND CompanyCode = _SupplierCompany.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer -- association [0..1]
LEFT OUTER JOIN I_CustomerCompany AS _CustomerCompany ON Customer = _CustomerCompany.Customer AND CompanyCode = _CustomerCompany.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_BatchUsageType AS _BatchUsageType ON BatchUsageType = _BatchUsageType.BatchUsageType -- 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