R_SourcingProjectTP

DDL: R_SOURCINGPROJECTTP Type: view_entity TRANSACTIONAL

Sourcing Project - TP

R_SourcingProjectTP is a Transactional CDS View that provides data about "Sourcing Project - TP" in SAP S/4HANA. It reads from 1 data source (R_SourcingProject) and exposes 98 fields with key field SourcingProjectUUID. It has 28 associations to related views.

Data Sources (1)

SourceAliasJoin Type
R_SourcingProject R_SourcingProject from

Associations (28)

CardinalityTargetAliasCondition
[0..*] I_PaymentTermsText _PaymentTermsText $projection.PaymentTerms = _PaymentTermsText.PaymentTerms
[0..*] I_IncotermsClassificationText _IncotermsText $projection.IncotermsClassification = _IncotermsText.IncotermsClassification
[0..*] I_IncotermsVersionText _IncotermsVersionText $projection.IncotermsVersion = _IncotermsVersionText.IncotermsVersion
[0..*] I_CurrencyText _CurrencyText $projection.DocumentCurrency = _CurrencyText.Currency
[0..*] I_PurgDocumentCategoryText _PurgDocumentCategoryText $projection.SrcgProjFollowOnDocumentCat = _PurgDocumentCategoryText.PurchasingDocumentCategory
[0..*] I_SourcingProjectTypeText _SourcingProjectTypeText $projection.SourcingProjectType = _SourcingProjectTypeText.SourcingProjectType
[0..*] I_MaterialGroupText _MaterialGroupText $projection.MaterialGroup = _MaterialGroupText.MaterialGroup
[0..*] I_PurchasingDocumentTypeText _PurchasingDocumentTypeText $projection.SrcgProjFollowOnDocumentType = _PurchasingDocumentTypeText.PurchasingDocumentType and $projection.SrcgProjFollowOnDocumentCat = _PurchasingDocumentTypeText.PurchasingDocumentCategory
[0..1] R_SourcingSupplierList _SourcingSupplierList $projection.SourcingSupplierListUUID = _SourcingSupplierList.SourcingSupplierListUUID
[0..*] I_SrcgProjLifecycleStatusText _SrcgProjLifecycleStatusText $projection.SrcgProjLifecycleStatus = _SrcgProjLifecycleStatusText.SrcgProjLifecycleStatus
[0..*] I_SrcgProjApprovalStatusText _SrcgProjApprovalStatusText $projection.SrcgProjApprovalStatus = _SrcgProjApprovalStatusText.SrcgProjApprovalStatus
[1..*] I_Shippinginstructiontext _ShippingInstructionText $projection.ShippingInstruction = _ShippingInstructionText.ShippingInstruction
[1..*] I_SourcingProjectPhaseText _SourcingProjectPhaseText $projection.SourcingProjectPhase = _SourcingProjectPhaseText.SourcingProjectPhase
[0..*] I_ProductSourcingReasonText _SourcingProjectReasonText $projection.SourcingProjectVersioningRsn = _SourcingProjectReasonText.ProductSourcingReason
[1..1] R_SourcingProjectBiddingRatio _SourcingProjectBiddingRatio $projection.SourcingProjectUUID = _SourcingProjectBiddingRatio.SourcingProjectUUID
[0..*] I_SrcgProjSourcingScenarioText _SrcgProjSourcingScenarioText $projection.SourcingScenario = _SrcgProjSourcingScenarioText.SourcingScenario
[0..*] I_SrcgProjSourcingOriginText _SrcgProjSourcingOriginText $projection.SourcingOrigin = _SrcgProjSourcingOriginText.SourcingOrigin
[0..*] I_ProductSourcingReasonText _SrcgProjCancellationRsnText $projection.SrcgProjCancellationRsn = _SrcgProjCancellationRsnText.ProductSourcingReason
[1..1] E_SourcingProject _Extension $projection.SourcingProjectUUID = _Extension.SourcingProjectUUID
[*] R_SourcingProjectItemTP _SourcingProjectItem
[*] R_SrcgProjProcurementProjectTP _SrcgProjProcurementProject
[*] R_SrcgProjAllowedCurrencyTP _SrcgProjAllowedCurrency
[*] R_SourcingProjectMilestoneTP _SourcingProjectMilestone
[*] R_SourcingProjectContactTP _SourcingProjectContact
[*] R_SrcgProjAllwdSuplrContactTP _SrcgProjAllwdSuplrContact
[*] R_SrcgProjPubdSuplrListBPTP _SrcgProjPubdSuplrListBP
[*] R_SourcingProjectNoteTP _SourcingProjectNote
[0..1] R_SrcgProjPLMCollaborationTP _SrcgProjPLMCollaboration

Annotations (16)

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
ObjectModel.sapObjectNodeType.name SourcingProject view
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
EndUserText.label Sourcing Project - TP view
AbapCatalog.extensibility.extensible true view
AbapCatalog.extensibility.allowNewDatasources false view
AbapCatalog.extensibility.elementSuffix SPH view
AbapCatalog.extensibility.quota.maximumFields 404 view
AbapCatalog.extensibility.quota.maximumBytes 40400 view
AbapCatalog.extensibility.allowNewCompositions true view

Fields (98)

KeyFieldSource TableSource FieldDescription
KEY SourcingProjectUUID SourcingProjectUUID
SourcingProject SourcingProject
SourcingProjectVersion SourcingProjectVersion
SourcingProjectType SourcingProjectType
SourcingProjectName SourcingProjectName
SrcgProjLifecycleStatus SrcgProjLifecycleStatus
SrcgProjApprovalStatus SrcgProjApprovalStatus
SourcingProjectPhase SourcingProjectPhase
SourcingSupplierListUUID SourcingSupplierListUUID
SrcgProjRevisionSts SrcgProjRevisionSts
SrcgProjActvtnSts SrcgProjActvtnSts
SrcgProjPubgSts SrcgProjPubgSts
CompanyCode CompanyCode
PurchasingGroup PurchasingGroup
PurchasingOrganization PurchasingOrganization
MaterialGroup MaterialGroup
DocumentCurrency DocumentCurrency
SrcgProjTotalTargetAmount SrcgProjTotalTargetAmount
PurchaserRespWorkAgreement PurchaserRespWorkAgreement
PurchaserResponsiblePerson PurchaserResponsiblePerson
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
CentralPurchaseContract CentralPurchaseContract
ProcurementPlanningBundleUUID ProcurementPlanningBundleUUID
SourcingProjectVersioningRsn SourcingProjectVersioningRsn
SrcgProjPaymentTermIsManual SrcgProjPaymentTermIsManual
SrcgProjHasBeenActivated
SrcgProjEarliestCndnSelDate SrcgProjEarliestCndnSelDate
SrcgProjCancellationRsn SrcgProjCancellationRsn
SourcingProjectTypeForEdit SourcingProjectType
PurchasingOrganizationForEdit PurchasingOrganization
PurchasingGroupForEdit PurchasingGroup
CompanyCodeForEdit CompanyCode
MaterialGroupForEdit MaterialGroup
_SourcingProjectItem _SourcingProjectItem
_SourcingProjectType _SourcingProjectType
_SrcgProjProcurementProject _SrcgProjProcurementProject
_SrcgProjAllowedCurrency _SrcgProjAllowedCurrency
_SourcingProjectMilestone _SourcingProjectMilestone
_SourcingProjectContact _SourcingProjectContact
_SrcgProjAllwdSuplrContact _SrcgProjAllwdSuplrContact
_PurchasingGroup _PurchasingGroup
_PurchasingOrganization _PurchasingOrganization
_CompanyCode _CompanyCode
_PaymentTermsText _PaymentTermsText
_IncotermsText _IncotermsText
_IncotermsVersionText _IncotermsVersionText
_CurrencyText _CurrencyText
_PurgDocumentCategoryText _PurgDocumentCategoryText
_SourcingProjectTypeText _SourcingProjectTypeText
_MaterialGroupText _MaterialGroupText
_PurchasingDocumentTypeText _PurchasingDocumentTypeText
_SourcingSupplierList _SourcingSupplierList
_SrcgProjPubdSuplrListBP _SrcgProjPubdSuplrListBP
_SrcgProjLifecycleStatusText _SrcgProjLifecycleStatusText
_SrcgProjApprovalStatusText _SrcgProjApprovalStatusText
_CreatedByUser _CreatedByUser
_ChangedByUser _ChangedByUser
_ShippingInstructionText _ShippingInstructionText
_SourcingProjectPhaseText _SourcingProjectPhaseText
_SourceSourcingProject _SourceSourcingProject
_SourcingProjectReasonText _SourcingProjectReasonText
_SourcingProjectNote _SourcingProjectNote
_SourcingProjectBiddingRatio _SourcingProjectBiddingRatio
_DocumentCurrency _DocumentCurrency
_SrcgProjSourcingScenarioText _SrcgProjSourcingScenarioText
_SrcgProjSourcingOriginText _SrcgProjSourcingOriginText
_SrcgProjCancellationRsnText _SrcgProjCancellationRsnText
_SrcgProjPLMCollaboration _SrcgProjPLMCollaboration
@AccessControl: {
  authorizationCheck: #MANDATORY,
  personalData.blocking: #NOT_REQUIRED,
  privilegedAssociations: [ '_CreatedByUser', '_ChangedByUser']
}

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

              usageType: {
                dataClass: #TRANSACTIONAL,
                serviceQuality: #C,
                sizeCategory: #L
              },
              sapObjectNodeType.name: 'SourcingProject'
}

@VDM: {
  viewType: #TRANSACTIONAL,
  lifecycle.contract.type: #SAP_INTERNAL_API
}

@EndUserText.label: 'Sourcing Project - TP'
@AbapCatalog.extensibility: {
  extensible: true,
  dataSources: ['_Extension'],
  allowNewDatasources: false,
  elementSuffix: 'SPH',
  quota: { maximumFields: 404,
           maximumBytes: 40400 },
  allowNewCompositions: true }


define root view entity R_SourcingProjectTP
  as select from R_SourcingProject
  composition [*] of R_SourcingProjectItemTP           as _SourcingProjectItem
  composition [*] of R_SrcgProjProcurementProjectTP    as _SrcgProjProcurementProject
  composition [*] of R_SrcgProjAllowedCurrencyTP       as _SrcgProjAllowedCurrency
  composition [*] of R_SourcingProjectMilestoneTP      as _SourcingProjectMilestone
  composition [*] of R_SourcingProjectContactTP        as _SourcingProjectContact
  composition [*] of R_SrcgProjAllwdSuplrContactTP     as _SrcgProjAllwdSuplrContact
  composition [*] of R_SrcgProjPubdSuplrListBPTP       as _SrcgProjPubdSuplrListBP
  composition [*] of R_SourcingProjectNoteTP           as _SourcingProjectNote
  composition [0..1] of R_SrcgProjPLMCollaborationTP   as _SrcgProjPLMCollaboration

  association [0..*] to I_PaymentTermsText             as _PaymentTermsText             on  $projection.PaymentTerms = _PaymentTermsText.PaymentTerms
  association [0..*] to I_IncotermsClassificationText  as _IncotermsText                on  $projection.IncotermsClassification = _IncotermsText.IncotermsClassification
  association [0..*] to I_IncotermsVersionText         as _IncotermsVersionText         on  $projection.IncotermsVersion = _IncotermsVersionText.IncotermsVersion
  association [0..*] to I_CurrencyText                 as _CurrencyText                 on  $projection.DocumentCurrency = _CurrencyText.Currency
  association [0..*] to I_PurgDocumentCategoryText     as _PurgDocumentCategoryText     on  $projection.SrcgProjFollowOnDocumentCat = _PurgDocumentCategoryText.PurchasingDocumentCategory
  association [0..*] to I_SourcingProjectTypeText      as _SourcingProjectTypeText      on  $projection.SourcingProjectType = _SourcingProjectTypeText.SourcingProjectType
  association [0..*] to I_MaterialGroupText            as _MaterialGroupText            on  $projection.MaterialGroup = _MaterialGroupText.MaterialGroup
  association [0..*] to I_PurchasingDocumentTypeText   as _PurchasingDocumentTypeText   on  $projection.SrcgProjFollowOnDocumentType = _PurchasingDocumentTypeText.PurchasingDocumentType
                                                                                        and $projection.SrcgProjFollowOnDocumentCat  = _PurchasingDocumentTypeText.PurchasingDocumentCategory
  association [0..1] to R_SourcingSupplierList         as _SourcingSupplierList         on  $projection.SourcingSupplierListUUID = _SourcingSupplierList.SourcingSupplierListUUID
  association [0..*] to I_SrcgProjLifecycleStatusText  as _SrcgProjLifecycleStatusText  on  $projection.SrcgProjLifecycleStatus = _SrcgProjLifecycleStatusText.SrcgProjLifecycleStatus
  association [0..*] to I_SrcgProjApprovalStatusText   as _SrcgProjApprovalStatusText   on  $projection.SrcgProjApprovalStatus = _SrcgProjApprovalStatusText.SrcgProjApprovalStatus
  association [1..*] to I_Shippinginstructiontext      as _ShippingInstructionText      on  $projection.ShippingInstruction = _ShippingInstructionText.ShippingInstruction
  association [1..*] to I_SourcingProjectPhaseText     as _SourcingProjectPhaseText     on  $projection.SourcingProjectPhase = _SourcingProjectPhaseText.SourcingProjectPhase
  association [0..*] to I_ProductSourcingReasonText    as _SourcingProjectReasonText    on  $projection.SourcingProjectVersioningRsn = _SourcingProjectReasonText.ProductSourcingReason
  association [1..1] to R_SourcingProjectBiddingRatio  as _SourcingProjectBiddingRatio  on  $projection.SourcingProjectUUID = _SourcingProjectBiddingRatio.SourcingProjectUUID
  association [0..*] to I_SrcgProjSourcingScenarioText as _SrcgProjSourcingScenarioText on  $projection.SourcingScenario = _SrcgProjSourcingScenarioText.SourcingScenario
  association [0..*] to I_SrcgProjSourcingOriginText   as _SrcgProjSourcingOriginText   on  $projection.SourcingOrigin = _SrcgProjSourcingOriginText.SourcingOrigin
  association [0..*] to I_ProductSourcingReasonText    as _SrcgProjCancellationRsnText  on  $projection.SrcgProjCancellationRsn = _SrcgProjCancellationRsnText.ProductSourcingReason
  //Extension

  association [1..1] to E_SourcingProject              as _Extension                    on  $projection.SourcingProjectUUID = _Extension.SourcingProjectUUID
{
  key SourcingProjectUUID,
      SourcingProject,
      SourcingProjectVersion,
      //      @ObjectModel: { foreignKey.association: '_SourcingProjectType',

      //                      readOnly: 'EXTERNAL_CALCULATION' }


      // ##### Move text assosications into I_VIEW #####

      SourcingProjectType,
      SourcingProjectName,
      //      @ObjectModel: { readOnly: true,

      //                      foreignKey.association: '_SrcgProjLifecycleStatus' }

      SrcgProjLifecycleStatus,
      SrcgProjApprovalStatus,
      //      @ObjectModel: { readOnly: true,

      //                      foreignKey.association: '_SourcingProjectPhase' }

      SourcingProjectPhase,
      SourcingSupplierListUUID,
      SrcgProjRevisionSts,
      SrcgProjActvtnSts,
      SrcgProjPubgSts,
      //      @ObjectModel: { foreignKey.association: '_CompanyCode',

      //                      mandatory: true,

      //                      readOnly:'EXTERNAL_CALCULATION' }

      CompanyCode,
      //      @ObjectModel: { foreignKey.association: '_PurchasingGroup',

      //                      mandatory: true }

      PurchasingGroup,
      //      @ObjectModel: { foreignKey.association: '_PurchasingOrganization',

      //                      mandatory: true }

      PurchasingOrganization,
      //      @ObjectModel: { foreignKey.association: '_MaterialGroup',

      //                      mandatory: true,

      //                      readOnly:'EXTERNAL_CALCULATION' }

      MaterialGroup,
      //      @ObjectModel: { foreignKey.association: '_DocumentCurrency'}

      DocumentCurrency,
      SrcgProjTotalTargetAmount,
      PurchaserRespWorkAgreement,
      PurchaserResponsiblePerson,

      QtnLatestSubmissionDateTime,
      //      @ObjectModel: { readOnly: true,

      //                      foreignKey.association: '_ChangedByUser' }

      LastChangedByUser,
      //      @ObjectModel: { readOnly: true,

      //                      foreignKey.association: '_CreatedByUser' }

      CreatedByUser,
      LastChangeDateTime,
      CreationDateTime,
      IncotermsClassification,
      IncotermsTransferLocation,
      IncotermsVersion,
      IncotermsLocation1,
      IncotermsLocation2,
      PaymentTerms,
      CashDiscount1Days,
      CashDiscount2Days,
      CashDiscount1Percent,
      CashDiscount2Percent,
      NetPaymentDays,
      //TargetAmount,

      SrcgProjPubgDteTme,
      SrcgProjCancDteTme,
      SrcgProjAttchsAreForbidden,
      SrcgProjNotesAreForbidden,
      SrcgProjFollowOnDocumentCat,
      SrcgProjFollowOnDocumentType,
      //      @ObjectModel: { readOnly: 'EXTERNAL_CALCULATION' }

      PurContrValidityStartDate,
      //      @ObjectModel: { readOnly: 'EXTERNAL_CALCULATION' }

      PurContrValidityEndDate,
      ExchangeRateType,
      SourcingOrigin,
      SourcingScenario,
      ExternalSourcingProjectRef,
      LogicalSystem,
      ShippingInstruction,
      SourceSourcingProjectUUID,
      CentralPurchaseContract,
      ProcurementPlanningBundleUUID,
      SourcingProjectVersioningRsn,
      SrcgProjPaymentTermIsManual,
      //      //Required for the ECM Integration

      //      @ObjectModel: { readOnly: true }

      cast( concat(SourcingProject,
             concat('/' ,cast(SourcingProjectVersion as abap.char(10))))
              as vdm_sourcingprojectuniqueid ) as SourcingProjectUniqueID,
      cast( '' as abap.char( 1 ) )             as SrcgProjHasBeenActivated,
      SrcgProjEarliestCndnSelDate,
      SrcgProjCancellationRsn,
      // cast( '' as abap.char( 1 ) )             as IsNotesEnabled,

      @ObjectModel.editableFieldFor: 'SourcingProjectType'
      SourcingProjectType                      as SourcingProjectTypeForEdit,
      @ObjectModel.editableFieldFor: 'PurchasingOrganization'
      PurchasingOrganization                   as PurchasingOrganizationForEdit,
      @ObjectModel.editableFieldFor: 'PurchasingGroup'
      PurchasingGroup                          as PurchasingGroupForEdit,
      @ObjectModel.editableFieldFor: 'CompanyCode'
      CompanyCode                              as CompanyCodeForEdit,
      @ObjectModel.editableFieldFor: 'MaterialGroup'
      MaterialGroup                            as MaterialGroupForEdit,

      _SourcingProjectItem,
      _SourcingProjectType,
      _SrcgProjProcurementProject,
      _SrcgProjAllowedCurrency,
      _SourcingProjectMilestone,
      _SourcingProjectContact,
      _SrcgProjAllwdSuplrContact,
      _PurchasingGroup,
      _PurchasingOrganization,
      _CompanyCode,
      _PaymentTermsText,
      _IncotermsText,
      _IncotermsVersionText,
      _CurrencyText,
      _PurgDocumentCategoryText,
      _SourcingProjectTypeText,
      _MaterialGroupText,
      _PurchasingDocumentTypeText,
      _SourcingSupplierList,
      _SrcgProjPubdSuplrListBP,
      _SrcgProjLifecycleStatusText,
      _SrcgProjApprovalStatusText,
      _CreatedByUser,
      _ChangedByUser,
      _ShippingInstructionText,
      _SourcingProjectPhaseText,
      _SourceSourcingProject,
      _SourcingProjectReasonText,
      _SourcingProjectNote,
      _SourcingProjectBiddingRatio,
      _DocumentCurrency,
      _SrcgProjSourcingScenarioText,
      _SrcgProjSourcingOriginText,
      _SrcgProjCancellationRsnText,
      _SrcgProjPLMCollaboration
}