P_APProcessFlowSupplierInvoice

DDL: P_APPROCESSFLOWSUPPLIERINVOICE SQL: PAPPFLWSINV Type: view COMPOSITE

P_APProcessFlowSupplierInvoice is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_SupplierInvoice) and exposes 21 fields with key fields SupplierInvoice, FiscalYear. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_SupplierInvoice supplierInvoice from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_UserContactCard _UserContactCard _UserContactCard.ContactCardID = $projection.CreatedByUser

Annotations (11)

NameValueLevelField
VDM.viewType #COMPOSITE view
VDM.private true view
AbapCatalog.sqlViewName PAPPFLWSINV view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #REQUIRED view
DataAging.noAgingRestriction false view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (21)

KeyFieldSource TableSource FieldDescription
KEY SupplierInvoice I_SupplierInvoice SupplierInvoice
KEY FiscalYear I_SupplierInvoice FiscalYear
ProcessFlowNodeDocument I_SupplierInvoice SupplierInvoice
ProcessFlowNodeDocCategory
ProcessFlowNode
Supplier I_SupplierInvoice InvoicingParty
SupplierName
PostingDate I_SupplierInvoice PostingDate
DocumentDate I_SupplierInvoice DocumentDate
PaymentBlockingReason I_SupplierInvoice PaymentBlockingReason
SupplierInvoiceIDByInvcgParty I_SupplierInvoice SupplierInvoiceIDByInvcgParty
InvoiceGrossAmount I_SupplierInvoice InvoiceGrossAmount
DocumentCurrency I_SupplierInvoice DocumentCurrency
CreatedByUser I_SupplierInvoice CreatedByUser
SupplierInvoiceStatus I_SupplierInvoice SupplierInvoiceStatus
FullName _UserContactCard FullName
IsInvoice IsInvoice
CompanyCode I_SupplierInvoice CompanyCode
CompanyCodeName
IsEndOfPurposeBlocked IsEndOfPurposeBlocked
AuthorizationGroup _Supplier AuthorizationGroup
@VDM.viewType: #COMPOSITE
@VDM.private:true
@AbapCatalog.sqlViewName: 'PAPPFLWSINV'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.personalData.blocking: #REQUIRED
@DataAging.noAgingRestriction: false

@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #L
@ObjectModel.usageType.dataClass: #TRANSACTIONAL

define view P_APProcessFlowSupplierInvoice
  as select from I_SupplierInvoice as supplierInvoice

  association [1..1] to I_UserContactCard as _UserContactCard on _UserContactCard.ContactCardID = $projection.CreatedByUser

{

  key supplierInvoice.SupplierInvoice               as SupplierInvoice,
  key supplierInvoice.FiscalYear                    as FiscalYear,

      //    ProcessFlow

      supplierInvoice.SupplierInvoice               as ProcessFlowNodeDocument,
      cast( '2' as vgabe )                          as ProcessFlowNodeDocCategory,

      concat(supplierInvoice.SupplierInvoice,concat('00000____',concat(supplierInvoice.FiscalYear,'1')))
                                                    as ProcessFlowNode,


      //    Additional Info

      supplierInvoice.InvoicingParty                as Supplier,
      supplierInvoice._Supplier.SupplierName        as SupplierName,
      supplierInvoice.PostingDate                   as PostingDate,
      supplierInvoice.DocumentDate                  as DocumentDate,
      supplierInvoice.PaymentBlockingReason         as PaymentBlockingReason,
      supplierInvoice.SupplierInvoiceIDByInvcgParty as SupplierInvoiceIDByInvcgParty,
      supplierInvoice.InvoiceGrossAmount            as InvoiceGrossAmount,
      supplierInvoice.DocumentCurrency              as DocumentCurrency,
      supplierInvoice.CreatedByUser                 as CreatedByUser,
      supplierInvoice.SupplierInvoiceStatus         as SupplierInvoiceStatus,
      _UserContactCard.FullName                     as FullName,
      IsInvoice,
      supplierInvoice.CompanyCode                   as CompanyCode,
      supplierInvoice._CompanyCode.CompanyCodeName  as CompanyCodeName,
      @Consumption.hidden: true
      IsEndOfPurposeBlocked,
      @Consumption.hidden: true
      _Supplier.AuthorizationGroup

}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_COMPANYCODE",
"I_SUPPLIER",
"I_SUPPLIERINVOICE",
"I_USERCONTACTCARD"
],
"ASSOCIATED":
[
"I_USERCONTACTCARD"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/