I_SADL_Complex_Core
Core view with joins/unions/where-clause
I_SADL_Complex_Core is a CDS View that provides data about "Core view with joins/unions/where-clause" in SAP S/4HANA. It reads from 3 data sources (snwd_so, snwd_so_i, snwd_so_i) and exposes 15 fields with key fields SalesOrder, ItemPosition, ItemPosition.
Data Sources (3)
Annotations (2)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ISADLCOCO | view | |
| EndUserText.label | Core view with joins/unions/where-clause | view |
Fields (15)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SalesOrder | snwd_so | so_id | |
| KEY | ItemPosition | snwd_so_i | so_item_pos | |
| CurrencyCode | snwd_so_i | currency_code | ||
| GrossAmount | snwd_so_i | gross_amount | ||
| NetAmount | snwd_so_i | net_amount | ||
| TaxAmount | snwd_so_i | tax_amount | ||
| AnyFlag | ||||
| ItemPositionkey0000000000asSalesOrder | ||||
| KEY | ItemPosition | snwd_so_i | so_item_pos | |
| CurrencyCode | snwd_so_i | currency_code | ||
| GrossAmount | snwd_so_i | gross_amount | ||
| NetAmount | snwd_so_i | net_amount | ||
| TaxAmount | snwd_so_i | tax_amount | ||
| AnyFlag | ||||
| _Something | _Something |
@AbapCatalog.sqlViewName: 'ISADLCOCO'
@EndUserText.label: 'Core view with joins/unions/where-clause'
define view I_SADL_Complex_Core as
select from snwd_so_i as item
inner join snwd_so as header on item.parent_key = header.node_key
association to i_sadl_complex_core as _Something on _Something.SalesOrder = '1000000000' and _Something.ItemPosition = $projection.ItemPosition
{
key header.so_id as SalesOrder,
key item.so_item_pos as ItemPosition,
item.currency_code as CurrencyCode,
item.gross_amount as GrossAmount,
item.net_amount as NetAmount,
item.tax_amount as TaxAmount,
cast('X' as boole_d preserving type ) as AnyFlag,
_Something
}
where header.delivery_status = 'D'
union all
select from snwd_so_i as item
association to i_sadl_complex_core as _Something on _Something.SalesOrder = '1000000000' and _Something.ItemPosition = $projection.ItemPosition
{
key '0000000000' as SalesOrder,
key item.so_item_pos as ItemPosition,
item.currency_code as CurrencyCode,
item.gross_amount as GrossAmount,
item.net_amount as NetAmount,
item.tax_amount as TaxAmount,
cast(' ' as boole_d preserving type) as AnyFlag,
_Something
}
where item.op_item_pos = '0000000000'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"SNWD_SO",
"SNWD_SO_I"
],
"ASSOCIATED":
[],
"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