I_ProjectVersionData

DDL: I_PROJECTVERSIONDATA Type: view BASIC

Project Version Data

I_ProjectVersionData is a Basic CDS View that provides data about "Project Version Data" in SAP S/4HANA. It reads from 1 data source (vsproj_cn) and exposes 69 fields with key fields ProjectInternalID, Version. It has 12 associations to related views.

Data Sources (1)

SourceAliasJoin Type
vsproj_cn vsproj_cn from

Associations (12)

CardinalityTargetAliasCondition
[0..1] I_ProjectResponsiblePerson _ResponsiblePerson $projection.ResponsiblePerson = _ResponsiblePerson.ResponsiblePerson
[0..1] I_ProjectApplicant _ProjectApplicant $projection.ApplicantCode = _ProjectApplicant.ApplicantCode
[1..1] I_ProjectProfileCode _ProjectProfileCode $projection.ProjectProfileCode = _ProjectProfileCode.ProjectProfileCode
[1..*] I_ProfitCenter _ProfitCenter $projection.ProfitCenter = _ProfitCenter.ProfitCenter and $projection.ControllingArea = _ProfitCenter.ControllingArea
[1..*] I_NetworkProfile _NetworkProfile $projection.NetworkProfile = _NetworkProfile.NetworkProfile
[1..*] I_TaxJurisdiction _TaxJurisdiction $projection.TaxJurisdiction = _TaxJurisdiction.TaxJurisdiction
[1..1] I_Interestcalculationprofile _ProjInterestCalcProfile $projection.ProjInterestCalcProfile = _ProjInterestCalcProfile.ProjInterestCalcProfile
[1..1] I_FunctionalArea _FunctionalArea $projection.FunctionalArea = _FunctionalArea.FunctionalArea
[1..1] I_PlanningMethod _ProjBasicDatePlanMethName $projection.PlanningMethForProjBasicDate = _ProjBasicDatePlanMethName.PlanningMethForProjBasicDate
[1..1] I_PlanningMethod _ProjFcstdDatePlanMethName $projection.PlanningMethForProjFcstdDate = _ProjFcstdDatePlanMethName.PlanningMethForProjBasicDate
[1..1] I_Wbsschedulingprofile _Wbsschedulingprofile $projection.WBSSchedulingProfile = _Wbsschedulingprofile.WBSSchedulingProfile
[1..1] I_ControllingObjectClass _ControllingObjectClass $projection.ControllingObjectClass = _ControllingObjectClass.ControllingObjectClass

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName IPROJVERSDAT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Project Version Data view
ObjectModel.representativeKey ProjectInternalID view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #BASIC view

Fields (69)

KeyFieldSource TableSource FieldDescription
KEY ProjectInternalID
KEY Version
ProjectExternalID vsproj_cn pspid_edit
Project
ProjectDescription
ProjectProfileCode vsproj_cn profl
ResponsiblePerson
ResponsiblePersonName
ProfitCenter vsproj_cn prctr
ControllingArea
PlannedStartDate
PlannedEndDate
IsMarkedForDeletion
ApplicantCode
ProjectObject vsproj_cn objnr
PlanningMethForProjBasicDate
PlanningMethForProjFcstdDate
CompanyCode
CreatedByUser
CreationDate
LastChangedByUser
LastChangeDate
ApplicantName vsproj_cn astna
BusinessArea
Plant vsproj_cn werks
CostCenter
ControllingObjectClass
Currency
FactoryCalendar
NetworkProfile vsproj_cn vprof
ProjectHasOwnStock
WBSIsStatisticalWBSElement vsproj_cn xstat
TaxJurisdiction
ProjInterestCalcProfile
InvestmentProfile vsproj_cn imprf
BudgetProfile vsproj_cn bprof
PlanningProfile vsproj_cn pprof
FunctionalArea
SchedulingDurationUnit
WBSSchedulingProfile
FreeDefinedTableFieldSemantic vsproj_cn slwid
FreeDefinedAttribute01
FreeDefinedAttribute02
FreeDefinedAttribute03
FreeDefinedAttribute04
FreeDefinedQuantity1
FreeDefinedQuantity1Unit
FreeDefinedQuantity2
FreeDefinedQuantity2Unit
FreeDefinedAmount1
FreeDefinedAmount1Currency
FreeDefinedAmount2
FreeDefinedAmount2Currency
FreeDefinedDate1
FreeDefinedDate2
FreeDefinedIndicator1
FreeDefinedIndicator2
_ResponsiblePerson _ResponsiblePerson
_ProjectApplicant _ProjectApplicant
_ProjectProfileCode _ProjectProfileCode
_NetworkProfile _NetworkProfile
_ProjInterestCalcProfile _ProjInterestCalcProfile
_FunctionalArea _FunctionalArea
_TaxJurisdiction _TaxJurisdiction
_Wbsschedulingprofile _Wbsschedulingprofile
_ProfitCenter _ProfitCenter
_ProjBasicDatePlanMethName _ProjBasicDatePlanMethName
_ProjFcstdDatePlanMethName _ProjFcstdDatePlanMethName
_ControllingObjectClass _ControllingObjectClass
@AbapCatalog: {
  sqlViewName: 'IPROJVERSDAT',
  compiler.compareFilter: true,
  preserveKey: true
}
@AccessControl.authorizationCheck: #CHECK
@ClientHandling.algorithm: #SESSION_VARIABLE
@EndUserText.label: 'Project Version Data'
@ObjectModel: {
    representativeKey: 'ProjectInternalID',
    usageType: {
        serviceQuality: #B,
        sizeCategory : #L,
        dataClass: #TRANSACTIONAL
    }
}
@VDM.viewType: #BASIC

define view I_ProjectVersionData
  as select from vsproj_cn
  association [0..1] to I_ProjectResponsiblePerson   as _ResponsiblePerson         on  $projection.ResponsiblePerson = _ResponsiblePerson.ResponsiblePerson
  association [0..1] to I_ProjectApplicant           as _ProjectApplicant          on  $projection.ApplicantCode = _ProjectApplicant.ApplicantCode
  association [1..1] to I_ProjectProfileCode         as _ProjectProfileCode        on  $projection.ProjectProfileCode = _ProjectProfileCode.ProjectProfileCode
  association [1..*] to I_ProfitCenter               as _ProfitCenter              on  $projection.ProfitCenter    = _ProfitCenter.ProfitCenter
                                                                                   and $projection.ControllingArea = _ProfitCenter.ControllingArea
  association [1..*] to I_NetworkProfile             as _NetworkProfile            on  $projection.NetworkProfile = _NetworkProfile.NetworkProfile
  association [1..*] to I_TaxJurisdiction            as _TaxJurisdiction           on  $projection.TaxJurisdiction = _TaxJurisdiction.TaxJurisdiction
  association [1..1] to I_Interestcalculationprofile as _ProjInterestCalcProfile   on  $projection.ProjInterestCalcProfile = _ProjInterestCalcProfile.ProjInterestCalcProfile
  association [1..1] to I_FunctionalArea             as _FunctionalArea            on  $projection.FunctionalArea = _FunctionalArea.FunctionalArea
  association [1..1] to I_PlanningMethod             as _ProjBasicDatePlanMethName on  $projection.PlanningMethForProjBasicDate = _ProjBasicDatePlanMethName.PlanningMethForProjBasicDate
  association [1..1] to I_PlanningMethod             as _ProjFcstdDatePlanMethName on  $projection.PlanningMethForProjFcstdDate = _ProjFcstdDatePlanMethName.PlanningMethForProjBasicDate
  association [1..1] to I_Wbsschedulingprofile       as _Wbsschedulingprofile      on  $projection.WBSSchedulingProfile = _Wbsschedulingprofile.WBSSchedulingProfile
  association [1..1] to I_ControllingObjectClass     as _ControllingObjectClass    on  $projection.ControllingObjectClass = _ControllingObjectClass.ControllingObjectClass

{
  key cast ( vsproj_cn.pspnr as ps_s4_proj_pspnr preserving type )  as ProjectInternalID,
  key cast ( vsproj_cn.vsnmr as ps_s4_vsnmr preserving type )       as Version,
      @ObjectModel.text.element: 'ProjectDescription'
      vsproj_cn.pspid_edit                                          as ProjectExternalID,
      cast( vsproj_cn.pspid as cc_ps_pspid )                        as Project,
      cast( vsproj_cn.post1 as ps_s4_proj_post1_v1 preserving type) as ProjectDescription,
      vsproj_cn.profl                                               as ProjectProfileCode,
      cast ( vsproj_cn.vernr as ps_s4_vernr )                       as ResponsiblePerson,
      cast ( vsproj_cn.verna as ps_s4_verna )                       as ResponsiblePersonName,
      vsproj_cn.prctr                                               as ProfitCenter,
      cast ( vsproj_cn.vkokr as kokrs )                             as ControllingArea,
      @Semantics.calendar.dayOfMonth: true
      cast ( vsproj_cn.plfaz as ps_plfaz_chg )                      as PlannedStartDate,
      @Semantics.calendar.dayOfMonth: true
      cast ( vsproj_cn.plsez as ps_plsez_chg )                      as PlannedEndDate,
      cast ( vsproj_cn.loevm as ps_s4_loevm )                       as IsMarkedForDeletion,
      cast ( vsproj_cn.astnr as ps_s4_astnr )                       as ApplicantCode,
      vsproj_cn.objnr                                               as ProjectObject,
      cast ( vsproj_cn.vgplf as ps_s4_vgplf )                       as PlanningMethForProjBasicDate,
      cast ( vsproj_cn.ewplf as ps_s4_ewplf )                       as PlanningMethForProjFcstdDate,
      cast ( vsproj_cn.vbukr as bukrs )                             as CompanyCode,
      cast (vsproj_cn.ernam as ernam )                              as CreatedByUser,
      cast (vsproj_cn.erdat as erdat)                               as CreationDate,
      cast ( vsproj_cn.aenam as ps_s4_aenam )                       as LastChangedByUser,
      cast ( vsproj_cn.aedat as ps_s4_aedat )                       as LastChangeDate,
      vsproj_cn.astna                                               as ApplicantName,
      cast ( vsproj_cn.vgsbr as gsber )                             as BusinessArea,
      vsproj_cn.werks                                               as Plant,
      cast ( vsproj_cn.kostl as kostl )                             as CostCenter,
      cast ( vsproj_cn.scope as ps_s4_scope_cv )                    as ControllingObjectClass,
      cast ( vsproj_cn.sprog as pshlp_forecast_start_de )           as ForecastedStartDate,
      cast ( vsproj_cn.eprog as ps_s4_forecast_finish )             as ForecastedEndDate,
      cast ( vsproj_cn.pwhie as ps_pwhie )                          as Currency,
      cast ( vsproj_cn.kalid as appca )                             as FactoryCalendar,
      vsproj_cn.vprof                                               as NetworkProfile,
      cast ( vsproj_cn.besta as psb_stock )                         as ProjectHasOwnStock,
      vsproj_cn.xstat                                               as WBSIsStatisticalWBSElement,
      cast ( vsproj_cn.txjcd as wb2_txjcd_busvol )                  as TaxJurisdiction,
      cast ( vsproj_cn.zschm as ps_zschm )                          as ProjInterestCalcProfile,
      vsproj_cn.imprf                                               as InvestmentProfile,
      vsproj_cn.bprof                                               as BudgetProfile,
      vsproj_cn.pprof                                               as PlanningProfile,
      cast ( vsproj_cn.func_area as fkber )                         as FunctionalArea,
      cast ( vsproj_cn.zteht as cgpl_duration_unit )                as SchedulingDurationUnit,
      cast ( vsproj_cn.scprf as ps_s4_schdprf )                     as WBSSchedulingProfile,
      vsproj_cn.slwid                                               as FreeDefinedTableFieldSemantic,
      cast ( vsproj_cn.usr00 as usr00proj preserving type )         as FreeDefinedAttribute01,
      cast ( vsproj_cn.usr01 as usr01proj preserving type )         as FreeDefinedAttribute02,
      cast ( vsproj_cn.usr02 as usr02proj preserving type )         as FreeDefinedAttribute03,
      cast ( vsproj_cn.usr03 as usr03proj preserving type )         as FreeDefinedAttribute04,
      @Semantics.quantity.unitOfMeasure:'FreeDefinedQuantity1Unit'
      cast ( vsproj_cn.usr04 as usr04proj preserving type )         as FreeDefinedQuantity1,
      cast ( vsproj_cn.use04 as use04proj preserving type )         as FreeDefinedQuantity1Unit,
      @Semantics.quantity.unitOfMeasure:'FreeDefinedQuantity2Unit'
      cast ( vsproj_cn.usr05 as usr05proj preserving type )         as FreeDefinedQuantity2,
      cast ( vsproj_cn.use05 as use05proj preserving type )         as FreeDefinedQuantity2Unit,
      @Semantics.amount.currencyCode: 'FreeDefinedAmount1Currency'
      cast ( vsproj_cn.usr06 as usr06proj preserving type )         as FreeDefinedAmount1,
      cast ( vsproj_cn.use06 as use06proj preserving type )         as FreeDefinedAmount1Currency,
      @Semantics.amount.currencyCode: 'FreeDefinedAmount2Currency'
      cast ( vsproj_cn.usr07 as usr07proj preserving type )         as FreeDefinedAmount2,
      cast ( vsproj_cn.use07 as use07proj preserving type )         as FreeDefinedAmount2Currency,
      cast ( vsproj_cn.usr08 as usr08proj preserving type )         as FreeDefinedDate1,
      cast ( vsproj_cn.usr09 as usr09proj preserving type )         as FreeDefinedDate2,
      cast ( vsproj_cn.usr10 as usr10proj preserving type )         as FreeDefinedIndicator1,
      cast ( vsproj_cn.usr11 as usr11proj preserving type )         as FreeDefinedIndicator2,

      _ResponsiblePerson,
      _ProjectApplicant,
      _ProjectProfileCode,
      _NetworkProfile,
      _ProjInterestCalcProfile,
      _FunctionalArea,
      _TaxJurisdiction,
      _Wbsschedulingprofile,
      _ProfitCenter,
      _ProjBasicDatePlanMethName,
      _ProjFcstdDatePlanMethName,
      _ControllingObjectClass
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"VSPROJ_CN"
],
"ASSOCIATED":
[
"I_CONTROLLINGOBJECTCLASS",
"I_FUNCTIONALAREA",
"I_INTERESTCALCULATIONPROFILE",
"I_NETWORKPROFILE",
"I_PLANNINGMETHOD",
"I_PROFITCENTER",
"I_PROJECTAPPLICANT",
"I_PROJECTPROFILECODE",
"I_PROJECTRESPONSIBLEPERSON",
"I_TAXJURISDICTION",
"I_WBSSCHEDULINGPROFILE"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/