I_ProdStrucVariantChangeState

DDL: I_PRODSTRUCVARIANTCHANGESTATE SQL: IPSVARCHGSTATE Type: view BASIC

Product Structure Variant Change State

I_ProdStrucVariantChangeState (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Cross Applications

I_ProdStrucVariantChangeState is a Basic CDS View that provides data about "Product Structure Variant Change State" in SAP S/4HANA. It reads from 2 data sources (aenr, pvcmp) and exposes 13 fields with key fields ProductStructureVariantUUID, ProdStrucVariantChgStateIntID. It has 4 associations to related views.

SAP API Hub

StateC1
Line of BusinessCross Applications
Application ComponentPLM-WUI-OBJ-PSM
CapabilitiesData Source for Defining CDS Entities, Data Source in SQL Select, Data Source for Search
PackageCross Applications for SAP S/4HANA Cloud Private Edition

Documentation

Data Sources (2)

SourceAliasJoin Type
aenr aenr left_outer
pvcmp pvcmp from

Associations (4)

CardinalityTargetAliasCondition
[0..1] I_ProdStrucVariantBasic _VariantBasic $projection.ProductStructureVariantUUID = _VariantBasic.ProductStructureVariantUUID
[0..1] I_ProdStrucLogAccMActive _LogAccMObjectTypeActive $projection.productstructuregnrcobjtype = _LogAccMObjectTypeActive.LogAccMObjectType
[0..*] I_ProdStrucLogAccMSecureAssgmt _LogAccMObjSecureIDAssgmt $projection.prodstrucvariantuniqueid = _LogAccMObjSecureIDAssgmt.LogAccMObjectID and $projection.productstructuregnrcobjtype = _LogAccMObjSecureIDAssgmt.LogAccMObjectType
[0..*] I_ProdStrucLogAccMUserAuthzn _LogAccMObjectUserAuthzn $projection.prodstrucvariantuniqueid = _LogAccMObjectUserAuthzn.LogAccMObjectID and $projection.productstructuregnrcobjtype = _LogAccMObjectUserAuthzn.LogAccMObjectType

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName IPSVARCHGSTATE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #BASIC view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.representativeKey ProdStrucVariantChgStateIntID view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.serviceQuality #C view
EndUserText.label Product Structure Variant Change State view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (13)

KeyFieldSource TableSource FieldDescription
KEY ProductStructureVariantUUID pvcmp pvguid Internal Number of the PVS Variant
KEY ProdStrucVariantChgStateIntID pvcmp pvcnt Internal Counter for iPPE Objects
ProdStrucVariantUniqueID _VariantBasic ProdStrucVariantUniqueID
ProdStrucVarBasicDataChgState pvcmp pvcdcnt Internal Counter for iPPE Objects
ProdStrucVariantChangeNumber pvcmp aennr Change Number in iPPE
ProdStrucVarIsMrkdForDeletion pvcmp delflg Deletion Indicator
ProdStrucVarChgNmbrDescription aenr aetxt Change number description
AuthorizationGroup aenr aenbe Authorization group for change master record
ProductStructureGnrcObjType _VariantBasic ProductStructureGnrcObjType Object Type
_VariantBasic _VariantBasic
_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_ProdStrucVariantChangeState.
-- 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: IPSVARCHGSTATE

CREATE VIEW I_ProdStrucVariantChangeState AS
SELECT
  pvcmp.pvguid AS ProductStructureVariantUUID,
  pvcmp.pvcnt AS ProdStrucVariantChgStateIntID,
  _VariantBasic.ProdStrucVariantUniqueID AS ProdStrucVariantUniqueID,
  pvcmp.pvcdcnt AS ProdStrucVarBasicDataChgState,
  pvcmp.aennr AS ProdStrucVariantChangeNumber,
  pvcmp.delflg AS ProdStrucVarIsMrkdForDeletion,
  aenr.aetxt AS ProdStrucVarChgNmbrDescription,
  aenr.aenbe AS AuthorizationGroup,
  _VariantBasic.ProductStructureGnrcObjType AS ProductStructureGnrcObjType
FROM pvcmp
LEFT OUTER JOIN aenr ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ProdStrucVariantBasic AS _VariantBasic ON ProductStructureVariantUUID = _VariantBasic.ProductStructureVariantUUID  -- association [0..1]
LEFT OUTER JOIN I_ProdStrucLogAccMActive AS _LogAccMObjectTypeActive ON productstructuregnrcobjtype = _LogAccMObjectTypeActive.LogAccMObjectType  -- association [0..1]
LEFT OUTER JOIN I_ProdStrucLogAccMSecureAssgmt AS _LogAccMObjSecureIDAssgmt ON prodstrucvariantuniqueid = _LogAccMObjSecureIDAssgmt.LogAccMObjectID AND productstructuregnrcobjtype = _LogAccMObjSecureIDAssgmt.LogAccMObjectType  -- association [0..*]
LEFT OUTER JOIN I_ProdStrucLogAccMUserAuthzn AS _LogAccMObjectUserAuthzn ON prodstrucvariantuniqueid = _LogAccMObjectUserAuthzn.LogAccMObjectID AND productstructuregnrcobjtype = _LogAccMObjectUserAuthzn.LogAccMObjectType  -- association [0..*]
;