A_BusSolnQtanExpenseItem

DDL: A_BUSSOLNQTANEXPENSEITEM Type: view COMPOSITE

Expense Item

A_BusSolnQtanExpenseItem is a Composite CDS View that provides data about "Expense Item" in SAP S/4HANA. It reads from 1 data source (I_ServiceDocumentItemEnhcd) and exposes 33 fields with key fields BusinessSolutionQuotation, BusSolutionQuotationItem. It has 8 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_ServiceDocumentItemEnhcd I_ServiceDocumentItemEnhcd from

Associations (8)

CardinalityTargetAliasCondition
[0..*] A_BusSolnQtanItmPriceElement _PriceElement $projection.BusinessSolutionQuotation = _PriceElement.BusinessSolutionQuotation and $projection.BusSolutionQuotationItem = _PriceElement.BusSolutionQuotationItem
[0..*] A_BusSolnQtanSrvcItmRefObj _ReferenceObject $projection.BusinessSolutionQuotation = _ReferenceObject.BusinessSolutionQuotation and $projection.BusSolutionQuotationItem = _ReferenceObject.BusSolutionQuotationItem
[0..*] A_BusSolnQtanItemText _Text $projection.BusSolutionQuotationItem = _Text.BusSolutionQuotationItem and $projection.BusinessSolutionQuotation = _Text.BusinessSolutionQuotation
[0..*] A_BusSolnQtanItmFUPSrvcOrder _ServiceOrder $projection.BusinessSolutionQuotation = _ServiceOrder.BusinessSolutionQuotation and $projection.BusSolutionQuotationItem = _ServiceOrder.BusSolutionQuotationItem
[1..1] A_BusinessSolutionQuotation _BusinessSolutionQuotation $projection.BusinessSolutionQuotation = _BusinessSolutionQuotation.BusinessSolutionQuotation
[0..1] I_BusSolnQtanItmExtReference _ExternalReference $projection.BusinessSolutionQuotation = _ExternalReference.BusinessSolutionQuotation and $projection.BusSolutionQuotationItem = _ExternalReference.BusSolutionQuotationItem and _ExternalReference.BusSolnQtanItemExtReference <> ''
[0..1] E_ServiceDocumentItem _Extension _Extension.ServiceCategory = 'BUS2000116' and $projection.BusinessSolutionQuotation = _Extension.ServiceOrderItem and $projection.BusSolutionQuotationItem = _Extension.ServiceLineExternalID
[0..1] I_UnitOfMeasure _UnitOfMeasure $projection.QuantityUnit = _UnitOfMeasure.UnitOfMeasure

Annotations (15)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Expense Item view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
AbapCatalog.sqlViewName ABSQEXPITM view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled true view
ObjectModel.deleteEnabled true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
Metadata.ignorePropagatedAnnotations true view

Fields (33)

KeyFieldSource TableSource FieldDescription
KEY BusinessSolutionQuotation ServiceDocument
KEY BusSolutionQuotationItem ServiceDocumentItem
BusSolnQuotationItemUUID ServiceDocumentItemUUID
ParentBusSolnQuotationItem _ParentServiceDocItem ServiceDocumentItem
BusSolnQtanItemCategory ServiceDocItemCategory
Product OriginallyRequestedProduct
Quantity ServiceDocumentItemQuantity
QuantityUnit ServiceDocItemQuantityUnit
RequestedQuantityISOUnit _UnitOfMeasure UnitOfMeasureISOCode
BusSolnQtanItemDescription ServiceDocumentItemDescription
Language Language
BusSolnQtanItemExtReference _ExternalReference BusSolnQtanItemExtReference
ItemOrderProbabilityInPercent ItemOrderProbabilityInPercent
BusSolnQtanItemIsReleased ServiceDocumentItemIsReleased
BusSolnQtanItemIsAccepted QuotationIsAccepted
BusSolnQtanItemIsRejected ServiceDocumentItemIsRejected
BusSolnQtanItmRjcnReason ServiceDocItemRejectionReason
SoldToParty SoldToParty
ShipToParty ShipToParty
BillToParty BillToParty
PayerParty PayerParty
PersonResponsible ResponsibleEmployee
ContactPerson ContactPerson
PaymentTerms PaymentTerms
BillingBlockReason BillingBlockReason
MasterWarranty MasterWarranty
BillableControl BillableControl
ContractAccount ContractAccount
_BusinessSolutionQuotation _BusinessSolutionQuotation
_PriceElement _PriceElement
_ReferenceObject _ReferenceObject
_Text _Text
_ServiceOrder _ServiceOrder
@ClientHandling.algorithm:#SESSION_VARIABLE
@EndUserText.label: 'Expense Item'
@VDM: {
  viewType: #COMPOSITE,
  lifecycle.contract.type: #PUBLIC_REMOTE_API
}
@AbapCatalog: {
  sqlViewName: 'ABSQEXPITM',
  compiler.compareFilter: true,
  preserveKey: true
}
@AccessControl: {
  authorizationCheck: #CHECK,
  personalData.blocking: #('TRANSACTIONAL_DATA')
}
@ObjectModel: {
   createEnabled: true,
   updateEnabled: true,
   deleteEnabled: true,
   usageType: {
     dataClass:      #TRANSACTIONAL,
     serviceQuality: #C,
     sizeCategory:   #L
   }
}
@Metadata.ignorePropagatedAnnotations: true

define view A_BusSolnQtanExpenseItem
  as select from I_ServiceDocumentItemEnhcd
  association [0..*] to A_BusSolnQtanItmPriceElement as _PriceElement              on  $projection.BusinessSolutionQuotation = _PriceElement.BusinessSolutionQuotation
                                                                                   and $projection.BusSolutionQuotationItem  = _PriceElement.BusSolutionQuotationItem

  association [0..*] to A_BusSolnQtanSrvcItmRefObj   as _ReferenceObject           on  $projection.BusinessSolutionQuotation = _ReferenceObject.BusinessSolutionQuotation
                                                                                   and $projection.BusSolutionQuotationItem  = _ReferenceObject.BusSolutionQuotationItem

  association [0..*] to A_BusSolnQtanItemText        as _Text                      on  $projection.BusSolutionQuotationItem  = _Text.BusSolutionQuotationItem
                                                                                   and $projection.BusinessSolutionQuotation = _Text.BusinessSolutionQuotation
  association [0..*] to A_BusSolnQtanItmFUPSrvcOrder as _ServiceOrder              on  $projection.BusinessSolutionQuotation = _ServiceOrder.BusinessSolutionQuotation
                                                                                   and $projection.BusSolutionQuotationItem  = _ServiceOrder.BusSolutionQuotationItem
  association [1..1] to A_BusinessSolutionQuotation  as _BusinessSolutionQuotation on  $projection.BusinessSolutionQuotation = _BusinessSolutionQuotation.BusinessSolutionQuotation
  association [0..1] to I_BusSolnQtanItmExtReference as _ExternalReference         on  $projection.BusinessSolutionQuotation          =  _ExternalReference.BusinessSolutionQuotation
                                                                                   and $projection.BusSolutionQuotationItem           =  _ExternalReference.BusSolutionQuotationItem
                                                                                   and _ExternalReference.BusSolnQtanItemExtReference <> ''
  association [0..1] to E_ServiceDocumentItem        as _Extension                 on  _Extension.ServiceCategory            = 'BUS2000116'
                                                                                   and $projection.BusinessSolutionQuotation = _Extension.ServiceOrderItem
                                                                                   and $projection.BusSolutionQuotationItem  = _Extension.ServiceLineExternalID
  association [0..1] to I_UnitOfMeasure              as _UnitOfMeasure             on  $projection.QuantityUnit = _UnitOfMeasure.UnitOfMeasure
{
  key     ServiceDocument                           as BusinessSolutionQuotation,
  key     ServiceDocumentItem                       as BusSolutionQuotationItem,
          ServiceDocumentItemUUID                   as BusSolnQuotationItemUUID,
          _ParentServiceDocItem.ServiceDocumentItem as ParentBusSolnQuotationItem,

          ServiceDocItemCategory                    as BusSolnQtanItemCategory,
          OriginallyRequestedProduct                as Product,
          @Semantics.quantity.unitOfMeasure: 'QuantityUnit'
          ServiceDocumentItemQuantity               as Quantity,
          ServiceDocItemQuantityUnit                as QuantityUnit,
          _UnitOfMeasure.UnitOfMeasureISOCode       as RequestedQuantityISOUnit,
          ServiceDocumentItemDescription            as BusSolnQtanItemDescription,
          Language,
          _ExternalReference.BusSolnQtanItemExtReference,
          ItemOrderProbabilityInPercent,

          /* STATUS */
          ServiceDocumentItemIsReleased             as BusSolnQtanItemIsReleased,
          case ServiceDocumentItemStatus
          when 'C'  then 'X'
          else ''
          end                                       as BusSolnQtanItemIsCompleted,
          QuotationIsAccepted                       as BusSolnQtanItemIsAccepted,
          ServiceDocumentItemIsRejected             as BusSolnQtanItemIsRejected,
          ServiceDocItemRejectionReason             as BusSolnQtanItmRjcnReason,
          /* PARTNERS */
          SoldToParty,
          ShipToParty,
          BillToParty,
          PayerParty,
          ResponsibleEmployee                       as PersonResponsible,
          ContactPerson,

          PaymentTerms,

          BillingBlockReason,

          /* SERVICE CONTRACT WARRANTY */
          MasterWarranty,
          BillableControl,
          ContractAccount,
          _BusinessSolutionQuotation,
          _PriceElement,
          _ReferenceObject,
          _Text,
          _ServiceOrder
}
where
      ServiceObjectType             = 'BUS2000116'
  and ServiceDocumentItemObjectType = 'BUS2000159'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BUSSOLNQTANITMEXTREFERENCE",
"I_SERVICEDOCUMENTITEMENHCD",
"I_UNITOFMEASURE"
],
"ASSOCIATED":
[
"A_BUSINESSSOLUTIONQUOTATION",
"A_BUSSOLNQTANITEMTEXT",
"A_BUSSOLNQTANITMFUPSRVCORDER",
"A_BUSSOLNQTANITMPRICEELEMENT",
"A_BUSSOLNQTANSRVCITMREFOBJ",
"E_SERVICEDOCUMENTITEM",
"I_BUSSOLNQTANITMEXTREFERENCE",
"I_UNITOFMEASURE"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/