I_SpecAssignedMaterial

DDL: I_SPECASSIGNEDMATERIAL SQL: ISPECMATASSGMT Type: view BASIC

Specification Material Assignment

I_SpecAssignedMaterial is a Basic CDS View that provides data about "Specification Material Assignment" in SAP S/4HANA. It reads from 1 data source (estmj) and exposes 20 fields with key fields SpecMaterialAssgmtInternalID, SpecMaterialAssgmtChangeState. It has 7 associations to related views.

Data Sources (1)

SourceAliasJoin Type
estmj estmj from

Associations (7)

CardinalityTargetAliasCondition
[0..1] I_User _CreatedByUser $projection.SpecMaterialAssgmtCreatedByUsr = _CreatedByUser.UserID
[0..1] I_User _LastChangedByUser $projection.SpecMatlAssgmtLastChangedByUsr = _LastChangedByUser.UserID
[0..1] I_Product _Product $projection.Material = _Product.Product
[0..1] I_Material _Material $projection.Material = _Material.Material and $projection.Plant = ''
[0..1] I_MaterialPlant _MaterialPlant $projection.Material = _MaterialPlant.Material and $projection.Plant = _MaterialPlant.Plant
[0..*] I_Specification _Specification $projection.SpecificationInternalID = _Specification.SpecificationInternalID
[0..1] I_ProductText _MaterialText $projection.Material = _MaterialText.Product and _MaterialText.Language = $session.system_language

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName ISPECMATASSGMT view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.dataClass #MASTER view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
VDM.viewType #BASIC view
EndUserText.label Specification Material Assignment view

Fields (20)

KeyFieldSource TableSource FieldDescription
KEY SpecMaterialAssgmtInternalID estmj recn Unique ID No.
KEY SpecMaterialAssgmtChangeState estmj actn GUID number
SpecificationInternalID estmj recnroot Record number
SpecMatlAssgmtValdtyStartDate estmj valfr Valid From
SpecMatlAssgmtValdtyEndDate estmj valto Valid To
SpecMaterialAssgmtChangeNumber estmj aennr Change Number
SpecMaterialAssgmtIsDeleted estmj delflg DID
SpecMaterialAssgmtCreationDate estmj crdat Generation Time
SpecMaterialAssgmtCreatedByUsr estmj crnam Requester
SpecMaterialAssgmtChangeDate estmj upddat Changed On
SpecMatlAssgmtLastChangedByUsr estmj updnam User Name
Plant estmj werks Receiving Plant
Material estmj matnr Vehicle Model
_CreatedByUser _CreatedByUser
_LastChangedByUser _LastChangedByUser
_Product _Product
_Material _Material
_MaterialPlant _MaterialPlant
_Specification _Specification
_MaterialText _MaterialText

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_SpecAssignedMaterial.
-- 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: ISPECMATASSGMT

CREATE VIEW I_SpecAssignedMaterial AS
SELECT
  estmj.recn AS SpecMaterialAssgmtInternalID,
  estmj.actn AS SpecMaterialAssgmtChangeState,
  estmj.recnroot AS SpecificationInternalID,
  estmj.valfr AS SpecMatlAssgmtValdtyStartDate,
  estmj.valto AS SpecMatlAssgmtValdtyEndDate,
  estmj.aennr AS SpecMaterialAssgmtChangeNumber,
  estmj.delflg AS SpecMaterialAssgmtIsDeleted,
  estmj.crdat AS SpecMaterialAssgmtCreationDate,
  estmj.crnam AS SpecMaterialAssgmtCreatedByUsr,
  estmj.upddat AS SpecMaterialAssgmtChangeDate,
  estmj.updnam AS SpecMatlAssgmtLastChangedByUsr,
  estmj.werks AS Plant,
  estmj.matnr AS Material
FROM estmj
LEFT OUTER JOIN I_User AS _CreatedByUser ON SpecMaterialAssgmtCreatedByUsr = _CreatedByUser.UserID  -- association [0..1]
LEFT OUTER JOIN I_User AS _LastChangedByUser ON SpecMatlAssgmtLastChangedByUsr = _LastChangedByUser.UserID  -- association [0..1]
LEFT OUTER JOIN I_Product AS _Product ON Material = _Product.Product  -- association [0..1]
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material AND Plant = ''  -- association [0..1]
LEFT OUTER JOIN I_MaterialPlant AS _MaterialPlant ON Material = _MaterialPlant.Material AND Plant = _MaterialPlant.Plant  -- association [0..1]
LEFT OUTER JOIN I_Specification AS _Specification ON SpecificationInternalID = _Specification.SpecificationInternalID  -- association [0..*]
LEFT OUTER JOIN I_ProductText AS _MaterialText ON Material = _MaterialText.Product AND _MaterialText.Language = $session.system_language  -- association [0..1]
;