C_SourcingProjectItemDocVarbl

DDL: C_SOURCINGPROJECTITEMDOCVARBL SQL: CSRCGPROJITMVB Type: view CONSUMPTION

Doc Varbl for Item in Sourcing Project

C_SourcingProjectItemDocVarbl is a Consumption CDS View that provides data about "Doc Varbl for Item in Sourcing Project" in SAP S/4HANA. It reads from 1 data source (R_SourcingProjectItem) and exposes 52 fields with key field SourcingProjectItemUUID. It has 9 associations to related views.

Data Sources (1)

SourceAliasJoin Type
R_SourcingProjectItem R_SourcingProjectItem from

Associations (9)

CardinalityTargetAliasCondition
[1..1] R_SourcingProject _SrcgProj $projection.SourcingProjectUUID = _SrcgProj.SourcingProjectUUID
[0..1] C_SourcingProjectDocVarbl _SourcingProject $projection.SourcingProjectUUID = _SourcingProject.SourcingProjectUUID
[1..1] I_MaterialGroup _MaterialGroup $projection.MaterialGroup = _MaterialGroup.MaterialGroup
[0..1] I_ProductTypeCode _ProductType $projection.ProductType = _ProductType.ProductTypeCode
[0..1] I_BackendPlantForPurg _BackendPlantForPurg $projection.Plant = _BackendPlantForPurg.Plant and $projection.CompanyCode = _BackendPlantForPurg.CompanyCode and $projection.ProcurementHubSourceSystem = _BackendPlantForPurg.ProcurementHubSourceSystem
[1..1] I_BackendCoCodeForPurg _BackendCoCodeForPurg $projection.ProcurementHubSourceSystem = _BackendCoCodeForPurg.ProcurementHubSourceSystem and $projection.CompanyCode = _BackendCoCodeForPurg.CompanyCode
[0..1] I_ProcmtHubPurgOrg _ProcmtHubPurgOrg $projection.PurchasingOrganization = _ProcmtHubPurgOrg.ProcmtHubPurchasingOrg and $projection.ProcurementHubSourceSystem = _ProcmtHubPurgOrg.ProcurementHubSourceSystem
[0..1] I_PurgDocumentCategoryText _PurgDocumentCategoryText $projection.SrcgProjFollowOnDocumentCat = _PurgDocumentCategoryText.PurchasingDocumentCategory and _PurgDocumentCategoryText.Language = $session.system_language
[0..1] I_PurchasingDocumentTypeText _PurchasingDocumentTypeText $projection.SrcgProjFollowOnDocumentType = _PurchasingDocumentTypeText.PurchasingDocumentType and $projection.SrcgProjFollowOnDocumentCat = _PurchasingDocumentTypeText.PurchasingDocumentCategory and _PurchasingDocumentTypeText.Language = $session.system_language

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName CSRCGPROJITMVB view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
ObjectModel.representativeKey SourcingProjectItemUUID view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
VDM.viewType #CONSUMPTION view
EndUserText.label Doc Varbl for Item in Sourcing Project view

Fields (52)

KeyFieldSource TableSource FieldDescription
KEY SourcingProjectItemUUID SourcingProjectItemUUID
SourcingProjectItem SourcingProjectItem
SourcingProjectUUID SourcingProjectUUID
SourcingProjectItemType SourcingProjectItemType
SourcingProjectItemTypeName
SrcgProjItemClassification SrcgProjItemClassification
SrcgProjItemClassificationName
SourcingProjectItemStableUUID SourcingProjectItemStableUUID
SrcgProjItemDescription SrcgProjItemDescription
Material Material
ProductType ProductType
ProductTypeName
MaterialGroup MaterialGroup
MaterialGroupName
MaterialGroupText
SrcgProjItemTargetAmount SrcgProjItemTargetAmount
SrcgProjItemTotalTargetAmount SrcgProjItemTotalTargetAmount
RequestedQuantity RequestedQuantity
MaximumRequestedQuantity MaximumRequestedQuantity
RequestedQuantityUnit RequestedQuantityUnit
UnitOfMeasureLongName
UnitOfMeasureName
RequestedDeliveryDate RequestedDeliveryDate
PerformancePeriodStartDate PerformancePeriodStartDate
PerformancePeriodEndDate PerformancePeriodEndDate
OrderItemQtyToBaseQtyNmrtr OrderItemQtyToBaseQtyNmrtr
OrderItemQtyToBaseQtyDnmntr OrderItemQtyToBaseQtyDnmntr
Plant Plant
PlantName _BackendPlantForPurg PlantName
CompanyCode CompanyCode
CompanyCodeName _BackendCoCodeForPurg CompanyCodeName
PurchasingGroup PurchasingGroup
PurchasingOrganization PurchasingOrganization
ProcmtHubPurgOrgName _ProcmtHubPurgOrg ProcmtHubPurgOrgName
StorageLocation StorageLocation
SourcingProjectItemParent SourcingProjectItemParent
HierarchyNodeLevel HierarchyNodeLevel
AlternativeItemID AlternativeItemID
FormattedItemID FormattedItemID
PurchaseRequisition PurchaseRequisition
PurchaseRequisitionItem PurchaseRequisitionItem
SrcgProjFollowOnDocumentCat SrcgProjFollowOnDocumentCat
PurchasingDocumentCategoryName _PurgDocumentCategoryText PurchasingDocumentCategoryName
SrcgProjFollowOnDocumentType SrcgProjFollowOnDocumentType
PurchasingDocumentTypeName _PurchasingDocumentTypeText PurchasingDocumentTypeName
SrcgProjItemDemandConfCode SrcgProjItemDemandConfCode
SrcgProjItemUnconfdDemandRsn SrcgProjItemUnconfdDemandRsn
ProcurementHubSourceSystem ProcurementHubSourceSystem
DocumentCurrency _SrcgProj DocumentCurrency
CurrencyName
CurrencyShortName
_SourcingProject _SourcingProject
@AbapCatalog.sqlViewName: 'CSRCGPROJITMVB'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #MANDATORY
@AccessControl.personalData.blocking: #NOT_REQUIRED
@ObjectModel:{ representativeKey: 'SourcingProjectItemUUID',
               semanticKey: ['SourcingProjectItem'],
               usageType.dataClass: #MIXED,
               usageType.serviceQuality: #C,
               usageType.sizeCategory: #M }

@VDM.viewType: #CONSUMPTION

@EndUserText.label: 'Doc Varbl for Item in Sourcing Project'

define view C_SourcingProjectItemDocVarbl
  as select from R_SourcingProjectItem

 //foreign key associations

  association [1..1] to R_SourcingProject            as _SrcgProj            on  $projection.SourcingProjectUUID = _SrcgProj.SourcingProjectUUID
  association [0..1] to C_SourcingProjectDocVarbl    as _SourcingProject            on $projection.SourcingProjectUUID = _SourcingProject.SourcingProjectUUID

  association [1..1] to I_MaterialGroup               as _MaterialGroup               on  $projection.MaterialGroup = _MaterialGroup.MaterialGroup
  association [0..1] to I_ProductTypeCode             as _ProductType                 on  $projection.ProductType = _ProductType.ProductTypeCode
  association [0..1] to I_BackendPlantForPurg         as _BackendPlantForPurg         on  $projection.Plant                      = _BackendPlantForPurg.Plant
                                                                                        and $projection.CompanyCode                = _BackendPlantForPurg.CompanyCode
                                                                                        and $projection.ProcurementHubSourceSystem = _BackendPlantForPurg.ProcurementHubSourceSystem
  association [1..1] to I_BackendCoCodeForPurg        as _BackendCoCodeForPurg        on  $projection.ProcurementHubSourceSystem = _BackendCoCodeForPurg.ProcurementHubSourceSystem
                                                                                        and $projection.CompanyCode                = _BackendCoCodeForPurg.CompanyCode
  association [0..1] to I_ProcmtHubPurgOrg            as _ProcmtHubPurgOrg            on  $projection.PurchasingOrganization     = _ProcmtHubPurgOrg.ProcmtHubPurchasingOrg
                                                                                        and $projection.ProcurementHubSourceSystem = _ProcmtHubPurgOrg.ProcurementHubSourceSystem
  association [0..1] to I_PurgDocumentCategoryText    as _PurgDocumentCategoryText    on $projection.SrcgProjFollowOnDocumentCat = _PurgDocumentCategoryText.PurchasingDocumentCategory
                                                                                         and _PurgDocumentCategoryText.Language = $session.system_language
  association [0..1] to I_PurchasingDocumentTypeText   as _PurchasingDocumentTypeText   on  $projection.SrcgProjFollowOnDocumentType = _PurchasingDocumentTypeText.PurchasingDocumentType
                                                                                       and $projection.SrcgProjFollowOnDocumentCat  = _PurchasingDocumentTypeText.PurchasingDocumentCategory
                                                                                       and _PurchasingDocumentTypeText.Language = $session.system_language  
{

  key SourcingProjectItemUUID           as SourcingProjectItemUUID,
      SourcingProjectItem               as SourcingProjectItem,
      SourcingProjectUUID               as SourcingProjectUUID,

      SourcingProjectItemType           as SourcingProjectItemType,
      _SourcingProjectItemType._SourcingProjectItemTypeText[1: Language = $session.system_language ].SourcingProjectItemTypeName,

      SrcgProjItemClassification        as SrcgProjItemClassification,
      _SrcgProjItemClassification._SrcgProjItemClassfctnText[1: Language = $session.system_language ].SrcgProjItemClassificationName,
      
      SourcingProjectItemStableUUID     as SourcingProjectItemStableUUID,

      SrcgProjItemDescription           as SrcgProjItemDescription,

      Material                          as Material,
//      _Material._Text[1: Language = $session.system_language ].MaterialName, 

      
      ProductType                       as ProductType,
      _ProductType._Text[1: Language = $session.system_language ].Name as ProductTypeName,
      
      MaterialGroup                     as MaterialGroup,
      _MaterialGroup._Text[1: Language = $session.system_language ].MaterialGroupName,
      _MaterialGroup._Text[1: Language = $session.system_language ].MaterialGroupText,

      @Semantics.amount.currencyCode: 'DocumentCurrency'
      SrcgProjItemTargetAmount          as SrcgProjItemTargetAmount,
      
      @Semantics.amount.currencyCode: 'DocumentCurrency'
      SrcgProjItemTotalTargetAmount     as SrcgProjItemTotalTargetAmount,

      @Semantics.quantity.unitOfMeasure: 'RequestedQuantityUnit'
      RequestedQuantity                 as RequestedQuantity,

      @Semantics.quantity.unitOfMeasure: 'RequestedQuantityUnit'
      MaximumRequestedQuantity          as MaximumRequestedQuantity,

      @Semantics.unitOfMeasure: true
      RequestedQuantityUnit             as RequestedQuantityUnit,
      _RequestedQuantityUnit._Text[1: Language = $session.system_language ].UnitOfMeasureLongName,
      _RequestedQuantityUnit._Text[1: Language = $session.system_language ].UnitOfMeasureName,
      
      RequestedDeliveryDate             as RequestedDeliveryDate,
      PerformancePeriodStartDate        as PerformancePeriodStartDate,
      PerformancePeriodEndDate          as PerformancePeriodEndDate,

      OrderItemQtyToBaseQtyNmrtr        as OrderItemQtyToBaseQtyNmrtr,
      OrderItemQtyToBaseQtyDnmntr       as OrderItemQtyToBaseQtyDnmntr,

      Plant                             as Plant,
      _BackendPlantForPurg.PlantName,
      
      CompanyCode                       as CompanyCode,
      _BackendCoCodeForPurg.CompanyCodeName, 
      
      PurchasingGroup                   as PurchasingGroup,

      PurchasingOrganization            as PurchasingOrganization,
      _ProcmtHubPurgOrg.ProcmtHubPurgOrgName,

      StorageLocation                   as StorageLocation,

      SourcingProjectItemParent         as SourcingProjectItemParent,
      HierarchyNodeLevel                as HierarchyNodeLevel,
      AlternativeItemID                 as AlternativeItemID,
      FormattedItemID                   as FormattedItemID,

      PurchaseRequisition               as PurchaseRequisition,
      PurchaseRequisitionItem           as PurchaseRequisitionItem,

      SrcgProjFollowOnDocumentCat       as SrcgProjFollowOnDocumentCat,
      _PurgDocumentCategoryText.PurchasingDocumentCategoryName,

      SrcgProjFollowOnDocumentType      as SrcgProjFollowOnDocumentType,
      _PurchasingDocumentTypeText.PurchasingDocumentTypeName,
      
      SrcgProjItemDemandConfCode        as SrcgProjItemDemandConfCode,
      SrcgProjItemUnconfdDemandRsn      as SrcgProjItemUnconfdDemandRsn,

      @UI.hidden: true
      ProcurementHubSourceSystem,
      
      @Semantics.currencyCode: true
      _SrcgProj.DocumentCurrency as DocumentCurrency,
      _ItemDocumentCurrency._Text[1: Language = $session.system_language ].CurrencyName,
      _ItemDocumentCurrency._Text[1: Language = $session.system_language ].CurrencyShortName,
    
      /* Associations */
      
      @Consumption.hidden:true
      _SourcingProject

}