I_CFinPurchasingDocument

DDL: I_CFINPURCHASINGDOCUMENT Type: view COMPOSITE Package: FINS_CFIN_ACC_VIEW_API

CFin Purchasing Document: Header

I_CFinPurchasingDocument is a Composite CDS View that provides data about "CFin Purchasing Document: Header" in SAP S/4HANA. It reads from 1 data source (I_PurchasingDocument) and exposes 49 fields with key fields SenderLogicalSystem, CFinPurchasingDocument. It has 2 associations to related views. Part of development package FINS_CFIN_ACC_VIEW_API.

Data Sources (1)

SourceAliasJoin Type
I_PurchasingDocument I_PurchasingDocument from

Associations (2)

CardinalityTargetAliasCondition
[0..*] I_CFinPurchasingDocumentItem _CFinPurchasingDocumentItem $projection.SenderLogicalSystem = _CFinPurchasingDocumentItem.SenderLogicalSystem and $projection.CFinPurchasingDocument = _CFinPurchasingDocumentItem.CFinPurchasingDocument
[0..1] I_LogicalSystem _LogicalSystem $projection.SenderLogicalSystem = _LogicalSystem.LogicalSystem

Annotations (11)

NameValueLevelField
EndUserText.label CFin Purchasing Document: Header view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AccessControl.authorizationCheck #CHECK view
AbapCatalog.sqlViewName ICFINPOROOT view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view

Fields (49)

KeyFieldSource TableSource FieldDescription
KEY SenderLogicalSystem
KEY CFinPurchasingDocument
CompanyCode CompanyCode
PurchasingDocumentCategory PurchasingDocumentCategory
PurchasingDocumentType PurchasingDocumentType
PurchasingDocumentSubtype PurchasingDocumentSubtype
PurchasingDocumentDeletionCode PurchasingDocumentDeletionCode
CreationDate CreationDate
Supplier Supplier
PaymentTerms PaymentTerms
CashDiscount1Days CashDiscount1Days
CashDiscount2Days CashDiscount2Days
NetPaymentDays NetPaymentDays
CashDiscount1Percent CashDiscount1Percent
CashDiscount2Percent CashDiscount2Percent
PurchasingOrganization PurchasingOrganization
PurchasingGroup PurchasingGroup
DocumentCurrency DocumentCurrency
ExchangeRate ExchangeRate
ExchangeRateIsFixed ExchangeRateIsFixed
PurchasingDocumentOrderDate PurchasingDocumentOrderDate
ValidityStartDate ValidityStartDate
ValidityEndDate ValidityEndDate
SupplyingSupplier SupplyingSupplier
SupplyingPlant SupplyingPlant
PricingDocument PurchasingDocumentCondition
PricingProcedure PricingProcedure
InvoicingParty InvoicingParty
ReleaseIsNotCompleted ReleaseIsNotCompleted
TaxReturnCountry TaxReturnCountry
PurchasingCompletenessStatus PurchasingCompletenessStatus
PurchasingProcessingStatus PurchasingProcessingStatus
CreatedByUser CreatedByUser
IsEndOfPurposeBlocked I_PurchasingDocument IsEndOfPurposeBlocked
PurchasingDocumentIsAged I_PurchasingDocument PurchasingDocumentIsAged
_CFinPurchasingDocumentItem _CFinPurchasingDocumentItem
_CompanyCode _CompanyCode
_PurchasingDocumentType _PurchasingDocumentType
_PurchasingDocumentCategory _PurchasingDocumentCategory
_Supplier _Supplier
_SupplyingSupplier _SupplyingSupplier
_InvoicingParty _InvoicingParty
_PaymentTerms _PaymentTerms
_PurchasingOrganization _PurchasingOrganization
_PurchasingGroup _PurchasingGroup
_DocumentCurrency _DocumentCurrency
_SupplyingPlant _SupplyingPlant
_PricingProcedure _PricingProcedure
_LogicalSystem _LogicalSystem
@EndUserText.label: 'CFin Purchasing Document: Header'
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM: {
viewType:#COMPOSITE,
lifecycle.contract.type: #PUBLIC_LOCAL_API
}
@AccessControl: {
authorizationCheck: #CHECK,
personalData.blocking: #('TRANSACTIONAL_DATA')
}
@AbapCatalog:{
sqlViewName: 'ICFINPOROOT',
preserveKey: true,
compiler.compareFilter: true
}
@ObjectModel: {
   usageType: {
     dataClass:      #TRANSACTIONAL,
     serviceQuality: #C,
     sizeCategory:   #L
   }
}

/*+[hideWarning] { "IDS" : [ "KEY_CHECK" ] } */
define view I_CFinPurchasingDocument
  as select from I_PurchasingDocument
  association [0..*] to I_CFinPurchasingDocumentItem as _CFinPurchasingDocumentItem on  $projection.SenderLogicalSystem    = _CFinPurchasingDocumentItem.SenderLogicalSystem
                                                                                    and $projection.CFinPurchasingDocument = _CFinPurchasingDocumentItem.CFinPurchasingDocument
  association [0..1] to I_LogicalSystem              as _LogicalSystem              on  $projection.SenderLogicalSystem = _LogicalSystem.LogicalSystem
{
      @ObjectModel.foreignKey.association: '_LogicalSystem'
  key cast( '          ' as logsys preserving type  )                           as SenderLogicalSystem,
  key cast( PurchasingDocument as fins_cfin_av_purchasing_doc preserving type ) as CFinPurchasingDocument,
      CompanyCode,
      PurchasingDocumentCategory,
      PurchasingDocumentType,
      PurchasingDocumentSubtype,
      PurchasingDocumentDeletionCode,
      CreationDate,
      Supplier,
      PaymentTerms,
      CashDiscount1Days,
      CashDiscount2Days,
      NetPaymentDays,
      CashDiscount1Percent,
      CashDiscount2Percent,
      PurchasingOrganization,
      PurchasingGroup,
      DocumentCurrency,
      ExchangeRate,
      ExchangeRateIsFixed,
      PurchasingDocumentOrderDate,
      ValidityStartDate,
      ValidityEndDate,
      SupplyingSupplier,
      SupplyingPlant,
      PurchasingDocumentCondition                                               as PricingDocument,
      PricingProcedure,
      InvoicingParty,
      ReleaseIsNotCompleted,
      TaxReturnCountry,
      PurchasingCompletenessStatus,
      PurchasingProcessingStatus,
      CreatedByUser,
      I_PurchasingDocument.IsEndOfPurposeBlocked,
      I_PurchasingDocument.PurchasingDocumentIsAged,

      _CFinPurchasingDocumentItem,
      _CompanyCode,
      _PurchasingDocumentType,
      _PurchasingDocumentCategory,
      _Supplier,
      _SupplyingSupplier,
      _InvoicingParty,
      _PaymentTerms,
      _PurchasingOrganization,
      _PurchasingGroup,
      _DocumentCurrency,
      _SupplyingPlant,
      _PricingProcedure,
      _LogicalSystem // Make association public

}