I_ProdStrucVariantMaterial

DDL: I_PRODSTRUCVARIANTMATERIAL SQL: IPSVARMATERIAL Type: view BASIC

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)

SourceAliasJoin Type
pvcmpd pvcmpd from

Associations (5)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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..*]
;