I_Sadl_DraftItem2Core
Item core view
I_Sadl_DraftItem2Core is a Basic CDS View that provides data about "Item core view" in SAP S/4HANA. It reads from 2 data sources (snwd_so, snwd_so_i) and exposes 7 fields with key fields SalesOrder, ItemPosition. It has 1 association to related views.
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Sadl_DraftRootCore | _Sadl_DraftRootCore | $projection.SalesOrder = _Sadl_DraftRootCore.SalesOrder |
Annotations (4)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | SADL_DRFT_ITM2_C | view | |
| ClientDependent | false | view | |
| EndUserText.label | Item core view | view | |
| VDM.viewType | #BASIC | view |
@AbapCatalog.sqlViewName: 'SADL_DRFT_ITM2_C'
@ClientDependent: false
@EndUserText.label: 'Item core view'
@VDM.viewType:#BASIC
define view I_Sadl_DraftItem2Core as
select from snwd_so_i as item
inner join snwd_so as header on item.parent_key = header.node_key
association [1..1] to I_Sadl_DraftRootCore as _Sadl_DraftRootCore on $projection.SalesOrder = _Sadl_DraftRootCore.SalesOrder
{
key header.so_id as SalesOrder,
key item.so_item_pos as ItemPosition,
@Semantics.currencyCode: true
item.currency_code as CurrencyCode,
@Semantics.amount.currencyCode: 'CurrencyCode'
item.gross_amount as GrossAmount,
@Semantics.amount.currencyCode: 'CurrencyCode'
item.net_amount as netAmount,
@Semantics.amount.currencyCode: 'CurrencyCode'
item.tax_amount as taxAmount,
@ObjectModel.association.type: [ #TO_COMPOSITION_PARENT, #TO_COMPOSITION_ROOT ]
_Sadl_DraftRootCore
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"SNWD_SO",
"SNWD_SO_I"
],
"ASSOCIATED":
[
"I_SADL_DRAFTROOTCORE"
],
"BASE":
[],
"ANNO_REF":
[],
"VERSION":0
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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