P_SDMCAPACITYPPOCMIGRATION
SDM CDS for Capacity PPOC Migration
P_SDMCAPACITYPPOCMIGRATION is a Basic CDS View that provides data about "SDM CDS for Capacity PPOC Migration" in SAP S/4HANA. It reads from 3 data sources (kako, /sapapo/res_head, /sapapo/reskey) and exposes 8 fields with key field CapacityID.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| kako | _CapacityHeader | from |
| /sapapo/res_head | _ResourceHead | inner |
| /sapapo/reskey | _ResourceKey | inner |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PSDMPPOC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | SDM CDS for Capacity PPOC Migration | view | |
| VDM.viewType | #BASIC | view | |
| VDM.private | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (8)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CapacityID | kako | kapid | |
| OffsetWrtCurrDate | _ResourcePpoc | offset_wrt_curr_date | ||
| NormalCapCost | _ResourcePpoc | normal_cap_cost | ||
| MinimumCapCost | _ResourcePpoc | minimum_cap_cost | ||
| ExtendedCapCost | _ResourcePpoc | extended_cap_cost | ||
| MinimumCapUtil | _ResourcePpoc | minimum_cap_util | ||
| ExtendedCapUtil | _ResourcePpoc | extended_cap_util | ||
| CampaignPpo | /sapapo/res_head | campaign_snp |
@AbapCatalog.sqlViewName: 'PSDMPPOC'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'SDM CDS for Capacity PPOC Migration'
@VDM.viewType: #BASIC
@VDM.private: true
@ObjectModel.usageType: {serviceQuality: #C, sizeCategory: #XL, dataClass: #TRANSACTIONAL}
@ClientHandling.algorithm: #SESSION_VARIABLE
define view P_SDMCAPACITYPPOCMIGRATION
as select from kako as _CapacityHeader
inner join /sapapo/reskey as _ResourceKey on _ResourceKey.r3kapid = _CapacityHeader.kapid
inner join /sapapo/res_head as _ResourceHead on _ResourceHead.resuid = _ResourceKey.resuid
and _ResourceHead.simversid = '000'
left outer to many join /sapapo/res_ppoc as _ResourcePpoc on _ResourcePpoc.resuid = _ResourceHead.resuid
and _ResourcePpoc.simversid = _ResourceHead.simversid
and _ResourcePpoc.simsessid = _ResourceHead.simsessid
left outer to many join kappoc as _CostConstraints on _CostConstraints.kapid = _CapacityHeader.kapid
and _CostConstraints.offset_wrt_curr_date = _ResourcePpoc.offset_wrt_curr_date
{
key _CapacityHeader.kapid as CapacityID,
key case
when ( _CostConstraints.kapid is null
and _ResourcePpoc.offset_wrt_curr_date is not initial )
then '00'
when ( _ResourceHead.campaign_snp is not initial
and _ResourceHead.campaign_snp <> _CapacityHeader.campaign_ppo )
then '00'
else '01' end as MigrationStatus,
_ResourcePpoc.offset_wrt_curr_date as OffsetWrtCurrDate,
_ResourcePpoc.normal_cap_cost as NormalCapCost,
_ResourcePpoc.minimum_cap_cost as MinimumCapCost,
_ResourcePpoc.extended_cap_cost as ExtendedCapCost,
_ResourcePpoc.minimum_cap_util as MinimumCapUtil,
_ResourcePpoc.extended_cap_util as ExtendedCapUtil,
_ResourceHead.campaign_snp as CampaignPpo
}
where
_ResourceHead.campaign_snp is not initial
or _ResourcePpoc.offset_wrt_curr_date is not initial
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"/SAPAPO/RESKEY",
"/SAPAPO/RES_HEAD",
"/SAPAPO/RES_PPOC",
"KAKO",
"KAPPOC"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
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