I_ServiceDocumentFixedPrice

DDL: I_SERVICEDOCUMENTFIXEDPRICE Type: view BASIC Package: CRMS4_REPORT

Service Document Fixed Price

I_ServiceDocumentFixedPrice is a Basic CDS View that provides data about "Service Document Fixed Price" in SAP S/4HANA. It reads from 1 data source (I_ServiceDocument) and exposes 13 fields with key fields ServiceObjectType, ServiceDocument, PricingDocument. It has 2 associations to related views. Part of development package CRMS4_REPORT.

Data Sources (1)

SourceAliasJoin Type
I_ServiceDocument I_ServiceDocument from

Associations (2)

CardinalityTargetAliasCondition
[0..1] P_ServiceDocumentFixedPrice _PricingElement $projection.PricingDocument = _PricingElement.PricingDocument
[0..1] I_Currency _ConditionCurrency $projection.conditioncurrency = _ConditionCurrency.Currency

Annotations (11)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #BASIC view
EndUserText.label Service Document Fixed Price view
AccessControl.authorizationCheck #CHECK view
AbapCatalog.sqlViewName ISERVDOCFXDPRICE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ObjectModel.representativeKey PricingDocument view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view

Fields (13)

KeyFieldSource TableSource FieldDescription
KEY ServiceObjectType ServiceObjectType
KEY ServiceDocument ServiceDocument
KEY PricingDocument PricingDocument
PricingDocumentItem _PricingElement PricingDocumentItem
PricingProcedureStep _PricingElement PricingProcedureStep
PricingProcedureCounter _PricingElement PricingProcedureCounter
ConditionType _PricingElement ConditionType
ConditionCalculationType _PricingElement ConditionCalculationType
ConditionInactiveReason _PricingElement ConditionInactiveReason
ConditionCurrency _PricingElement ConditionCurrency
ConditionAmount _PricingElement ConditionAmount
_ServiceObjType _ServiceObjType
_ConditionCurrency _ConditionCurrency
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM: {
  viewType: #BASIC
}
@EndUserText.label: 'Service Document Fixed Price'
@AccessControl: {
  authorizationCheck: #CHECK,
  personalData.blocking: #('TRANSACTIONAL_DATA')
}
@AbapCatalog: {
  sqlViewName: 'ISERVDOCFXDPRICE',
  compiler.compareFilter: true,
  preserveKey: true
}
@ObjectModel: {
   representativeKey: 'PricingDocument',
   usageType: {
     dataClass:      #MIXED,
     serviceQuality: #D,
     sizeCategory:   #XXL
   }
}
define view I_ServiceDocumentFixedPrice
  as select from I_ServiceDocument
  association [0..1] to P_ServiceDocumentFixedPrice as _PricingElement      on $projection.PricingDocument = _PricingElement.PricingDocument
  association [0..1] to I_Currency                  as _ConditionCurrency           on  $projection.conditioncurrency = _ConditionCurrency.Currency

{
  key    ServiceObjectType,
  key    ServiceDocument,
  key    PricingDocument,
         _PricingElement.PricingDocumentItem,
         _PricingElement.PricingProcedureStep,
         _PricingElement.PricingProcedureCounter,

         _PricingElement.ConditionType,
         _PricingElement.ConditionCalculationType,
         _PricingElement.ConditionInactiveReason,
         @ObjectModel.foreignKey.association: '_ConditionCurrency'
         @Semantics.currencyCode:true
         _PricingElement.ConditionCurrency,
         @DefaultAggregation: #SUM
         @Semantics: { amount : {currencyCode: 'ConditionCurrency'} }
         _PricingElement.ConditionAmount,
         _ServiceObjType,
         _ConditionCurrency

}
//where

//  (

//       _PricingElement.ConditionType            = 'PMV1'

//    or _PricingElement.ConditionType            = 'PMV0'

//  )

//  and  _PricingElement.ConditionCalculationType = 'B'

//  and  _PricingElement.ConditionInactiveReason  = ''