P_PurchDocAmntInDocCurr

DDL: P_PURCHDOCAMNTINDOCCURR SQL: PGRCPDAMNT Type: view COMPOSITE

Purch Document Amnt In Document Currency

P_PurchDocAmntInDocCurr is a Composite CDS View that provides data about "Purch Document Amnt In Document Currency" in SAP S/4HANA. It reads from 1 data source (I_PurchasingDocumentItem) and exposes 11 fields with key fields PurchasingDocument, DocumentCurrency.

Data Sources (1)

SourceAliasJoin Type
I_PurchasingDocumentItem I_PurchasingDocumentItem from

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName PGRCPDAMNT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Purch Document Amnt In Document Currency view
VDM.viewType #COMPOSITE view
VDM.private true view
AbapCatalog.buffering.status #NOT_ALLOWED view
AccessControl.personalData.blocking #REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #MIXED view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY PurchasingDocument PurchasingDocument
KEY DocumentCurrency DocumentCurrency
NetAmount
GrossAmount
EffectiveAmount
Subtotal1Amount
Subtotal2Amount
Subtotal3Amount
Subtotal4Amount
Subtotal5Amount
Subtotal6Amount
@AbapCatalog.sqlViewName: 'PGRCPDAMNT'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Purch Document Amnt In Document Currency'
@VDM.viewType: #COMPOSITE
@VDM.private: true
@AbapCatalog.buffering.status: #NOT_ALLOWED
@AccessControl.personalData.blocking: #REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.dataClass: #MIXED
define view P_PurchDocAmntInDocCurr

  as select from I_PurchasingDocumentItem


{

  key PurchasingDocument,
  key DocumentCurrency,

      @Semantics.amount.currencyCode: 'DocumentCurrency'
      @DefaultAggregation: #NONE
      sum (NetAmount)       as NetAmount,

      @Semantics.amount.currencyCode: 'DocumentCurrency'
      @DefaultAggregation: #NONE
      sum (GrossAmount)     as GrossAmount,

      @Semantics.amount.currencyCode: 'DocumentCurrency'
      @DefaultAggregation: #NONE
      sum (EffectiveAmount) as EffectiveAmount,

      @Semantics.amount.currencyCode: 'DocumentCurrency'
      @DefaultAggregation: #NONE
      sum (Subtotal1Amount) as Subtotal1Amount,

      @Semantics.amount.currencyCode: 'DocumentCurrency'
      @DefaultAggregation: #NONE
      sum (Subtotal2Amount) as Subtotal2Amount,

      @Semantics.amount.currencyCode: 'DocumentCurrency'
      @DefaultAggregation: #NONE
      sum (Subtotal3Amount) as Subtotal3Amount,

      @Semantics.amount.currencyCode: 'DocumentCurrency'
      @DefaultAggregation: #NONE
      sum (Subtotal4Amount) as Subtotal4Amount,

      @Semantics.amount.currencyCode: 'DocumentCurrency'
      @DefaultAggregation: #NONE
      sum (Subtotal5Amount) as Subtotal5Amount,

      @Semantics.amount.currencyCode: 'DocumentCurrency'
      @DefaultAggregation: #NONE
      sum (Subtotal6Amount) as Subtotal6Amount
}

group by 
 PurchasingDocument,
 DocumentCurrency
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PURCHASINGDOCUMENTITEM"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/