C_SourcingProjectCompare

DDL: C_SOURCINGPROJECTCOMPARE Type: view_entity CONSUMPTION

Sourcing Project

C_SourcingProjectCompare is a Consumption CDS View that provides data about "Sourcing Project" in SAP S/4HANA. It reads from 1 data source (R_SourcingProject) and exposes 34 fields with key field SourcingProjectUUID. It has 6 associations to related views.

Data Sources (1)

SourceAliasJoin Type
R_SourcingProject R_SourcingProject from

Associations (6)

CardinalityTargetAliasCondition
[1..*] C_SrcgProjItemHierarchy _SrcgProjItemHierarchy $projection.SourcingProjectUUID = _SrcgProjItemHierarchy.SourcingProjectUUID
[1..*] C_SrcgProjQuotationCompare _SrcgProjQuotationCompare $projection.SourcingProjectUUID = _SrcgProjQuotationCompare.SourcingProjectUUID
[0..1] C_SrcgProjPurchaserRespVH _SrcgProjPurchaserRespVH $projection.PurchaserRespWorkAgreement = _SrcgProjPurchaserRespVH.PersonWorkAgreement
[1..1] P_SourcingProjectBiddingRatio _SourcingProjectBiddingRatio $projection.SourcingProjectUUID = _SourcingProjectBiddingRatio.SourcingProjectUUID
[1..1] E_SourcingProject _Extension $projection.SourcingProjectUUID = _Extension.SourcingProjectUUID
[0..*] C_SrcgProjItmCmmdtyQtyCompare _SrcgProjItmCmmdtyQtyCompare $projection.SourcingProjectUUID = _SrcgProjItmCmmdtyQtyCompare.SourcingProjectUUID

Annotations (10)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
ObjectModel.representativeKey SourcingProjectUUID view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
VDM.viewType #CONSUMPTION view
Metadata.allowExtensions true view
EndUserText.label Sourcing Project view
Search.searchable true view

Fields (34)

KeyFieldSource TableSource FieldDescription
KEY SourcingProjectUUID SourcingProjectUUID
SourcingProject SourcingProject
SourcingProjectVersion SourcingProjectVersion
SourcingProjectType SourcingProjectType
SourcingProjectName SourcingProjectName
SrcgProjLifecycleStatus SrcgProjLifecycleStatus
SrcgProjTotalTargetAmount SrcgProjTotalTargetAmount
DocumentCurrency DocumentCurrency
QtnLatestSubmissionDateTime QtnLatestSubmissionDateTime
SrcgProjPubgDteTme SrcgProjPubgDteTme
UICT_CBDIsDisabled
NumberOfBiddersWithQuotation _SourcingProjectBiddingRatio NumberOfBiddersWithQuotation
NumberOfBiddersWithRefusal _SourcingProjectBiddingRatio NumberOfBiddersWithRefusal
NumberOfBidders _SourcingProjectBiddingRatio NumberOfBidders
NumberOfBiddersWithoutRsp _SourcingProjectBiddingRatio NumberOfBiddersWithoutRsp
CompanyCode CompanyCode
PurchasingOrganization PurchasingOrganization
PurchasingGroup PurchasingGroup
MaterialGroup MaterialGroup
PurchaserRespWorkAgreement PurchaserRespWorkAgreement
CreatedByUser CreatedByUser
UICT_ProdFprntIsDisabled
_SrcgProjItemHierarchy _SrcgProjItemHierarchy
_SrcgProjQuotationCompare _SrcgProjQuotationCompare
_SrcgProjAllowedCurrency _SrcgProjAllowedCurrency
_SourcingProjectType _SourcingProjectType
_SrcgProjLifecycleStatus _SrcgProjLifecycleStatus
_CompanyCode _CompanyCode
_PurchasingOrganization _PurchasingOrganization
_PurchasingGroup _PurchasingGroup
_MaterialGroup _MaterialGroup
_CreatedByUser _CreatedByUser
_SrcgProjPurchaserRespVH _SrcgProjPurchaserRespVH
_SrcgProjItmCmmdtyQtyCompare _SrcgProjItmCmmdtyQtyCompare
@AccessControl.authorizationCheck: #MANDATORY
@AccessControl.personalData.blocking: #NOT_REQUIRED
@AccessControl.privilegedAssociations: [ '_CreatedByUser' ]

@ObjectModel: { representativeKey: 'SourcingProjectUUID',
                semanticKey: ['SourcingProject', 'SourcingProjectVersion'],

                usageType.dataClass: #TRANSACTIONAL,
                usageType.serviceQuality:  #C,
                usageType.sizeCategory: #L

                }

@VDM.viewType: #CONSUMPTION

@Metadata.allowExtensions: true

@EndUserText.label: 'Sourcing Project'

@Search.searchable: true

define view entity C_SourcingProjectCompare
  as select from R_SourcingProject

  association [1..*] to C_SrcgProjItemHierarchy       as _SrcgProjItemHierarchy       on $projection.SourcingProjectUUID = _SrcgProjItemHierarchy.SourcingProjectUUID

  association [1..*] to C_SrcgProjQuotationCompare    as _SrcgProjQuotationCompare    on $projection.SourcingProjectUUID = _SrcgProjQuotationCompare.SourcingProjectUUID

  association [0..1] to C_SrcgProjPurchaserRespVH     as _SrcgProjPurchaserRespVH     on $projection.PurchaserRespWorkAgreement = _SrcgProjPurchaserRespVH.PersonWorkAgreement

  association [1..1] to P_SourcingProjectBiddingRatio as _SourcingProjectBiddingRatio on $projection.SourcingProjectUUID = _SourcingProjectBiddingRatio.SourcingProjectUUID

  //Extension

  association [1..1] to E_SourcingProject             as _Extension                   on $projection.SourcingProjectUUID = _Extension.SourcingProjectUUID

  association [0..*] to C_SrcgProjItmCmmdtyQtyCompare as _SrcgProjItmCmmdtyQtyCompare on $projection.SourcingProjectUUID = _SrcgProjItmCmmdtyQtyCompare.SourcingProjectUUID

{
  key SourcingProjectUUID,

      @Search: { defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 1 }
      SourcingProject,

      @Search: { defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 1 }
      SourcingProjectVersion,

      @Search: { defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 1 }
      @Consumption.valueHelpDefinition: [{entity.name: 'I_SourcingProjectTypeVH',entity.element:'SourcingProjectType'}]
      @ObjectModel.foreignKey.association: '_SourcingProjectType'
      SourcingProjectType,

      @Search: { defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 0.7 }
      SourcingProjectName,

      @Consumption.valueHelpDefinition: [{ entity.name: 'I_SrcgProjLifecycleStatus', entity.element:'SrcgProjLifecycleStatus'}]
      @ObjectModel.foreignKey.association: '_SrcgProjLifecycleStatus'
      SrcgProjLifecycleStatus,

      SrcgProjTotalTargetAmount,

      @Consumption.valueHelpDefinition: [{ entity: {name: 'I_CurrencyStdVH', element: 'Currency' }}]
      DocumentCurrency,

      QtnLatestSubmissionDateTime,

      SrcgProjPubgDteTme,

      @UI.hidden: true
      @ObjectModel.sort.enabled: false
      @ObjectModel.filter.enabled: false
      @ObjectModel.virtualElement: true
      @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_MMPUR_SRCGPROJ_CMP_TRN_EXIT'
      cast ( '' as boole_d preserving type ) as UICT_CBDIsDisabled,

      _SourcingProjectBiddingRatio.NumberOfBiddersWithQuotation,

      _SourcingProjectBiddingRatio.NumberOfBiddersWithRefusal,

      _SourcingProjectBiddingRatio.NumberOfBidders,

      _SourcingProjectBiddingRatio.NumberOfBiddersWithoutRsp,

      @Consumption.valueHelpDefinition: [{ entity.name: 'I_SrcgProjCompanyCodeVH', entity.element: 'CompanyCode' }]
      @Search: { defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 1 }
      @ObjectModel.foreignKey.association: '_CompanyCode'
      CompanyCode,
      @Consumption.valueHelpDefinition: [{ entity.name: 'I_SrcgProjPurgOrganizationVH', entity.element:'PurchasingOrganization'}]
      @Search: { defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 1 }
      @ObjectModel.foreignKey.association: '_PurchasingOrganization'
      PurchasingOrganization,
      @Consumption.valueHelpDefinition: [{ entity.name: 'I_SrcgProjPurchasingGroupVH', entity.element:'PurchasingGroup'}]
      @Search: { defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 1 }
      @ObjectModel.foreignKey.association: '_PurchasingGroup'
      PurchasingGroup,
      @Consumption.valueHelpDefinition: [{ entity.name: 'I_SrcgProjMaterialGroupVH', entity.element: 'MaterialGroup' }]
      @Search: { defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 1 }
      @ObjectModel.foreignKey.association: '_MaterialGroup'
      MaterialGroup,

      @Consumption.valueHelpDefinition: [{ entity.name: 'C_SrcgProjPurchaserRespVH', entity.element: 'PersonWorkAgreement' }]
      @ObjectModel: { foreignKey.association: '_SrcgProjPurchaserRespVH' }
      PurchaserRespWorkAgreement,
      @Search: { defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 1 }
      @ObjectModel.foreignKey.association: '_CreatedByUser'
      CreatedByUser,

      @UI.hidden: true
      @ObjectModel.sort.enabled: false
      @ObjectModel.filter.enabled: false
      @ObjectModel.virtualElement: true
      @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_MMPUR_SRCGPROJ_CMP_TRN_EXIT'
      cast ( '' as boole_d preserving type ) as UICT_ProdFprntIsDisabled,
      /* Associations */
      @ObjectModel.filter.enabled: false
      _SrcgProjItemHierarchy,
      @ObjectModel.filter.enabled: false
      _SrcgProjQuotationCompare,
      @ObjectModel.filter.enabled: false
      _SrcgProjAllowedCurrency,

      //foreign key

      @ObjectModel.filter.enabled: false
      _SourcingProjectType,
      @ObjectModel.filter.enabled: false
      _SrcgProjLifecycleStatus,
      @ObjectModel.filter.enabled: false
      _CompanyCode,
      @ObjectModel.filter.enabled: false
      _PurchasingOrganization,
      @ObjectModel.filter.enabled: false
      _PurchasingGroup,
      @ObjectModel.filter.enabled: false
      _MaterialGroup,

      _CreatedByUser,
      @ObjectModel.filter.enabled: false
      _SrcgProjPurchaserRespVH,
      @ObjectModel.filter.enabled: false
      _SrcgProjItmCmmdtyQtyCompare

}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"P_SOURCINGPROJECTBIDDINGRATIO",
"R_SOURCINGPROJECT"
],
"ASSOCIATED":
[
"C_SRCGPROJITEMHIERARCHY",
"C_SRCGPROJITMCMMDTYQTYCOMPARE",
"C_SRCGPROJPURCHASERRESPVH",
"C_SRCGPROJQUOTATIONCOMPARE",
"I_COMPANYCODE",
"I_MATERIALGROUP",
"I_PURCHASINGGROUP",
"I_PURCHASINGORGANIZATION",
"I_SOURCINGPROJECTTYPE",
"I_SRCGPROJALLOWEDCURRENCY",
"I_SRCGPROJLIFECYCLESTATUS",
"I_USERCONTACTCARD"
],
"BASE":
[
"R_SOURCINGPROJECT"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/