I_AlignSlsOrdHdrItm
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)
| Source | Alias | Join Type |
|---|---|---|
| I_SalesDocumentItemBasic | I_SalesDocumentItemBasic | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA