I_CntrlPurContrHdrDistrTP

DDL: I_CNTRLPURCONTRHDRDISTRTP SQL: ICNTRLPCHDRDISTR Type: view TRANSACTIONAL

BO View for Header Distribution in Central Purchase Contract

I_CntrlPurContrHdrDistrTP is a Transactional CDS View that provides data about "BO View for Header Distribution in Central Purchase Contract" in SAP S/4HANA. It reads from 1 data source (I_CntrlPurContrDistribution) and exposes 44 fields with key fields CentralPurchaseContract, DistributionKey. It has 4 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_CntrlPurContrDistribution I_CntrlPurContrDistribution from

Associations (4)

CardinalityTargetAliasCondition
[1..1] I_CentralPurchaseContractTP _CentralPurchaseContractTP _CentralPurchaseContractTP.CentralPurchaseContract = $projection.CentralPurchaseContract
[0..*] I_CntrlPurContrHdrPartnerTP _CntrlPurContrHdrPartnerTP _CntrlPurContrHdrPartnerTP.CentralPurchaseContract = $projection.CentralPurchaseContract and _CntrlPurContrHdrPartnerTP.DistributionKey = $projection.DistributionKey
[0..1] I_CntrlPurContrHdrDistrAddrTP _CntrlPurContrHdrDistrAddrTP _CntrlPurContrHdrDistrAddrTP.CentralPurchaseContract = $projection.CentralPurchaseContract and _CntrlPurContrHdrDistrAddrTP.DistributionKey = $projection.DistributionKey ----Extension
[1..1] E_CntrlPurContrDistribution _DistributionExtension _DistributionExtension.PurchasingDocument = $projection.CentralPurchaseContract and _DistributionExtension.DistributionKey = $projection.DistributionKey

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName ICNTRLPCHDRDISTR view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label BO View for Header Distribution in Central Purchase Contract view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled true view
ObjectModel.deleteEnabled true view
VDM.viewType #TRANSACTIONAL view
ObjectModel.writeDraftPersistence CNTRLPCHDISTR_D view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
AccessControl.personalData.blocking #REQUIRED view

Fields (44)

KeyFieldSource TableSource FieldDescription
KEY CentralPurchaseContract CentralPurchaseContract
KEY DistributionKey DistributionKey
CentralPurchaseContractItem CentralPurchaseContractItem
PurchasingDocumentCategory PurchasingDocumentCategory
PurchasingDocumentType PurchasingDocumentType
PurchasingOrganization PurchasingOrganization
CompanyCode CompanyCode
Plant Plant
LogicalSystem LogicalSystem
DocumentCurrency DocumentCurrency
Currency Currency
PurchasingGroup PurchasingGroup
StorageLocation StorageLocation
PaymentTerms PaymentTerms
CashDiscount1Days CashDiscount1Days
CashDiscount2Days CashDiscount2Days
NetPaymentDays NetPaymentDays
CashDiscount1Percent CashDiscount1Percent
CashDiscount2Percent CashDiscount2Percent
Material Material
MaterialGroup MaterialGroup
CntrlPurContrDistributionPct CntrlPurContrDistributionPct
TargetQuantity TargetQuantity
TargetAmount TargetAmount
ExtContractForPurg ExtContractForPurg
ExtContractItemForPurg ExtContractItemForPurg
ItemDistributionStatus ItemDistributionStatus
IsDeleted IsDeleted
OrderQuantityUnit OrderQuantityUnit
DistributionType DistributionType
DistrResponseMessageUUID DistrResponseMessageUUID
ContractNetPriceAmount _CntrlPurchaseContractItem ContractNetPriceAmount
ProcurementHubSourceSystem ProcurementHubSourceSystem
PurchasingInfoRecordUpdateCode PurchasingInfoRecordUpdateCode
ProcmtHubCompanyCodeGroupingID ProcmtHubCompanyCodeGroupingID
ExtContractItemDistrForPurg ExtContractItemDistrForPurg
SourceListIsUpdated
SourceListRestriction SourceListRestriction
IncotermsClassification IncotermsClassification
IncotermsLocation1 IncotermsLocation1
ShippingInstruction ShippingInstruction
_CentralPurchaseContractTP _CentralPurchaseContractTP
_CntrlPurContrHdrPartnerTP _CntrlPurContrHdrPartnerTP
_CntrlPurContrHdrDistrAddrTP _CntrlPurContrHdrDistrAddrTP
@AbapCatalog.sqlViewName: 'ICNTRLPCHDRDISTR'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'BO View for Header Distribution in Central Purchase Contract'

@ObjectModel.createEnabled: true
@ObjectModel.updateEnabled: true
@ObjectModel.deleteEnabled: true
@VDM.viewType:#TRANSACTIONAL
@ObjectModel.writeDraftPersistence: 'CNTRLPCHDISTR_D'

@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.sizeCategory: #L
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@AccessControl.personalData.blocking: #REQUIRED
define view I_CntrlPurContrHdrDistrTP
  as select from I_CntrlPurContrDistribution
  association [1..1] to I_CentralPurchaseContractTP   as _CentralPurchaseContractTP     on  _CentralPurchaseContractTP.CentralPurchaseContract = $projection.CentralPurchaseContract

  association [0..*] to I_CntrlPurContrHdrPartnerTP   as _CntrlPurContrHdrPartnerTP     on  _CntrlPurContrHdrPartnerTP.CentralPurchaseContract = $projection.CentralPurchaseContract
                                                                                        and _CntrlPurContrHdrPartnerTP.DistributionKey         = $projection.DistributionKey

  association [0..1] to I_CntrlPurContrHdrDistrAddrTP as _CntrlPurContrHdrDistrAddrTP   on  _CntrlPurContrHdrDistrAddrTP.CentralPurchaseContract = $projection.CentralPurchaseContract
                                                                                        and _CntrlPurContrHdrDistrAddrTP.DistributionKey         = $projection.DistributionKey

  ----Extension Association
  association [1..1] to E_CntrlPurContrDistribution      as _DistributionExtension      on  _DistributionExtension.PurchasingDocument     = $projection.CentralPurchaseContract
                                                                                        and _DistributionExtension.DistributionKey        = $projection.DistributionKey
                                                                                        

{

  key CentralPurchaseContract,
  key DistributionKey,
      CentralPurchaseContractItem,
      PurchasingDocumentCategory,
      PurchasingDocumentType,
      PurchasingOrganization,
      CompanyCode,
      Plant,
      LogicalSystem,
      DocumentCurrency,
      Currency,
      PurchasingGroup,
      StorageLocation,
      PaymentTerms,
      CashDiscount1Days,
      CashDiscount2Days,
      NetPaymentDays,
      CashDiscount1Percent,
      CashDiscount2Percent,
      Material,
      MaterialGroup,
      CntrlPurContrDistributionPct,
      TargetQuantity,
      TargetAmount,
      ExtContractForPurg,
      ExtContractItemForPurg,
      ItemDistributionStatus,
      IsDeleted,
      OrderQuantityUnit,
      DistributionType,
      DistrResponseMessageUUID,
      _CntrlPurchaseContractItem.ContractNetPriceAmount,
      ProcurementHubSourceSystem,
      PurchasingInfoRecordUpdateCode,
      ProcmtHubCompanyCodeGroupingID,
      ExtContractItemDistrForPurg, 
      /*sourcelist related */
      cast(SourceListIsUpdated as xfeld) as SourceListIsUpdated,
      SourceListRestriction,
      
      /* incoterms and shipping instruction*/
      IncotermsClassification,
      IncotermsLocation1,
      ShippingInstruction,
      
      /* Associations */
      @ObjectModel.association.type: [ #TO_COMPOSITION_PARENT, #TO_COMPOSITION_ROOT ]
      _CentralPurchaseContractTP,

      @ObjectModel.association.type: [ #TO_COMPOSITION_CHILD ]
      _CntrlPurContrHdrPartnerTP,

      @ObjectModel.association.type: [ #TO_COMPOSITION_CHILD ]
      _CntrlPurContrHdrDistrAddrTP

}
where
  CentralPurchaseContractItem = '00000'// and

  //IsDeleted <> 'X'

/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CNTRLPURCHASECONTRACTITEM",
"I_CNTRLPURCONTRDISTRIBUTION"
],
"ASSOCIATED":
[
"E_CNTRLPURCONTRDISTRIBUTION",
"I_CENTRALPURCHASECONTRACTTP",
"I_CNTRLPURCONTRHDRDISTRADDRTP",
"I_CNTRLPURCONTRHDRPARTNERTP"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/