P_ProductWorkSchedulingWD
P_ProductWorkSchedulingWD is a Composite CDS View in SAP S/4HANA. It reads from 6 data sources and exposes 24 fields with key fields Draftkey, ActiveProduct, ActivePlant, ActiveProduct, ActivePlant.
Data Sources (6)
| Source | Alias | Join Type |
|---|---|---|
| I_ProductWorkScheduling | ActiveDocument | from |
| I_DraftAdministrativeData | DraftAdministrativeData | inner |
| P_ProductWorkSchedulingD | DraftDocument | left_outer |
| P_ProductWorkSchedulingD | DraftDocument | union_all |
| P_ProductPlantD | DraftPlantDocument | inner |
| P_ProductD | DraftRootDocument | inner |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PPRDWORKSCHEDWD | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| ClientDependent | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (24)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Draftkey | |||
| KEY | ActiveProduct | I_ProductWorkScheduling | Product | |
| KEY | ActivePlant | I_ProductWorkScheduling | Plant | |
| ParentDraftKey | ||||
| Product | I_ProductWorkScheduling | Product | ||
| Plant | I_ProductWorkScheduling | Plant | ||
| MaterialBaseQuantity | I_ProductWorkScheduling | MaterialBaseQuantity | ||
| UnlimitedOverDelivIsAllowed | I_ProductWorkScheduling | UnlimitedOverDelivIsAllowed | ||
| OverDelivToleranceLimit | I_ProductWorkScheduling | OverDelivToleranceLimit | ||
| UnderDelivToleranceLimit | I_ProductWorkScheduling | UnderDelivToleranceLimit | ||
| IsActiveEntity | ||||
| HasActiveEntity | ||||
| RootDraftKey | ||||
| DraftKey | ||||
| KEY | ActiveProduct | P_ProductWorkSchedulingD | ActiveProduct | |
| KEY | ActivePlant | P_ProductWorkSchedulingD | ActivePlant | |
| ParentDraftKey | P_ProductWorkSchedulingD | ParentDraftKey | ||
| product | P_ProductD | product | ||
| plant | P_ProductPlantD | plant | ||
| IsActiveEntity | ||||
| HasActiveEntity | P_ProductWorkSchedulingD | HasActiveEntity | ||
| HasDraftEntity | ||||
| rootdraftkey | P_ProductWorkSchedulingD | rootdraftkey | ||
| DraftAdministrativeDataUUID |
@AbapCatalog.sqlViewName: 'PPRDWORKSCHEDWD'
@VDM.viewType: #COMPOSITE
@VDM.private: true
@ClientDependent: true
@AbapCatalog.compiler.compareFilter: true
//@EndUserText.label: 'Product Work Scheduling Union (draft)'
@AccessControl.authorizationCheck: #NOT_REQUIRED
define view P_ProductWorkSchedulingWD as
select from I_ProductWorkScheduling as ActiveDocument
left outer join P_ProductWorkSchedulingD as DraftDocument on DraftDocument.ActiveProduct = ActiveDocument.Product
and DraftDocument.ActivePlant = ActiveDocument.Plant
{
key cast ( hextobin('00000000000000000000000000000000') as sysuuid_x ) as Draftkey,
key ActiveDocument.Product as ActiveProduct,
key ActiveDocument.Plant as ActivePlant,
cast ( hextobin('00000000000000000000000000000000') as sysuuid_x ) as ParentDraftKey,
ActiveDocument.Product,
ActiveDocument.Plant,
ActiveDocument.MaterialBaseQuantity,
ActiveDocument.UnlimitedOverDelivIsAllowed,
ActiveDocument.OverDelivToleranceLimit,
ActiveDocument.UnderDelivToleranceLimit,
cast( 'X' as boole_d ) as IsActiveEntity,
cast( ' ' as boole_d ) as HasActiveEntity,
cast(
case
when DraftDocument.DraftKey is null
then ' '
else 'X'
end as boole_d) as HasDraftEntity,
cast ( hextobin('00000000000000000000000000000000') as sysuuid_x ) as RootDraftKey,
cast(DraftDocument.rootdraftkey as sysuuid_x ) as DraftAdministrativeDataUUID
}
union all
select from P_ProductWorkSchedulingD as DraftDocument
inner join P_ProductPlantD as DraftPlantDocument on DraftPlantDocument.Draftkey = DraftDocument.ParentDraftKey
inner join P_ProductD as DraftRootDocument on DraftRootDocument.Draftkey = DraftDocument.rootdraftkey
inner join I_DraftAdministrativeData as DraftAdministrativeData
on DraftAdministrativeData.DraftUUID = DraftDocument.rootdraftkey
{
key DraftDocument.DraftKey,
key DraftDocument.ActiveProduct,
key DraftDocument.ActivePlant,
DraftDocument.ParentDraftKey ,
DraftRootDocument.product,
DraftPlantDocument.plant,
DraftDocument.materialbasequantity,
DraftDocument.unlimitedoverdelivisallowed,
DraftDocument.overdelivtolerancelimit,
DraftDocument.underdelivtolerancelimit,
cast( ' ' as boole_d ) as IsActiveEntity,
DraftDocument.HasActiveEntity,
cast( ' ' as boole_d ) as HasDraftEntity ,
DraftDocument.rootdraftkey ,
cast(DraftDocument.rootdraftkey as sysuuid_x ) as DraftAdministrativeDataUUID }
where
DraftAdministrativeData.CreatedByUser = $session.user or DraftAdministrativeData.InProcessByUser = $session.user
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_DRAFTADMINISTRATIVEDATA",
"I_PRODUCTWORKSCHEDULING",
"P_PRODUCTD",
"P_PRODUCTPLANTD",
"P_PRODUCTWORKSCHEDULINGD"
],
"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