C_AlignmentRunDet

DDL: C_ALIGNMENTRUNDET SQL: CALIGNMENTRUNDET Type: view CONSUMPTION Package: RFM_ALIGNMENT_MONITOR

Alignment Run Detailed Analysis

C_AlignmentRunDet is a Consumption CDS View that provides data about "Alignment Run Detailed Analysis" in SAP S/4HANA. It reads from 1 data source (I_AlgnmtRunDet) and exposes 57 fields with key fields PurReqnAlgnmtRunUUID, PurReqnAlgnmtRunText, PurReqnAlignmentID, Product. It has 12 associations to related views. Part of development package RFM_ALIGNMENT_MONITOR.

Data Sources (1)

SourceAliasJoin Type
I_AlgnmtRunDet I_AlgnmtRunDet from

Associations (12)

CardinalityTargetAliasCondition
[1..1] I_AlgnmtRunVH _RunValueHelp $projection.PurReqnAlgnmtRunUUID = _RunValueHelp.PurReqnAlgnmtRunUUID
[0..1] I_MaterialText _MaterialText $projection.Product = _MaterialText.Material and _MaterialText.Language = $session.system_language
[0..1] I_MaterialGroupText _MaterialGroup $projection.productgroup = _MaterialGroup.MaterialGroup and _MaterialGroup.Language = $session.system_language
[0..1] I_CustomerGroupText _CustomerGroup $projection.CustomerGroup = _CustomerGroup.CustomerGroup and _CustomerGroup.Language = $session.system_language
[0..1] I_SalesDocumentTypeText _SalesDocumentTypeTxt $projection.SalesOrderType = _SalesDocumentTypeTxt.SalesDocumentType and _SalesDocumentTypeTxt.Language = $session.system_language
[0..1] I_SalesOrganizationText _SalesOrgText $projection.SalesOrganization = _SalesOrgText.SalesOrganization and _SalesOrgText.Language = $session.system_language
[0..1] I_DistributionChannelText _DistributionChannel $projection.DistributionChannel = _DistributionChannel.DistributionChannel and _DistributionChannel.Language = $session.system_language
[0..1] I_DivisionText _Division $projection.Division = _Division.Division and _Division.Language = $session.system_language
[0..1] I_Plant _Plant $projection.PurchaseRequisitionItemPlant = _Plant.Plant
[0..1] I_Customer _SoldToParty $projection.SoldToParty = _SoldToParty.Customer
[0..1] I_PurchasingDocumentTypeText _PurchasingDocumentTypeText $projection.PurchasingDocumentType = _PurchasingDocumentTypeText.PurchasingDocumentType and _PurchasingDocumentTypeText.Language = $session.system_language and _PurchasingDocumentTypeText.PurchasingDocumentCategory = 'B'
[0..1] I_Supplier _PurchaseOrderSupplier $projection.PurchaseOrderSupplier = _PurchaseOrderSupplier.Supplier

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName CALIGNMENTRUNDET view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Alignment Run Detailed Analysis view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
AccessControl.personalData.blocking #REQUIRED view

Fields (57)

KeyFieldSource TableSource FieldDescription
KEY PurReqnAlgnmtRunUUID PurReqnAlgnmtRunUUID Run ID
KEY PurReqnAlgnmtRunText PurReqnAlgnmtRunText Run Description
KEY PurReqnAlignmentID PurReqnAlignmentID
KEY Product Product Product
RequestedQuantity RequestedQuantity Requested Quantity
PurchaseRequisitionUnit PurchaseRequisitionUnit
PurchaseRequisition PurchaseRequisition Requisition
PurchaseRequisitionItem PurchaseRequisitionItem Requisn. item
AlignedPurOrdItmQtyInBaseUoM AlignedPurOrdItmQtyInBaseUoM
AlignedPurOrdItemBaseUnit AlignedPurOrdItemBaseUnit
AlignedPurchasingDocument AlignedPurchasingDocument
AlignedPurchasingDocumentItem AlignedPurchasingDocumentItem
PurchaseOrder ProposedPurchasingDocument
ProposedPurchasingDocumentItem ProposedPurchasingDocumentItem
PurchaseReqnItemStockSegment PurchaseReqnItemStockSegment
PurReqnHasAlignmentProposal PurReqnHasAlignmentProposal
PurReqnQtyAlgnmtToPurOrdQtyPct Alignment Percentage
PurchaseRequisitionItemPlant PurchaseRequisitionItemPlant
PurReqnItemPlantName PurReqnItemPlantName
ProductGroup _Product ProductGroup Product Sold Group
CrossPlantConfigurableProduct _Product CrossPlantConfigurableProduct Generic Product
PurchaseReqnItemSeasonYear PurchaseReqnItemSeasonYear
PurchaseReqnItemSeason PurchaseReqnItemSeason
PurchaseReqnItemCollection PurchaseReqnItemCollection
PurchaseReqnItemTheme PurchaseReqnItemTheme
SalesDocument SalesDocument SD Document
SalesDocumentItem SalesDocumentItem Sales Document Item
SalesOrganization SalesOrganization Sales Organization
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
Division Division Internal Division ID
SoldToParty SoldToParty Sold-to Party
CustomerGroup CustomerGroup Customer Group
SalesOrderType SalesOrderType Sales Order Type
RequestedDeliveryDate RequestedDeliveryDate Requested Delivery Date
FashionCancelDate FashionCancelDate
NetAmount NetAmount Stated Amount
TransactionCurrency TransactionCurrency Transaction Currency
PurchasingOrganization PurchasingOrganization Purchasing Organization
PurchasingOrganizationName PurchasingOrganizationName Purch. Org. Name
PurchasingGroup PurchasingGroup Purchasing Group
PurchaseOrderSupplier PurchaseOrderSupplier
PurchasingDocumentType PurchasingDocumentType RFQ Type
PurReqnHasCrossSgmtAlgnmtName PurReqnHasCrossSgmtAlgnmtName
PurReqnCrsPlantAlgnmtName PurReqnCrsPlantAlgnmtName
PurReqnCrsSeasonAlgnmtName PurReqnCrsSeasonAlgnmtName
_RunValueHelp _RunValueHelp
_MaterialText _MaterialText
_MaterialGroup _MaterialGroup
_CustomerGroup _CustomerGroup
_SalesDocumentTypeTxt _SalesDocumentTypeTxt
_SalesOrgText _SalesOrgText
_DistributionChannel _DistributionChannel
_Division _Division
_Plant _Plant
_PurchasingDocumentTypeText _PurchasingDocumentTypeText
_PurchaseOrderSupplier _PurchaseOrderSupplier
_SoldToParty _SoldToParty

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_AlignmentRunDet.
-- 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: CALIGNMENTRUNDET

CREATE VIEW C_AlignmentRunDet AS
SELECT
  PurReqnAlgnmtRunUUID,
  PurReqnAlgnmtRunText,
  PurReqnAlignmentID,
  Product,
  RequestedQuantity,
  PurchaseRequisitionUnit,
  PurchaseRequisition,
  PurchaseRequisitionItem,
  AlignedPurOrdItmQtyInBaseUoM,
  AlignedPurOrdItemBaseUnit,
  AlignedPurchasingDocument,
  AlignedPurchasingDocumentItem,
  ProposedPurchasingDocument AS PurchaseOrder,
  ProposedPurchasingDocumentItem,
  PurchaseReqnItemStockSegment,
  PurReqnHasAlignmentProposal,
  cast ( 0 as arun_alloc_qty ) AS PurReqnQtyAlgnmtToPurOrdQtyPct,
  PurchaseRequisitionItemPlant,
  PurReqnItemPlantName,
  _Product.ProductGroup AS ProductGroup,
  _Product.CrossPlantConfigurableProduct AS CrossPlantConfigurableProduct,
  PurchaseReqnItemSeasonYear,
  PurchaseReqnItemSeason,
  PurchaseReqnItemCollection,
  PurchaseReqnItemTheme,
  SalesDocument,
  SalesDocumentItem,
  SalesOrganization,
  DistributionChannel,
  Division,
  SoldToParty,
  CustomerGroup,
  SalesOrderType,
  RequestedDeliveryDate,
  FashionCancelDate,
  NetAmount,
  TransactionCurrency,
  PurchasingOrganization,
  PurchasingOrganizationName,
  PurchasingGroup,
  PurchaseOrderSupplier,
  PurchasingDocumentType,
  PurReqnHasCrossSgmtAlgnmtName,
  PurReqnCrsPlantAlgnmtName,
  PurReqnCrsSeasonAlgnmtName
FROM I_AlgnmtRunDet
LEFT OUTER JOIN I_AlgnmtRunVH AS _RunValueHelp ON PurReqnAlgnmtRunUUID = _RunValueHelp.PurReqnAlgnmtRunUUID  -- association [1..1]
LEFT OUTER JOIN I_MaterialText AS _MaterialText ON Product = _MaterialText.Material AND _MaterialText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_MaterialGroupText AS _MaterialGroup ON productgroup = _MaterialGroup.MaterialGroup AND _MaterialGroup.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_CustomerGroupText AS _CustomerGroup ON CustomerGroup = _CustomerGroup.CustomerGroup AND _CustomerGroup.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_SalesDocumentTypeText AS _SalesDocumentTypeTxt ON SalesOrderType = _SalesDocumentTypeTxt.SalesDocumentType AND _SalesDocumentTypeTxt.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_SalesOrganizationText AS _SalesOrgText ON SalesOrganization = _SalesOrgText.SalesOrganization AND _SalesOrgText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_DistributionChannelText AS _DistributionChannel ON DistributionChannel = _DistributionChannel.DistributionChannel AND _DistributionChannel.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_DivisionText AS _Division ON Division = _Division.Division AND _Division.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON PurchaseRequisitionItemPlant = _Plant.Plant  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _SoldToParty ON SoldToParty = _SoldToParty.Customer  -- association [0..1]
LEFT OUTER JOIN I_PurchasingDocumentTypeText AS _PurchasingDocumentTypeText ON PurchasingDocumentType = _PurchasingDocumentTypeText.PurchasingDocumentType AND _PurchasingDocumentTypeText.Language = $session.system_language AND _PurchasingDocumentTypeText.PurchasingDocumentCategory = 'B'  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _PurchaseOrderSupplier ON PurchaseOrderSupplier = _PurchaseOrderSupplier.Supplier  -- association [0..1]
;