C_IN_SubcontrgDocCube
Cube View for Subcon Documents in India
C_IN_SubcontrgDocCube is a Consumption CDS View (Cube) that provides data about "Cube View for Subcon Documents in India" in SAP S/4HANA. It reads from 1 data source (I_IN_SubcontrgList) and exposes 20 fields with key fields MaterialDocument, MaterialDocumentYear, MaterialDocumentItem. It has 5 associations to related views. Part of development package GLO_LOG_IN.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_IN_SubcontrgList | I_IN_SubcontrgList | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CompanyCode | _CompCode | _CompCode.CompanyCode = $projection.CompanyCode |
| [0..1] | I_Material | _MaterialStdVH | _MaterialStdVH.Material = $projection.Material |
| [0..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [0..1] | I_Supplier | _Subcontractor | $projection.Subcontractor = _Subcontractor.Supplier |
| [0..1] | I_MaterialDocumentItem | _MatDoc | $projection.MaterialDocument = _MatDoc.MaterialDocument and $projection.MaterialDocumentItem = _MatDoc.MaterialDocumentItem and $projection.MaterialDocumentYear = _MatDoc.MaterialDocumentYear |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CINSUBCONQRY | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Metadata.allowExtensions | true | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Analytics.dataCategory | #CUBE | view | |
| EndUserText.label | Cube View for Subcon Documents in India | view |
Fields (20)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaterialDocument | MaterialDocument | Material Doc. | |
| KEY | MaterialDocumentYear | MaterialDocumentYear | Material Document Year | |
| KEY | MaterialDocumentItem | MaterialDocumentItem | Material Document Item | |
| CompanyCode | CompanyCode | Receiver Company Code | ||
| Plant | Plant | Valuation Area | ||
| Subcontractor | _MatDoc | Supplier | Supplier | |
| Material | Material | Vehicle Model | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| CreationDate | CreationDate | Time Stamp | ||
| MaterialBaseUnit | _MatDoc | MaterialBaseUnit | Valuation Unit | |
| GoodsMovementType | _MatDoc | GoodsMovementType | Movement Type | |
| InventorySpecialStockType | _MatDoc | InventorySpecialStockType | Special Stock Type | |
| DebitCreditCode | _MatDoc | DebitCreditCode | Single-Character Flag | |
| SubcontrgChallan | SubcontrgChallan | |||
| DueDays | DueDays | Processing Time | ||
| NumberOfDocuments | 1 | |||
| _MaterialStdVH | _MaterialStdVH | |||
| _CompCode | _CompCode | |||
| _Subcontractor | _Subcontractor | |||
| _Plant | _Plant |
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_IN_SubcontrgDocCube.
-- 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: CINSUBCONQRY
CREATE VIEW C_IN_SubcontrgDocCube AS
SELECT
MaterialDocument,
MaterialDocumentYear,
MaterialDocumentItem,
CompanyCode,
Plant,
_MatDoc.Supplier AS Subcontractor,
Material,
PostingDate,
CreationDate,
_MatDoc.MaterialBaseUnit AS MaterialBaseUnit,
_MatDoc.GoodsMovementType AS GoodsMovementType,
_MatDoc.InventorySpecialStockType AS InventorySpecialStockType,
_MatDoc.DebitCreditCode AS DebitCreditCode,
SubcontrgChallan,
DueDays,
1 AS NumberOfDocuments
FROM I_IN_SubcontrgList
LEFT OUTER JOIN I_CompanyCode AS _CompCode ON _CompCode.CompanyCode = CompanyCode -- association [0..1]
LEFT OUTER JOIN I_Material AS _MaterialStdVH ON _MaterialStdVH.Material = Material -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Subcontractor ON Subcontractor = _Subcontractor.Supplier -- association [0..1]
LEFT OUTER JOIN I_MaterialDocumentItem AS _MatDoc ON MaterialDocument = _MatDoc.MaterialDocument AND MaterialDocumentItem = _MatDoc.MaterialDocumentItem AND MaterialDocumentYear = _MatDoc.MaterialDocumentYear -- 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