R_SourcingProject

DDL: R_SOURCINGPROJECT Type: view BASIC

Sourcing Project

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

Data Sources (1)

SourceAliasJoin Type
mmsrcgproj mmsrcgproj from

Associations (18)

CardinalityTargetAliasCondition
[0..*] R_SourcingProjectItem _SourcingProjectItem $projection.SourcingProjectUUID = _SourcingProjectItem.SourcingProjectUUID
[0..*] I_SourcingProjectQuotation _SourcingProjectQuotation $projection.SourcingProjectUUID = _SourcingProjectQuotation.SourcingProjectUUID
[0..*] I_SrcgProjAllowedCurrency _SrcgProjAllowedCurrency $projection.SourcingProjectUUID = _SrcgProjAllowedCurrency.SourcingProjectUUID
[0..*] R_SrcgProjAllwdSuplrContact _SrcgProjAllwdSuplrContact $projection.SourcingProjectUUID = _SrcgProjAllwdSuplrContact.SourcingProjectUUID
[0..*] I_SourcingProjectMilestone _SourcingProjectMilestone $projection.SourcingProjectUUID = _SourcingProjectMilestone.SourcingProjectUUID
[0..1] I_Currency _DocumentCurrency $projection.DocumentCurrency = _DocumentCurrency.Currency
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..1] I_MaterialGroup _MaterialGroup $projection.MaterialGroup = _MaterialGroup.MaterialGroup
[0..1] I_PurchasingGroup _PurchasingGroup $projection.PurchasingGroup = _PurchasingGroup.PurchasingGroup
[0..1] I_PurchasingOrganization _PurchasingOrganization $projection.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization
[0..1] I_SourcingProjectType _SourcingProjectType $projection.SourcingProjectType = _SourcingProjectType.SourcingProjectType
[0..1] I_SourcingProjectPhase _SourcingProjectPhase $projection.SourcingProjectPhase = _SourcingProjectPhase.SourcingProjectPhase
[0..1] I_SrcgProjLifecycleStatus _SrcgProjLifecycleStatus $projection.SrcgProjLifecycleStatus = _SrcgProjLifecycleStatus.SrcgProjLifecycleStatus
[0..1] I_SrcgProjPubdSuplrListBP _SrcgProjPubdSuplrListBP $projection.SourcingProjectUUID = _SrcgProjPubdSuplrListBP.SourcingProjectUUID
[0..1] I_UserContactCard _CreatedByUser $projection.CreatedByUser = _CreatedByUser.ContactCardID
[0..1] I_UserContactCard _ChangedByUser $projection.LastChangedByUser = _ChangedByUser.ContactCardID
[0..1] I_EmplContactCard _PurchaserResponsible $projection.PurchaserRespWorkAgreement = _PurchaserResponsible.PersonWorkAgreement
[0..1] R_SourcingProject _SourceSourcingProject $projection.SourceSourcingProjectUUID = _SourceSourcingProject.SourcingProjectUUID

Annotations (13)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName RSRCGPROJ view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #MANDATORY view
ObjectModel.representativeKey SourcingProjectUUID view
ObjectModel.sapObjectNodeType.name SourcingProject view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #M view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
EndUserText.label Sourcing Project view

Fields (74)

KeyFieldSource TableSource FieldDescription
KEY SourcingProjectUUID sourcingprojectuuid
SourcingProject sourcingproject
SourcingProjectVersion sourcingprojectversion
SourcingProjectType sourcingprojecttype
SourcingProjectName sourcingprojectname
SrcgProjLifecycleStatus srcgprojlifecyclestatus
SrcgProjApprovalStatus srcgprojapprovalstatus
SourcingProjectPhase sourcingprojectphase
SrcgProjRevisionSts srcgprojrevisionsts
SrcgProjActvtnSts srcgprojactvtnsts
SrcgProjPubgSts srcgprojpubgsts
SourcingSupplierListUUID sourcingsupplierlistuuid
CompanyCode companycode
PurchasingGroup purchasinggroup
PurchasingOrganization purchasingorganization
MaterialGroup mmsrcgproj materialgroup
DocumentCurrency documentcurrency
SrcgProjTotalTargetAmount srcgprojtotaltargetamount
PurchaserRespWorkAgreement purchaserrespworkagreement
QtnLatestSubmissionDateTime qtnlatestsubmissiondatetime
LastChangedByUser lastchangedbyuser
CreatedByUser createdbyuser
LastChangeDateTime lastchangedatetime
CreationDateTime creationdatetime
IncotermsClassification incotermsclassification
IncotermsTransferLocation incotermstransferlocation
IncotermsVersion incotermsversion
IncotermsLocation1 incotermslocation1
IncotermsLocation2 incotermslocation2
PaymentTerms paymentterms
CashDiscount1Days cashdiscount1days
CashDiscount2Days cashdiscount2days
CashDiscount1Percent cashdiscount1percent
CashDiscount2Percent cashdiscount2percent
NetPaymentDays netpaymentdays
SrcgProjPubgDteTme srcgprojpubgdtetme
SrcgProjCancDteTme srcgprojcancdtetme
SrcgProjAttchsAreForbidden srcgprojattchsareforbidden
SrcgProjNotesAreForbidden srcgprojnotesareforbidden
SrcgProjFollowOnDocumentCat srcgprojfollowondocumentcat
SrcgProjFollowOnDocumentType srcgprojfollowondocumenttype
PurContrValidityStartDate purcontrvaliditystartdate
PurContrValidityEndDate purcontrvalidityenddate
ExchangeRateType exchangeratetype
SourcingOrigin sourcingorigin
SourcingScenario sourcingscenario
ExternalSourcingProjectRef externalsourcingprojectref
LogicalSystem logicalsystem
ShippingInstruction shippinginstruction
SourceSourcingProjectUUID sourcesourcingprojectuuid
ProcurementPlanningBundleUUID procurementplanningbundleuuid
CentralPurchaseContract centralpurchasecontract
SourcingProjectVersioningRsn sourcingprojectversioningrsn
SrcgProjPaymentTermIsManual srcgprojpaymenttermismanual
SrcgProjEarliestCndnSelDate srcgprojearliestcndnseldate
SrcgProjCancellationRsn srcgprojcancellationrsn
_SourcingProjectItem _SourcingProjectItem
_SourcingProjectQuotation _SourcingProjectQuotation
_SrcgProjAllowedCurrency _SrcgProjAllowedCurrency
_SrcgProjAllwdSuplrContact _SrcgProjAllwdSuplrContact
_SourcingProjectMilestone _SourcingProjectMilestone
_CompanyCode _CompanyCode
_MaterialGroup _MaterialGroup
_PurchasingGroup _PurchasingGroup
_PurchasingOrganization _PurchasingOrganization
_DocumentCurrency _DocumentCurrency
_SourcingProjectType _SourcingProjectType
_SourcingProjectPhase _SourcingProjectPhase
_SrcgProjPubdSuplrListBP _SrcgProjPubdSuplrListBP
_SrcgProjLifecycleStatus _SrcgProjLifecycleStatus
_CreatedByUser _CreatedByUser
_ChangedByUser _ChangedByUser
_PurchaserResponsible _PurchaserResponsible
_SourceSourcingProject _SourceSourcingProject
@ClientHandling.algorithm: #SESSION_VARIABLE

@AbapCatalog: { sqlViewName: 'RSRCGPROJ',
                compiler.compareFilter: true,
                preserveKey: true
}

@AccessControl.authorizationCheck: #MANDATORY

@ObjectModel:{
               representativeKey: 'SourcingProjectUUID',
               semanticKey: ['SourcingProject','SourcingProjectVersion'], 
               sapObjectNodeType.name: 'SourcingProject',  
               usageType: {
                 dataClass: #TRANSACTIONAL,
//               Service Quality A/B needed

                 serviceQuality: #A,
                 sizeCategory: #M
              }
}
@VDM: {
  viewType: #BASIC,
  lifecycle.contract.type: #SAP_INTERNAL_API
}

@EndUserText.label: 'Sourcing Project'
define view R_SourcingProject
  as select from mmsrcgproj

  association [0..*] to R_SourcingProjectItem       as _SourcingProjectItem       on $projection.SourcingProjectUUID = _SourcingProjectItem.SourcingProjectUUID

  association [0..*] to I_SourcingProjectQuotation  as _SourcingProjectQuotation  on $projection.SourcingProjectUUID = _SourcingProjectQuotation.SourcingProjectUUID

  association [0..*] to I_SrcgProjAllowedCurrency   as _SrcgProjAllowedCurrency   on $projection.SourcingProjectUUID = _SrcgProjAllowedCurrency.SourcingProjectUUID

  association [0..*] to R_SrcgProjAllwdSuplrContact as _SrcgProjAllwdSuplrContact on $projection.SourcingProjectUUID = _SrcgProjAllwdSuplrContact.SourcingProjectUUID

  association [0..*] to I_SourcingProjectMilestone  as _SourcingProjectMilestone  on $projection.SourcingProjectUUID = _SourcingProjectMilestone.SourcingProjectUUID

  //foreign key associations

  association [0..1] to I_Currency                  as _DocumentCurrency          on $projection.DocumentCurrency = _DocumentCurrency.Currency
  association [0..1] to I_CompanyCode               as _CompanyCode               on $projection.CompanyCode = _CompanyCode.CompanyCode
  association [0..1] to I_MaterialGroup             as _MaterialGroup             on $projection.MaterialGroup = _MaterialGroup.MaterialGroup
  association [0..1] to I_PurchasingGroup           as _PurchasingGroup           on $projection.PurchasingGroup = _PurchasingGroup.PurchasingGroup
  association [0..1] to I_PurchasingOrganization    as _PurchasingOrganization    on $projection.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization
  association [0..1] to I_SourcingProjectType       as _SourcingProjectType       on $projection.SourcingProjectType = _SourcingProjectType.SourcingProjectType
  association [0..1] to I_SourcingProjectPhase      as _SourcingProjectPhase      on $projection.SourcingProjectPhase = _SourcingProjectPhase.SourcingProjectPhase
  association [0..1] to I_SrcgProjLifecycleStatus   as _SrcgProjLifecycleStatus   on $projection.SrcgProjLifecycleStatus = _SrcgProjLifecycleStatus.SrcgProjLifecycleStatus

  association [0..1] to I_SrcgProjPubdSuplrListBP   as _SrcgProjPubdSuplrListBP   on $projection.SourcingProjectUUID = _SrcgProjPubdSuplrListBP.SourcingProjectUUID
  //tbd

  association [0..1] to I_UserContactCard           as _CreatedByUser             on $projection.CreatedByUser = _CreatedByUser.ContactCardID
  association [0..1] to I_UserContactCard           as _ChangedByUser             on $projection.LastChangedByUser = _ChangedByUser.ContactCardID
  association [0..1] to I_EmplContactCard           as _PurchaserResponsible      on $projection.PurchaserRespWorkAgreement = _PurchaserResponsible.PersonWorkAgreement
  association [0..1] to R_SourcingProject           as _SourceSourcingProject     on $projection.SourceSourcingProjectUUID = _SourceSourcingProject.SourcingProjectUUID
{
  key sourcingprojectuuid                 as SourcingProjectUUID,
      sourcingproject                     as SourcingProject,
      sourcingprojectversion              as SourcingProjectVersion,

      @ObjectModel.foreignKey.association: '_SourcingProjectType'
      sourcingprojecttype                 as SourcingProjectType,
      sourcingprojectname                 as SourcingProjectName,
      srcgprojlifecyclestatus             as SrcgProjLifecycleStatus,
      srcgprojapprovalstatus              as SrcgProjApprovalStatus,
      sourcingprojectphase                as SourcingProjectPhase,
      srcgprojrevisionsts                 as SrcgProjRevisionSts,
      srcgprojactvtnsts                   as SrcgProjActvtnSts,
      srcgprojpubgsts                     as SrcgProjPubgSts,

      sourcingsupplierlistuuid            as SourcingSupplierListUUID,

      cast(
           concat_with_space(sourcingprojectname,
                             concat('V',
                                    cast(sourcingprojectversion as abap.char(10))
                                    ),
                             1
          ) as vdm_srcgprojversionconcat) as SrcgProjVersionConcatenated,

      companycode                         as CompanyCode,
      purchasinggroup                     as PurchasingGroup,
      purchasingorganization              as PurchasingOrganization,
      mmsrcgproj.materialgroup            as MaterialGroup,

//      @Semantics.currencyCode: true

      @ObjectModel.foreignKey.association: '_DocumentCurrency'
      documentcurrency                    as DocumentCurrency,

//      @Semantics.amount.currencyCode: 'DocumentCurrency'

      srcgprojtotaltargetamount           as SrcgProjTotalTargetAmount,

      purchaserrespworkagreement          as PurchaserRespWorkAgreement,

      qtnlatestsubmissiondatetime         as QtnLatestSubmissionDateTime,

      @Semantics.user.lastChangedBy: true
      lastchangedbyuser                   as LastChangedByUser,
      @Semantics.user.createdBy: true
      createdbyuser                       as CreatedByUser,

      @Semantics.systemDateTime.lastChangedAt: true
      lastchangedatetime                  as LastChangeDateTime,

      @Semantics.systemDateTime.createdAt: true
      creationdatetime                    as CreationDateTime,

      incotermsclassification             as IncotermsClassification,
      incotermstransferlocation           as IncotermsTransferLocation,

      incotermsversion                    as IncotermsVersion,
      incotermslocation1                  as IncotermsLocation1,
      incotermslocation2                  as IncotermsLocation2,

      paymentterms                        as PaymentTerms,
      cashdiscount1days                   as CashDiscount1Days,
      cashdiscount2days                   as CashDiscount2Days,
      cashdiscount1percent                as CashDiscount1Percent,
      cashdiscount2percent                as CashDiscount2Percent,
      netpaymentdays                      as NetPaymentDays,

      /* @Semantics.amount.currencyCode: 'DocumentCurrency'
       @DefaultAggregation:#NONE
       targetamount                        as TargetAmount,*/

      srcgprojpubgdtetme                  as SrcgProjPubgDteTme,
      srcgprojcancdtetme                  as SrcgProjCancDteTme,
      srcgprojattchsareforbidden          as SrcgProjAttchsAreForbidden,
      srcgprojnotesareforbidden           as SrcgProjNotesAreForbidden,

      srcgprojfollowondocumentcat         as SrcgProjFollowOnDocumentCat,
      srcgprojfollowondocumenttype        as SrcgProjFollowOnDocumentType,
      purcontrvaliditystartdate           as PurContrValidityStartDate,
      purcontrvalidityenddate             as PurContrValidityEndDate,

      exchangeratetype                    as ExchangeRateType,

      sourcingorigin                      as SourcingOrigin, 
      sourcingscenario                    as SourcingScenario,     
      externalsourcingprojectref          as ExternalSourcingProjectRef,
      logicalsystem                       as LogicalSystem,
      shippinginstruction                 as ShippingInstruction,
      sourcesourcingprojectuuid           as SourceSourcingProjectUUID,
      procurementplanningbundleuuid       as ProcurementPlanningBundleUUID,
      centralpurchasecontract             as CentralPurchaseContract,
      sourcingprojectversioningrsn        as SourcingProjectVersioningRsn,
      srcgprojpaymenttermismanual         as SrcgProjPaymentTermIsManual,
      srcgprojearliestcndnseldate         as SrcgProjEarliestCndnSelDate,
      srcgprojcancellationrsn             as SrcgProjCancellationRsn,
      
      /* Associations */
      _SourcingProjectItem,
      _SourcingProjectQuotation,
      _SrcgProjAllowedCurrency,
      _SrcgProjAllwdSuplrContact,
      _SourcingProjectMilestone,
      //foreign key associations

      _CompanyCode,
      _MaterialGroup,
      _PurchasingGroup,
      _PurchasingOrganization,
      _DocumentCurrency,
      _SourcingProjectType,
      _SourcingProjectPhase,
      _SrcgProjPubdSuplrListBP,
      _SrcgProjLifecycleStatus,
      //tbd

      _CreatedByUser,
      _ChangedByUser,
      _PurchaserResponsible,
      _SourceSourcingProject
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"MMSRCGPROJ"
],
"ASSOCIATED":
[
"I_COMPANYCODE",
"I_CURRENCY",
"I_EMPLCONTACTCARD",
"I_MATERIALGROUP",
"I_PURCHASINGGROUP",
"I_PURCHASINGORGANIZATION",
"I_SOURCINGPROJECTMILESTONE",
"I_SOURCINGPROJECTPHASE",
"I_SOURCINGPROJECTQUOTATION",
"I_SOURCINGPROJECTTYPE",
"I_SRCGPROJALLOWEDCURRENCY",
"I_SRCGPROJLIFECYCLESTATUS",
"I_SRCGPROJPUBDSUPLRLISTBP",
"I_USERCONTACTCARD",
"R_SOURCINGPROJECTITEM",
"R_SRCGPROJALLWDSUPLRCONTACT"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/