I_AlignSlsOrdHdrItm

DDL: I_ALIGNSLSORDHDRITM SQL: IALIGNSOHDRITM Type: view COMPOSITE

Sales Order Header Item

I_AlignSlsOrdHdrItm is a Composite CDS View that provides data about "Sales Order Header Item" in SAP S/4HANA. It reads from 1 data source (I_SalesDocumentItemBasic) and exposes 25 fields with key fields SalesDocument, SalesDocumentItem. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_SalesDocumentItemBasic I_SalesDocumentItemBasic from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_SalesDocumentItemBasic _SalesOrderItem $projection.SalesDocument = _SalesOrderItem.SalesDocument and $projection.HigherLevelItem = _SalesOrderItem.SalesDocumentItem
[1..1] I_SDDocumentPartner _Partners $projection.SalesDocument = _Partners.SDDocument and _Partners.PartnerFunction = 'WE'

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName IALIGNSOHDRITM view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Sales Order Header Item view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #REQUIRED view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
AbapCatalog.preserveKey true view

Fields (25)

KeyFieldSource TableSource FieldDescription
KEY SalesDocument SalesDocument SD Document
KEY SalesDocumentItem SalesDocumentItem Sales Document Item
BillOfMaterial BillOfMaterial BOM
SalesDocumentType _SalesDocumentBasic SalesDocumentType Sales Doc. Type
SDDocumentCategory _SalesDocumentBasic SDDocumentCategory Document Cat.
SalesOrganization _SalesDocumentBasic SalesOrganization Sales Organization
DistributionChannel _SalesDocumentBasic DistributionChannel RefDistCh-Cust/Mat.
OrganizationDivision _SalesDocumentBasic OrganizationDivision Org. Division
SoldToParty _SalesDocumentBasic SoldToParty Sold-to Party
SalesOffice _SalesDocumentBasic SalesOffice Sales Office
SDDocumentReason _SalesDocumentBasic SDDocumentReason Order Reason
CreationDate _SalesDocumentBasic CreationDate Time Stamp
FashionCancelDate _SalesDocumentBasic FashionCancelDate
OrganizationBPName1
DeliveryPriority DeliveryPriority Delivery Prior.
Product _Material Material Vehicle Model
HigherLevelItem HigherLevelItem Higher-Lev.Item
CrossPlantConfigurableProduct _Material CrossPlantConfigurableProduct Cross-plant CP
ShipToParty _Partners Customer Sold-to Party
ProductCharacteristic1 ProductCharacteristic1 Characteristic 1
ProductCharacteristic2 ProductCharacteristic2 Characteristic 2
ProductCharacteristic3 ProductCharacteristic3 Characteristic 3
ProductOfHigherLevelItem _SalesOrderItem Material Vehicle Model
_SalesOrderItem _SalesOrderItem
_Partners _Partners

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_AlignSlsOrdHdrItm.
-- 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: IALIGNSOHDRITM

CREATE VIEW I_AlignSlsOrdHdrItm AS
SELECT
  SalesDocument,
  SalesDocumentItem,
  BillOfMaterial,
  _SalesDocumentBasic.SalesDocumentType AS SalesDocumentType,
  _SalesDocumentBasic.SDDocumentCategory AS SDDocumentCategory,
  _SalesDocumentBasic.SalesOrganization AS SalesOrganization,
  _SalesDocumentBasic.DistributionChannel AS DistributionChannel,
  _SalesDocumentBasic.OrganizationDivision AS OrganizationDivision,
  _SalesDocumentBasic.SoldToParty AS SoldToParty,
  _SalesDocumentBasic.SalesOffice AS SalesOffice,
  _SalesDocumentBasic.SDDocumentReason AS SDDocumentReason,
  _SalesDocumentBasic.CreationDate AS CreationDate,
  _SalesDocumentBasic.FashionCancelDate AS FashionCancelDate,
  _SalesDocumentBasic._SoldToParty.OrganizationBPName1 AS OrganizationBPName1,
  DeliveryPriority,
  _Material.Material AS Product,
  HigherLevelItem,
  _Material.CrossPlantConfigurableProduct AS CrossPlantConfigurableProduct,
  _Partners.Customer AS ShipToParty,
  ProductCharacteristic1,
  ProductCharacteristic2,
  ProductCharacteristic3,
  _SalesOrderItem.Material AS ProductOfHigherLevelItem
FROM I_SalesDocumentItemBasic
LEFT OUTER JOIN I_SalesDocumentItemBasic AS _SalesOrderItem ON SalesDocument = _SalesOrderItem.SalesDocument AND HigherLevelItem = _SalesOrderItem.SalesDocumentItem  -- association [0..1]
LEFT OUTER JOIN I_SDDocumentPartner AS _Partners ON SalesDocument = _Partners.SDDocument AND _Partners.PartnerFunction = 'WE'  -- association [1..1]
;