PRODCMPLNCLICRLVTSALESDOC

DDL: PRODCMPLNCLICRLVTSALESDOC SQL: PCLRSO Type: view Package: EHFND_PCL_LICENCSE_METRIC

License Relevant Sales Document Items

PRODCMPLNCLICRLVTSALESDOC is a CDS View that provides data about "License Relevant Sales Document Items" in SAP S/4HANA. It reads from 1 data source (vbap) and exposes 4 fields with key fields SalesDocument, SalesDocumentItem. Part of development package EHFND_PCL_LICENCSE_METRIC.

Data Sources (1)

SourceAliasJoin Type
vbap vbap from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PCLRSO view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_ALLOWED view
AccessControl.personalData.blocking #NOT_REQUIRED view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #AUTOMATED view
EndUserText.label License Relevant Sales Document Items view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XL view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY SalesDocument vbap vbeln
KEY SalesDocumentItem vbap posnr
CreationDate vbap erdat
NumberOfItems
@AbapCatalog.sqlViewName: 'PCLRSO'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_ALLOWED
@AccessControl.personalData.blocking: #NOT_REQUIRED
@ClientHandling.type: #INHERITED
@ClientHandling.algorithm: #AUTOMATED
//@VDM.private: true

//@VDM.viewType: #BASIC

@EndUserText.label: 'License Relevant Sales Document Items'
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.sizeCategory: #XL
define view PRODCMPLNCLICRLVTSALESDOC
  as select from vbap
    join         vbak on  vbak.mandt = vbap.mandt
                      and vbap.vbeln = vbak.vbeln
{
  key vbap.vbeln             as SalesDocument,
  key vbap.posnr             as SalesDocumentItem,
      @Semantics.systemDate.createdAt: true
      vbap.erdat             as CreationDate,
      cast( 1 as abap.int8 ) as NumberOfItems
}
where
       vbap.matnr      <> ''
  and(
       vbak.vbtyp =  'A'
    or vbak.vbtyp =  'B'
    or vbak.vbtyp =  'C'
    or vbak.vbtyp =  'I'
    or vbak.vbtyp =  'G'
  )