I_AlignAcctAssgdSlsItmSl

DDL: I_ALIGNACCTASSGDSLSITMSL SQL: IALIGNAASLSITMSL Type: view COMPOSITE

Acct assg SO line item with sch. lines

I_AlignAcctAssgdSlsItmSl is a Composite CDS View that provides data about "Acct assg SO line item with sch. lines" in SAP S/4HANA. It reads from 1 data source (I_AlignSlsOrdHdrItm) and exposes 38 fields with key fields SalesDocument, SalesDocumentItem, ScheduleLine. It has 8 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_AlignSlsOrdHdrItm _HeaderItem from

Associations (8)

CardinalityTargetAliasCondition
[1..*] I_AlignSlsOrdAcctAssgdSl _Schedule $projection.SalesDocument = _Schedule.SalesDocument and $projection.SalesDocumentItem = _Schedule.SalesDocumentItem
[1..1] I_Product _Product $projection.Product = _Product.Product
[1..1] I_Material _Material $projection.Product = _Material.Material
[1..1] I_ProductCategoryText _ProductCategory $projection.productcategory = _ProductCategory.ProductCategory and _ProductCategory.Language = $session.system_language
[0..1] I_RetailCharacteristicValueT _ProdCharc1ValueT _Material.ProdCharc1InternalNumber = _ProdCharc1ValueT.CharacteristicInternalID and _ProdCharc1ValueT.RetailCharacteristicValue = _Material.ProductCharacteristic1 and _ProdCharc1ValueT.Language = $session.system_language
[0..1] I_RetailCharacteristicValueT _ProdCharc2ValueT _Material.ProdCharc2InternalNumber = _ProdCharc2ValueT.CharacteristicInternalID and _ProdCharc2ValueT.RetailCharacteristicValue = _Material.ProductCharacteristic2 and _ProdCharc2ValueT.Language = $session.system_language
[0..1] I_RetailCharacteristicValueT _ProdCharc3ValueT _Material.ProdCharc3InternalNumber = _ProdCharc3ValueT.CharacteristicInternalID and _ProdCharc3ValueT.RetailCharacteristicValue = _Material.ProductCharacteristic3 and _ProdCharc3ValueT.Language = $session.system_language
[0..1] I_ProductText _ProductName $projection.Product = _ProductName.Product and _ProductName.Language = $session.system_language

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName IALIGNAASLSITMSL view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Acct assg SO line item with sch. lines 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 (38)

KeyFieldSource TableSource FieldDescription
KEY SalesDocument I_AlignSlsOrdHdrItm SalesDocument SD Document
KEY SalesDocumentItem I_AlignSlsOrdHdrItm SalesDocumentItem Sales Document Item
KEY ScheduleLine
BillOfMaterial BillOfMaterial BOM
SalesDocumentType SalesDocumentType Sales Doc. Type
SalesOrganization SalesOrganization Sales Organization
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
OrganizationDivision OrganizationDivision Org. Division
SoldToParty SoldToParty Sold-to Party
ShipToParty ShipToParty Ship-To Party (obsolete)
OrganizationBPName1 OrganizationBPName1 Name 1
Product Product Product Sold
ProductName _ProductName ProductName Description
HigherLevelItem HigherLevelItem Higher-Lev.Item
ProductOfHigherLevelItem ProductOfHigherLevelItem Vehicle Model
ProductCategory
ScheduleLineCategory
SalesAccountAssignmentType
CrossPlantConfigurableProduct CrossPlantConfigurableProduct Cross-plant CP
ProdCharc1InternalNumber _Material ProdCharc1InternalNumber
ProductCharacteristic1 _Material ProductCharacteristic1 Characteristic 1
ProductCharacteristic2 _Material ProductCharacteristic2 Characteristic 2
ProdCharc2InternalNumber _Material ProdCharc2InternalNumber
ProductCharacteristic3 _Material ProductCharacteristic3 Characteristic 3
ProdCharc3InternalNumber _Material ProdCharc3InternalNumber
SalesOffice SalesOffice Sales Office
SDDocumentReason SDDocumentReason Order Reason
CreationDate CreationDate Time Stamp
FashionCancelDate FashionCancelDate
DeliveryPriority DeliveryPriority Delivery Prior.
_ProductCategory _ProductCategory
_ProdCharc1ValueT _ProdCharc1ValueT
_ProdCharc2ValueT _ProdCharc2ValueT
_ProdCharc3ValueT _ProdCharc3ValueT
_Product _Product
_Schedule _Schedule
_Material _Material
_ProductName _ProductName

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_AlignAcctAssgdSlsItmSl.
-- 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: IALIGNAASLSITMSL

CREATE VIEW I_AlignAcctAssgdSlsItmSl AS
SELECT
  _HeaderItem.SalesDocument AS SalesDocument,
  _HeaderItem.SalesDocumentItem AS SalesDocumentItem,
  _Schedule[1:inner].ScheduleLine AS ScheduleLine,
  BillOfMaterial,
  SalesDocumentType,
  SalesOrganization,
  DistributionChannel,
  OrganizationDivision,
  SoldToParty,
  ShipToParty,
  OrganizationBPName1,
  Product,
  _ProductName.ProductName AS ProductName,
  HigherLevelItem,
  ProductOfHigherLevelItem,
  _Product[1:inner].ProductCategory AS ProductCategory,
  _Schedule[1:inner].ScheduleLineCategory AS ScheduleLineCategory,
  _Schedule[1:inner].SalesAccountAssignmentType AS SalesAccountAssignmentType,
  CrossPlantConfigurableProduct,
  _Material.ProdCharc1InternalNumber AS ProdCharc1InternalNumber,
  _Material.ProductCharacteristic1 AS ProductCharacteristic1,
  _Material.ProductCharacteristic2 AS ProductCharacteristic2,
  _Material.ProdCharc2InternalNumber AS ProdCharc2InternalNumber,
  _Material.ProductCharacteristic3 AS ProductCharacteristic3,
  _Material.ProdCharc3InternalNumber AS ProdCharc3InternalNumber,
  SalesOffice,
  SDDocumentReason,
  CreationDate,
  FashionCancelDate,
  DeliveryPriority
FROM I_AlignSlsOrdHdrItm AS _HeaderItem
LEFT OUTER JOIN I_AlignSlsOrdAcctAssgdSl AS _Schedule ON SalesDocument = _Schedule.SalesDocument AND SalesDocumentItem = _Schedule.SalesDocumentItem  -- association [1..*]
LEFT OUTER JOIN I_Product AS _Product ON Product = _Product.Product  -- association [1..1]
LEFT OUTER JOIN I_Material AS _Material ON Product = _Material.Material  -- association [1..1]
LEFT OUTER JOIN I_ProductCategoryText AS _ProductCategory ON productcategory = _ProductCategory.ProductCategory AND _ProductCategory.Language = $session.system_language  -- association [1..1]
LEFT OUTER JOIN I_RetailCharacteristicValueT AS _ProdCharc1ValueT ON _Material.ProdCharc1InternalNumber = _ProdCharc1ValueT.CharacteristicInternalID AND _ProdCharc1ValueT.RetailCharacteristicValue = _Material.ProductCharacteristic1 AND _ProdCharc1ValueT.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_RetailCharacteristicValueT AS _ProdCharc2ValueT ON _Material.ProdCharc2InternalNumber = _ProdCharc2ValueT.CharacteristicInternalID AND _ProdCharc2ValueT.RetailCharacteristicValue = _Material.ProductCharacteristic2 AND _ProdCharc2ValueT.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_RetailCharacteristicValueT AS _ProdCharc3ValueT ON _Material.ProdCharc3InternalNumber = _ProdCharc3ValueT.CharacteristicInternalID AND _ProdCharc3ValueT.RetailCharacteristicValue = _Material.ProductCharacteristic3 AND _ProdCharc3ValueT.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_ProductText AS _ProductName ON Product = _ProductName.Product AND _ProductName.Language = $session.system_language  -- association [0..1]
;