I_ProdStrucVariantMaterial
Product Structure Variant Material
I_ProdStrucVariantMaterial is a Basic CDS View that provides data about "Product Structure Variant Material" in SAP S/4HANA. It reads from 1 data source (pvcmpd) and exposes 13 fields with key fields ProductStructureVariantUUID, ProdStrucVarBasicDataChgState. It has 5 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| pvcmpd | pvcmpd | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Product | _Product | pvcmpd.cmpid = _Product.Product |
| [0..1] | I_ProdStrucVariantBasic | _Variant | $projection.ProductStructureVariantUUID = _Variant.ProductStructureVariantUUID |
| [0..1] | I_ProdStrucLogAccMActive | _LogAccMObjectTypeActive | $projection.productstructuregnrcobjtype = _LogAccMObjectTypeActive.LogAccMObjectType |
| [0..1] | I_ProdStrucObjSecureIDAssgmt | _LogAccMObjSecureIDAssgmt | $projection.prodstrucvariantuniqueid = _LogAccMObjSecureIDAssgmt.LogAccMObjectID and $projection.productstructuregnrcobjtype = _LogAccMObjSecureIDAssgmt.LogAccMObjectType |
| [0..*] | I_ProdStrucObjectUserAuthzn | _LogAccMObjectUserAuthzn | $projection.prodstrucvariantuniqueid = _LogAccMObjectUserAuthzn.LogAccMObjectID and $projection.productstructuregnrcobjtype = _LogAccMObjectUserAuthzn.LogAccMObjectType |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IPSVARMATERIAL | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| EndUserText.label | Product Structure Variant Material | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (13)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ProductStructureVariantUUID | pvcmpd | pvguid | Internal Number |
| KEY | ProdStrucVarBasicDataChgState | pvcmpd | pvcdcnt | Counter |
| ProdStrucVariantUniqueID | _Variant | ProdStrucVariantUniqueID | ||
| Material | _Product | Product | Product Sold | |
| quant_fixendasProductStructureVariantQty | ||||
| ProductStructureVariantUnit | pvcmpd | qunit | Unit | |
| MaterialAuthorizationGroup | _Product | AuthorizationGroup | AuthorizGroup | |
| _Text | _Product | _Text | ||
| ProductStructureGnrcObjType | _Variant | ProductStructureGnrcObjType | ||
| _Variant | _Variant | |||
| _LogAccMObjectTypeActive | _LogAccMObjectTypeActive | |||
| _LogAccMObjSecureIDAssgmt | _LogAccMObjSecureIDAssgmt | |||
| _LogAccMObjectUserAuthzn | _LogAccMObjectUserAuthzn |
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 I_ProdStrucVariantMaterial.
-- 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: IPSVARMATERIAL
CREATE VIEW I_ProdStrucVariantMaterial AS
SELECT
pvcmpd.pvguid AS ProductStructureVariantUUID,
pvcmpd.pvcdcnt AS ProdStrucVarBasicDataChgState,
_Variant.ProdStrucVariantUniqueID AS ProdStrucVariantUniqueID,
_Product.Product AS Material,
case when pvcmpp.pvguid is null then pvcmpd.quant else pvcmpp.quant_fix end as ProductStructureVariantQty AS quant_fixendasProductStructureVariantQty,
pvcmpd.qunit AS ProductStructureVariantUnit,
_Product.AuthorizationGroup AS MaterialAuthorizationGroup,
_Product._Text AS _Text,
_Variant.ProductStructureGnrcObjType AS ProductStructureGnrcObjType
FROM pvcmpd
LEFT OUTER JOIN I_Product AS _Product ON pvcmpd.cmpid = _Product.Product -- association [0..1]
LEFT OUTER JOIN I_ProdStrucVariantBasic AS _Variant ON ProductStructureVariantUUID = _Variant.ProductStructureVariantUUID -- association [0..1]
LEFT OUTER JOIN I_ProdStrucLogAccMActive AS _LogAccMObjectTypeActive ON productstructuregnrcobjtype = _LogAccMObjectTypeActive.LogAccMObjectType -- association [0..1]
LEFT OUTER JOIN I_ProdStrucObjSecureIDAssgmt AS _LogAccMObjSecureIDAssgmt ON prodstrucvariantuniqueid = _LogAccMObjSecureIDAssgmt.LogAccMObjectID AND productstructuregnrcobjtype = _LogAccMObjSecureIDAssgmt.LogAccMObjectType -- association [0..1]
LEFT OUTER JOIN I_ProdStrucObjectUserAuthzn AS _LogAccMObjectUserAuthzn ON prodstrucvariantuniqueid = _LogAccMObjectUserAuthzn.LogAccMObjectID AND productstructuregnrcobjtype = _LogAccMObjectUserAuthzn.LogAccMObjectType -- association [0..*]
;
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