A_ServiceQuotationItem

DDL: A_SERVICEQUOTATIONITEM Type: view COMPOSITE

Service Quotation Item

A_ServiceQuotationItem is a Composite CDS View that provides data about "Service Quotation Item" in SAP S/4HANA. It reads from 1 data source (I_ServiceDocumentItemEnhcd) and exposes 45 fields with key fields ServiceQuotation, ServiceQuotationItem. It has 12 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_ServiceDocumentItemEnhcd ServiceQuotationItem from

Associations (12)

CardinalityTargetAliasCondition
[0..*] A_ServiceQtanItemRefObject _ReferenceObject $projection.ServiceQuotation = _ReferenceObject.ServiceQuotation and $projection.ServiceQuotationItem = _ReferenceObject.ServiceQuotationItem
[0..*] A_ServiceQuotationItemText _Text $projection.ServiceQuotation = _Text.ServiceQuotation and $projection.ServiceQuotationItem = _Text.ServiceQuotationItem
[0..*] A_ServiceQtanItemPriceElement _PricingElement $projection.ServiceQuotation = _PricingElement.ServiceQuotation and $projection.ServiceQuotationItem = _PricingElement.ServiceQuotationItem
[1] A_ServiceQuotation _ServiceQuotation $projection.ServiceQuotation = _ServiceQuotation.ServiceQuotation
[0..1] I_ServiceDocumentItemSuccssr_2 _RefServiceOrderItem ServiceQuotationItem.ServiceDocumentItemCharUUID = _RefServiceOrderItem.ServiceDocumentItemCharUUID and _RefServiceOrderItem.ServiceDocItmSuccssrBusObjType = ServiceQuotationItem.ServiceDocumentItemObjectType
[0..1] A_ServiceOrdItmRefSrvcContr _RefServiceContractItem $projection.ServiceQuotationItemUUID = _RefServiceContractItem.ServiceOrderItemUUID
[0..1] I_CustMgmtExtRefID _CustMgmtExtRef $projection.ServiceQuotation = _CustMgmtExtRef.CustMgmtDocument and _CustMgmtExtRef.CustMgmtObjectType = ServiceObjectType and $projection.ServiceQuotationItem = _CustMgmtExtRef.CustMgmtDocumentItem and _CustMgmtExtRef.CustMgmtExtRefIDType = '0010'
[0..1] I_SrvcMgmtObjectStatus _SrvcMgmtLifeCycleSystemStatus $projection.ServiceQuotationItemUUID = _SrvcMgmtLifeCycleSystemStatus.SrvcMgmtObjectUUID and ( _SrvcMgmtLifeCycleSystemStatus.SrvcMgmtObjectStatus = 'I1002' or _SrvcMgmtLifeCycleSystemStatus.SrvcMgmtObjectStatus = 'I1003' or _SrvcMgmtLifeCycleSystemStatus.SrvcMgmtObjectStatus = 'I1004' or _SrvcMgmtLifeCycleSystemStatus.SrvcMgmtObjectStatus = 'I1005' ) and _SrvcMgmtLifeCycleSystemStatus.SrvcMgmtObjectStatusIsInactive = ' '
[0..1] E_ServiceDocumentItem _Extension _Extension.ServiceCategory = 'BUS2000116' and $projection.ServiceQuotation = _Extension.ServiceOrderItem and $projection.ServiceQuotationItem = _Extension.ServiceLineExternalID
[0..1] I_CustMgmtPartner _ServicePerformer CustMgmtPartnerFunction = '00000028' and CustMgmtPartFunctionCategory = '0091' and $projection.ServiceQuotation = _ServicePerformer.CustMgmtDocument and $projection.ServiceQuotationItem = _ServicePerformer.CustMgmtDocumentItem
[0..*] A_SrvcQtanItmInHouseRepairItem _InHouseRepairItem $projection.ServiceQuotation = _InHouseRepairItem.ServiceQuotation and $projection.ServiceQuotationItem = _InHouseRepairItem.ServiceQuotationItem
[0..1] I_SrvcMgmtObjectStatus _SrvcMgmtSendToPlanningStatus $projection.ServiceQuotationItemUUID = _SrvcMgmtSendToPlanningStatus.SrvcMgmtObjectUUID and ( _SrvcMgmtSendToPlanningStatus.SrvcMgmtObjectStatus = 'I1927' ) and _SrvcMgmtSendToPlanningStatus.SrvcMgmtObjectStatusIsInactive = ' '

Annotations (15)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Service Quotation Item view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
AbapCatalog.sqlViewName ASRVQTANITEM view
AbapCatalog.compiler.compareFilter 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
AbapCatalog.preserveKey true view

Fields (45)

KeyFieldSource TableSource FieldDescription
KEY ServiceQuotation ServiceDocument Transaction ID
KEY ServiceQuotationItem ServiceDocumentItem Service Document
ServiceDocItemCategory ServiceDocItemCategory
ServiceQuotationItemUUID ServiceDocumentItemUUID
ServiceQtanItemDescription ServiceDocumentItemDescription
Language Language Report Text Language
Product OriginallyRequestedProduct
QuantityUnit ServiceDocItemQuantityUnit
Quantity ServiceDocumentItemQuantity
ServiceDuration ServiceDuration Work Duration
ServiceDurationUnit ServiceDurationUnit Unit
ServiceDocumentItemIsQuotation ServiceDocumentItemIsQuotation
MaintenancePlanningPlant MaintenancePlanningPlant Planning Plant
MaintenanceWorkCenterPlant _WorkCenter Plant Valuation Area
MaintenanceWorkCenter _WorkCenter WorkCenter Work Center
SrvcDocItemCategoryUsage SrvcDocItemCategoryUsage
ServiceQtanItemExtReference _CustMgmtExtRef CustMgmtExtRefID
SrvcDocItmBillingRelevance SrvcDocItmBillingRelevance
DynItemProcessorPrfl DynItemProcessorPrfl
SoldToParty SoldToParty Sold-to Party
ShipToParty ShipToParty Ship-To Party (obsolete)
PersonResponsible ResponsibleEmployee Employee Resp.
ServicePerformer _ServicePerformer CustMgmtBusinessPartner
ServiceQuotationItemIsRejected ServiceDocumentItemIsRejected
SrvcQtanItmRejectionReason ServiceDocItemRejectionReason
TimeSheetOvertimeCategory TimeSheetOvertimeCategory
ReferenceServiceContract _RefServiceContractItem ReferenceServiceContract
ReferenceServiceContractItem _RefServiceContractItem ReferenceServiceContractItem
ServiceQtanSuccessorOrder
ServiceQtanSuccessorOrderItem
ParentServiceQuotationItem _ParentServiceDocItem ServiceDocumentItem Service Document
PaymentTerms PaymentTerms Pyt Terms
MaterialSubstitutionReason MaterialSubstitutionReason
TransactionCurrency TransactionCurrency Transaction Currency
ServiceDocumentItemNetAmount ServiceDocumentItemNetAmount
ServiceDocItemGrossAmount ServiceDocItemGrossAmount
ServiceDocumentItemTaxAmount ServiceDocumentItemTaxAmount
RespyMgmtServiceTeam RespyMgmtServiceTeam
RespyMgmtServiceTeamName _ServiceTeamHeader TeamName
RespyMgmtGlobalTeamID _ServiceTeamHeader RespyMgmtGlobalTeamID
_ReferenceObject _ReferenceObject
_Text _Text
_ServiceQuotation _ServiceQuotation
_PricingElement _PricingElement
_InHouseRepairItem _InHouseRepairItem

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view A_ServiceQuotationItem.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.

CREATE VIEW A_ServiceQuotationItem AS
SELECT
  ServiceDocument AS ServiceQuotation,
  ServiceDocumentItem AS ServiceQuotationItem,
  ServiceDocItemCategory,
  ServiceDocumentItemUUID AS ServiceQuotationItemUUID,
  ServiceDocumentItemDescription AS ServiceQtanItemDescription,
  Language,
  OriginallyRequestedProduct AS Product,
  ServiceDocItemQuantityUnit AS QuantityUnit,
  ServiceDocumentItemQuantity AS Quantity,
  ServiceDuration,
  ServiceDurationUnit,
  ServiceDocumentItemIsQuotation,
  MaintenancePlanningPlant,
  _WorkCenter.Plant AS MaintenanceWorkCenterPlant,
  _WorkCenter.WorkCenter AS MaintenanceWorkCenter,
  SrvcDocItemCategoryUsage,
  _CustMgmtExtRef.CustMgmtExtRefID AS ServiceQtanItemExtReference,
  SrvcDocItmBillingRelevance,
  DynItemProcessorPrfl,
  SoldToParty,
  ShipToParty,
  ResponsibleEmployee AS PersonResponsible,
  _ServicePerformer.CustMgmtBusinessPartner AS ServicePerformer,
  ServiceDocumentItemIsRejected AS ServiceQuotationItemIsRejected,
  ServiceDocItemRejectionReason AS SrvcQtanItmRejectionReason,
  TimeSheetOvertimeCategory,
  _RefServiceContractItem.ReferenceServiceContract AS ReferenceServiceContract,
  _RefServiceContractItem.ReferenceServiceContractItem AS ReferenceServiceContractItem,
  _RefServiceOrderItem._ServiceDocItm._ServiceDocument.ServiceDocument AS ServiceQtanSuccessorOrder,
  _RefServiceOrderItem._ServiceDocItm.ServiceDocumentItem AS ServiceQtanSuccessorOrderItem,
  _ParentServiceDocItem.ServiceDocumentItem AS ParentServiceQuotationItem,
  PaymentTerms,
  MaterialSubstitutionReason,
  TransactionCurrency,
  ServiceDocumentItemNetAmount,
  ServiceDocItemGrossAmount,
  ServiceDocumentItemTaxAmount,
  RespyMgmtServiceTeam,
  _ServiceTeamHeader.TeamName AS RespyMgmtServiceTeamName,
  _ServiceTeamHeader.RespyMgmtGlobalTeamID AS RespyMgmtGlobalTeamID
FROM I_ServiceDocumentItemEnhcd AS ServiceQuotationItem
LEFT OUTER JOIN A_ServiceQtanItemRefObject AS _ReferenceObject ON ServiceQuotation = _ReferenceObject.ServiceQuotation AND ServiceQuotationItem = _ReferenceObject.ServiceQuotationItem  -- association [0..*]
LEFT OUTER JOIN A_ServiceQuotationItemText AS _Text ON ServiceQuotation = _Text.ServiceQuotation AND ServiceQuotationItem = _Text.ServiceQuotationItem  -- association [0..*]
LEFT OUTER JOIN A_ServiceQtanItemPriceElement AS _PricingElement ON ServiceQuotation = _PricingElement.ServiceQuotation AND ServiceQuotationItem = _PricingElement.ServiceQuotationItem  -- association [0..*]
LEFT OUTER JOIN A_ServiceQuotation AS _ServiceQuotation ON ServiceQuotation = _ServiceQuotation.ServiceQuotation  -- association [1]
LEFT OUTER JOIN I_ServiceDocumentItemSuccssr_2 AS _RefServiceOrderItem ON ServiceQuotationItem.ServiceDocumentItemCharUUID = _RefServiceOrderItem.ServiceDocumentItemCharUUID AND _RefServiceOrderItem.ServiceDocItmSuccssrBusObjType = ServiceQuotationItem.ServiceDocumentItemObjectType  -- association [0..1]
LEFT OUTER JOIN A_ServiceOrdItmRefSrvcContr AS _RefServiceContractItem ON ServiceQuotationItemUUID = _RefServiceContractItem.ServiceOrderItemUUID  -- association [0..1]
LEFT OUTER JOIN I_CustMgmtExtRefID AS _CustMgmtExtRef ON ServiceQuotation = _CustMgmtExtRef.CustMgmtDocument AND _CustMgmtExtRef.CustMgmtObjectType = ServiceObjectType AND ServiceQuotationItem = _CustMgmtExtRef.CustMgmtDocumentItem AND _CustMgmtExtRef.CustMgmtExtRefIDType = '0010'  -- association [0..1]
LEFT OUTER JOIN I_SrvcMgmtObjectStatus AS _SrvcMgmtLifeCycleSystemStatus ON ServiceQuotationItemUUID = _SrvcMgmtLifeCycleSystemStatus.SrvcMgmtObjectUUID AND ( _SrvcMgmtLifeCycleSystemStatus.SrvcMgmtObjectStatus = 'I1002' OR _SrvcMgmtLifeCycleSystemStatus.SrvcMgmtObjectStatus = 'I1003' OR _SrvcMgmtLifeCycleSystemStatus.SrvcMgmtObjectStatus = 'I1004' OR _SrvcMgmtLifeCycleSystemStatus.SrvcMgmtObjectStatus = 'I1005' ) AND _SrvcMgmtLifeCycleSystemStatus.SrvcMgmtObjectStatusIsInactive = ' '  -- association [0..1]
LEFT OUTER JOIN E_ServiceDocumentItem AS _Extension ON _Extension.ServiceCategory = 'BUS2000116' AND ServiceQuotation = _Extension.ServiceOrderItem AND ServiceQuotationItem = _Extension.ServiceLineExternalID  -- association [0..1]
LEFT OUTER JOIN I_CustMgmtPartner AS _ServicePerformer ON CustMgmtPartnerFunction = '00000028' AND CustMgmtPartFunctionCategory = '0091' AND ServiceQuotation = _ServicePerformer.CustMgmtDocument AND ServiceQuotationItem = _ServicePerformer.CustMgmtDocumentItem  -- association [0..1]
LEFT OUTER JOIN A_SrvcQtanItmInHouseRepairItem AS _InHouseRepairItem ON ServiceQuotation = _InHouseRepairItem.ServiceQuotation AND ServiceQuotationItem = _InHouseRepairItem.ServiceQuotationItem  -- association [0..*]
LEFT OUTER JOIN I_SrvcMgmtObjectStatus AS _SrvcMgmtSendToPlanningStatus ON ServiceQuotationItemUUID = _SrvcMgmtSendToPlanningStatus.SrvcMgmtObjectUUID AND ( _SrvcMgmtSendToPlanningStatus.SrvcMgmtObjectStatus = 'I1927' ) AND _SrvcMgmtSendToPlanningStatus.SrvcMgmtObjectStatusIsInactive = ' '  -- association [0..1]
;