I_DFS_AllwncPlanHierNodeBasic

DDL: I_DFS_ALLWNCPLANHIERNODEBASIC SQL: IDFSALLWNCPLBHN Type: view COMPOSITE

Plan Hier. Node with ref to Basic

I_DFS_AllwncPlanHierNodeBasic is a Composite CDS View that provides data about "Plan Hier. Node with ref to Basic" in SAP S/4HANA. It reads from 2 data sources (I_FrcElmntOrgWithAuthorization, I_DFS_AllwncPlanBasic) and exposes 28 fields with key field DfsAllwncPlanUUID. It has 1 association to related views.

Data Sources (2)

SourceAliasJoin Type
I_FrcElmntOrgWithAuthorization _auth inner
I_DFS_AllwncPlanBasic AllwncPlanBasic from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_DFS_AllwncPlanHierNode _Parent $projection.DfsAllwncPlanPreviousPlanUUID = _Parent.DfsAllwncPlanUUID

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName IDFSALLWNCPLBHN view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Plan Hier. Node with ref to Basic view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.dataCategory #HIERARCHY view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view

Fields (28)

KeyFieldSource TableSource FieldDescription
KEY DfsAllwncPlanUUID DfsAllwncPlanUUID
DfsAllwncPlanID DfsAllwncPlanID
DfsAllwncPlanDescription DfsAllwncPlanDescription
DfsAllwncPlanValdtyStrtDate DfsAllwncPlanValdtyStrtDate
DfsAllwncPlanValdtyEndDate DfsAllwncPlanValdtyEndDate
FlxblMatlPlngObjectUUID FlxblMatlPlngObjectUUID
FlxblMatlPlngObjectID FlxblMatlPlngObjectID
FlxblMatlPlngObjVariantUUID FlxblMatlPlngObjVariantUUID
FlxblMatlPlngObjVariantID FlxblMatlPlngObjVariantID
Product Product
DfsAllwncPlanBaseType DfsAllwncPlanBaseType
DfsAllwncPlanAllowedQuantity DfsAllwncPlanAllowedQuantity
DfsAllwncPlanQuantityUnit DfsAllwncPlanQuantityUnit
FrcElmntOrgUsageType FrcElmntOrgUsageType
DfsAllwncPlanMultiLevel DfsAllwncPlanMultiLevel
DfsAllwncPlanPreviousPlanUUID DfsAllwncPlanPreviousPlanUUID
DfsAllwncPlanComment DfsAllwncPlanComment
ForceElementOrgUUID ForceElementOrgUUID
ForceElementOrgID I_DFS_AllwncPlanBasic ForceElementOrgID
DfsAllwncPlanIsCompleted DfsAllwncPlanIsCompleted
DfsAllwncPlanStatusObject DfsAllwncPlanStatusObject
DfsAllwncPlanStatusCode DfsAllwncPlanStatusCode
DfsAllwncPlanStatusProfile DfsAllwncPlanStatusProfile
DfsAllwncPlanCreationDateTime DfsAllwncPlanCreationDateTime
DfsAllwncPlanCreatedByUser DfsAllwncPlanCreatedByUser
DfsAllwncPlanChangeDateTime DfsAllwncPlanChangeDateTime
DfsAllwncPlanLastChgdByUser DfsAllwncPlanLastChgdByUser
_Parent _Parent
@AbapCatalog.sqlViewName: 'IDFSALLWNCPLBHN'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Plan Hier. Node with ref to Basic'

@ClientHandling.algorithm: #SESSION_VARIABLE

@ObjectModel.dataCategory: #HIERARCHY

@VDM.viewType:#COMPOSITE
@VDM.lifecycle.contract.type:        #SAP_INTERNAL_API

@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #L

define view I_DFS_AllwncPlanHierNodeBasic 
  as select from I_DFS_AllwncPlanBasic          as AllwncPlanBasic
    inner join   I_FrcElmntOrgWithAuthorization as _auth on AllwncPlanBasic.ForceElementOrgID = _auth.ForceElementOrgID
   association [0..1] to I_DFS_AllwncPlanHierNode as _Parent   on $projection.DfsAllwncPlanPreviousPlanUUID = _Parent.DfsAllwncPlanUUID


{
  key  DfsAllwncPlanUUID,
       DfsAllwncPlanID,
       DfsAllwncPlanDescription,
       DfsAllwncPlanValdtyStrtDate,
       DfsAllwncPlanValdtyEndDate,
       FlxblMatlPlngObjectUUID,
       FlxblMatlPlngObjectID,
       FlxblMatlPlngObjVariantUUID,
       FlxblMatlPlngObjVariantID,
       Product,
       DfsAllwncPlanBaseType,
       DfsAllwncPlanAllowedQuantity,
       DfsAllwncPlanQuantityUnit,
       FrcElmntOrgUsageType,
       DfsAllwncPlanMultiLevel,
       DfsAllwncPlanPreviousPlanUUID,

       DfsAllwncPlanComment,
       ForceElementOrgUUID,
       AllwncPlanBasic.ForceElementOrgID as ForceElementOrgID,
       //   ForceElementOrgID,

       DfsAllwncPlanIsCompleted,
       DfsAllwncPlanStatusObject,
       DfsAllwncPlanStatusCode,
       DfsAllwncPlanStatusProfile,


       /*-- Admin data --*/
       @Semantics.systemDateTime.createdAt: true
       DfsAllwncPlanCreationDateTime,
       @Semantics.user.createdBy: true
       DfsAllwncPlanCreatedByUser,
       @Semantics.systemDateTime.lastChangedAt: true
       DfsAllwncPlanChangeDateTime,
       @Semantics.user.lastChangedBy: true
       DfsAllwncPlanLastChgdByUser,
       case
            when
            (  DfsAllwncPlanPreviousPlanUUID  = hextobin( '00000000000000000000000000000000' ) ) then cast( 'X' as boole_d preserving type )
            else
            cast( ' ' as boole_d preserving type )
          end                            as DfsPlanIsRoot,

       /* Associations */
       _Parent

}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_DFS_ALLWNCPLANBASIC",
"I_FRCELMNTORGWITHAUTHORIZATION"
],
"ASSOCIATED":
[
"I_DFS_ALLWNCPLANHIERNODE"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/