R_ServiceQuotationItemTP
Service Quotation Item - TP
R_ServiceQuotationItemTP is a Transactional CDS View that provides data about "Service Quotation Item - TP" in SAP S/4HANA. It reads from 1 data source (I_ServiceDocumentItemEnhcd) and exposes 68 fields with key fields ServiceQuotation, ServiceQuotationItem. It has 17 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ServiceDocumentItemEnhcd | I_ServiceDocumentItemEnhcd | from |
Associations (17)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_RespyMgmtTeamHeaderDetail | _ServiceTeamHeader | $projection.RespyMgmtServiceTeam = _ServiceTeamHeader.RespyMgmtTeamID |
| [0..1] | I_CustMgmtExtRefID | _CustMgmtExtRef | $projection.ServiceQuotation = _CustMgmtExtRef.CustMgmtDocument and $projection.ServiceObjectType = _CustMgmtExtRef.CustMgmtObjectType and $projection.ServiceQuotationItem = _CustMgmtExtRef.CustMgmtDocumentItem and _CustMgmtExtRef.CustMgmtExtRefIDType = '0010' |
| [0..1] | I_CustMgmtExtRefID | _CustMgmtHeaderExtRef | $projection.ServiceQuotation = _CustMgmtHeaderExtRef.CustMgmtDocument and $projection.ServiceObjectType = _CustMgmtHeaderExtRef.CustMgmtObjectType and _CustMgmtHeaderExtRef.CustMgmtExtRefIDType = '0009' |
| [0..1] | I_SrvcMgmtObjectStatus | _SrvcQtanItmStatus | $projection.ServiceQuotationItemUUID = _SrvcQtanItmStatus.SrvcMgmtObjectUUID and ( _SrvcQtanItmStatus.SrvcMgmtObjectStatus = 'I1002' or _SrvcQtanItmStatus.SrvcMgmtObjectStatus = 'I1003' or _SrvcQtanItmStatus.SrvcMgmtObjectStatus = 'I1005' or _SrvcQtanItmStatus.SrvcMgmtObjectStatus = 'I1004' ) and _SrvcQtanItmStatus.SrvcMgmtObjectStatusIsInactive = ' ' |
| [0..1] | R_SrvcDocItemDocumentFlow | _RefServiceContract | $projection.ServiceQuotation = _RefServiceContract.ServiceDocument and $projection.ServiceQuotationItem = _RefServiceContract.ServiceDocumentItem and _RefServiceContract.PrdcssrSuccssrDocObjectType = 'BUS2000112' and _RefServiceContract.ServiceObjectType = 'BUS2000116' |
| [0..1] | I_SrvcMgmtObjectStatus | _SrvcMgmtSendToPlanningStatus | $projection.ServiceQuotationItemUUID=_SrvcMgmtSendToPlanningStatus.SrvcMgmtObjectUUID and( _SrvcMgmtSendToPlanningStatus.SrvcMgmtObjectStatus = 'I1927' ) and _SrvcMgmtSendToPlanningStatus.SrvcMgmtObjectStatusIsInactive = ' ' |
| [0..1] | E_ServiceDocumentItem | _Extension | _Extension.ServiceCategory = 'BUS2000116' and $projection.ServiceQuotation = _Extension.ServiceOrderItem and $projection.ServiceQuotationItem = _Extension.ServiceLineExternalID |
| [0..1] | I_CustMgmtPartner | _ServicePerformer | _ServicePerformer.CustMgmtPartnerFunction = '00000028' and _ServicePerformer.CustMgmtPartFunctionCategory = '0091' and $projection.ServiceQuotation = _ServicePerformer.CustMgmtDocument and $projection.ServiceQuotationItem = _ServicePerformer.CustMgmtDocumentItem |
| [0..*] | R_SrvcQtanItemRefObjectTP | _SrvcQtanItemRefObjectTP | |
| [0..*] | R_SrvcQtanItemPriceElementTP | _SrvcQtanItemPriceElementTP | |
| [0..*] | R_SrvcQtanItmFUPSrvcOrdTP | _SrvcQtanItmFUPSrvcOrdTP | |
| [0..*] | R_SrvcQtanItemPartnerTP | _SrvcQtanItemPartnerTP | |
| [0..*] | R_SrvcQtanItemDurationTP | _SrvcQtanItemDurationTP | |
| [0..*] | R_SrvcQtanItemAppointmentTP | _SrvcQtanItemAppointmentTP | |
| [0..*] | R_SrvcQtanItemUserStatusTP | _SrvcQtanItemUserStatusTP | |
| [0..*] | R_SrvcQtanItemLongTextTP | _SrvcQtanItemLongTextTP | |
| [0..*] | R_SrvcQtanItmInhRepairItemTP | _SrvcQtanItmInhRepairItemTP | |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Service Quotation Item - TP | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.representativeKey | ServiceQuotationItem | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view |
Fields (68)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ServiceQuotation | ServiceDocument | Transaction ID | |
| KEY | ServiceQuotationItem | ServiceDocumentItem | Service Document | |
| ServiceObjectType | ServiceObjectType | Object Type | ||
| ServiceDocumentItemObjectType | ServiceDocumentItemObjectType | |||
| ServiceQtanItemCategory | ServiceDocItemCategory | |||
| ServiceQuotationItemUUID | ServiceDocumentItemUUID | |||
| ParentServiceQuotationItem | _ParentServiceDocItem | ServiceDocumentItem | Service Document | |
| ServiceQtanItemDescription | ServiceDocumentItemDescription | |||
| Language | Language | Report Text Language | ||
| ServiceDocItemCreationDateTime | ServiceDocItemCreationDateTime | |||
| ServiceDocItemChangedDateTime | ServiceDocItemChangedDateTime | |||
| ServiceDocItemCreatedByUser | ServiceDocItemCreatedByUser | |||
| ServiceDocItemChangedByUser | ServiceDocItemChangedByUser | |||
| Product | Product | Product Sold | ||
| Quantity | ServiceDocumentItemQuantity | |||
| QuantityUnit | ServiceDocItemQuantityUnit | |||
| MaintenanceWorkCenterPlant | _WorkCenter | Plant | Valuation Area | |
| MaintenanceWorkCenter | _WorkCenter | WorkCenter | Work Center | |
| MaintenancePlanningPlant | MaintenancePlanningPlant | Planning Plant | ||
| Plant | Plant | Valuation Area | ||
| StorageLocation | StorageLocation | StorageLocation | ||
| SrvcDocItmBillingRelevance | SrvcDocItmBillingRelevance | |||
| DynItemProcessorPrfl | DynItemProcessorPrfl | |||
| SrvcDocItemCategoryUsage | SrvcDocItemCategoryUsage | |||
| SoldToParty | SoldToParty | Sold-to Party | ||
| ShipToParty | ShipToParty | Ship-To Party (obsolete) | ||
| ContactPersonBusinessPartnerId | ContactPerson | Contact Person Key | ||
| RespEmployeeBusinessPartnerId | ResponsibleEmployee | Employee Resp. | ||
| ServicePerformer | _ServicePerformer | CustMgmtBusinessPartner | ||
| RespyMgmtServiceTeam | RespyMgmtServiceTeam | |||
| RespyMgmtGlobalTeamID | _ServiceTeamHeader | RespyMgmtGlobalTeamID | ||
| SrvcQtanItemStatus | ServiceDocumentItemStatus | |||
| ServiceQuotationItemIsRejected | ServiceDocumentItemIsRejected | |||
| ServiceQuotationItemHasError | ServiceDocumentItemHasError | |||
| SrvcQtanItemGTSEmbargoStatus | SrvcDocItmGTSEmbargoStatus | |||
| SrvcQtanItmGTSLglControlStatus | SrvcDocItmGTSLglControlStatus | |||
| SrvcQtanItemGTSScreeningStatus | SrvcDocItmGTSScreeningStatus | |||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| ServiceDocItemGrossAmount | ServiceDocItemGrossAmount | |||
| ServiceDocumentItemNetAmount | ServiceDocumentItemNetAmount | |||
| ServiceDocumentItemTaxAmount | ServiceDocumentItemTaxAmount | |||
| PaymentTerms | PaymentTerms | Pyt Terms | ||
| ServiceQtanItemExtReference | _CustMgmtExtRef | CustMgmtExtRefID | ||
| ServiceQtanExtReference | _CustMgmtHeaderExtRef | CustMgmtExtRefID | ||
| ReferenceServiceContract | ||||
| ReferenceServiceContractItem | ||||
| SrvcQtanItmRejectionReason | ServiceDocItemRejectionReason | |||
| MaterialSubstitutionReason | MaterialSubstitutionReason | |||
| OriginallyRequestedProduct | OriginallyRequestedProduct | |||
| _ServiceDocument | _ServiceDocument | |||
| _ServicePerformer | _ServicePerformer | |||
| _SalesUnit | _SalesUnit | |||
| _Product | _Product | |||
| _ContactPerson | _ContactPerson | |||
| _RespEmployee | _RespEmployee | |||
| _ServiceObjType | _ServiceObjType | |||
| _SrvcQtanItmStatus | _SrvcQtanItmStatus | |||
| _TransactionCurrency | _TransactionCurrency | |||
| _ServiceQuotationTP | _ServiceQuotationTP | |||
| _SrvcQtanItemRefObjectTP | _SrvcQtanItemRefObjectTP | |||
| _SrvcQtanItemPriceElementTP | _SrvcQtanItemPriceElementTP | |||
| _SrvcQtanItmFUPSrvcOrdTP | _SrvcQtanItmFUPSrvcOrdTP | |||
| _SrvcQtanItemPartnerTP | _SrvcQtanItemPartnerTP | |||
| _SrvcQtanItemDurationTP | _SrvcQtanItemDurationTP | |||
| _SrvcQtanItemAppointmentTP | _SrvcQtanItemAppointmentTP | |||
| _SrvcQtanItemUserStatusTP | _SrvcQtanItemUserStatusTP | |||
| _SrvcQtanItemLongTextTP | _SrvcQtanItemLongTextTP | |||
| _SrvcQtanItmInhRepairItemTP | _SrvcQtanItmInhRepairItemTP |
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 R_ServiceQuotationItemTP.
-- 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 R_ServiceQuotationItemTP AS
SELECT
ServiceDocument AS ServiceQuotation,
ServiceDocumentItem AS ServiceQuotationItem,
ServiceObjectType,
ServiceDocumentItemObjectType,
ServiceDocItemCategory AS ServiceQtanItemCategory,
ServiceDocumentItemUUID AS ServiceQuotationItemUUID,
_ParentServiceDocItem.ServiceDocumentItem AS ParentServiceQuotationItem,
ServiceDocumentItemDescription AS ServiceQtanItemDescription,
Language,
ServiceDocItemCreationDateTime,
ServiceDocItemChangedDateTime,
ServiceDocItemCreatedByUser,
ServiceDocItemChangedByUser,
Product,
ServiceDocumentItemQuantity AS Quantity,
ServiceDocItemQuantityUnit AS QuantityUnit,
_WorkCenter.Plant AS MaintenanceWorkCenterPlant,
_WorkCenter.WorkCenter AS MaintenanceWorkCenter,
MaintenancePlanningPlant,
Plant,
StorageLocation,
SrvcDocItmBillingRelevance,
DynItemProcessorPrfl,
SrvcDocItemCategoryUsage,
SoldToParty,
ShipToParty,
ContactPerson AS ContactPersonBusinessPartnerId,
ResponsibleEmployee AS RespEmployeeBusinessPartnerId,
_ServicePerformer.CustMgmtBusinessPartner AS ServicePerformer,
RespyMgmtServiceTeam,
_ServiceTeamHeader.RespyMgmtGlobalTeamID AS RespyMgmtGlobalTeamID,
ServiceDocumentItemStatus AS SrvcQtanItemStatus,
ServiceDocumentItemIsRejected AS ServiceQuotationItemIsRejected,
ServiceDocumentItemHasError AS ServiceQuotationItemHasError,
SrvcDocItmGTSEmbargoStatus AS SrvcQtanItemGTSEmbargoStatus,
SrvcDocItmGTSLglControlStatus AS SrvcQtanItmGTSLglControlStatus,
SrvcDocItmGTSScreeningStatus AS SrvcQtanItemGTSScreeningStatus,
TransactionCurrency,
ServiceDocItemGrossAmount,
ServiceDocumentItemNetAmount,
ServiceDocumentItemTaxAmount,
PaymentTerms,
_CustMgmtExtRef.CustMgmtExtRefID AS ServiceQtanItemExtReference,
_CustMgmtHeaderExtRef.CustMgmtExtRefID AS ServiceQtanExtReference,
cast( _RefServiceContract.CustMgmtPrdcssrTransactionKey as crmt_object_id_db ) AS ReferenceServiceContract,
cast( _RefServiceContract.BusinessTransactionDocItem as crms4_number_int ) AS ReferenceServiceContractItem,
ServiceDocItemRejectionReason AS SrvcQtanItmRejectionReason,
MaterialSubstitutionReason,
OriginallyRequestedProduct
FROM I_ServiceDocumentItemEnhcd
LEFT OUTER JOIN I_RespyMgmtTeamHeaderDetail AS _ServiceTeamHeader ON RespyMgmtServiceTeam = _ServiceTeamHeader.RespyMgmtTeamID -- association [0..1]
LEFT OUTER JOIN I_CustMgmtExtRefID AS _CustMgmtExtRef ON ServiceQuotation = _CustMgmtExtRef.CustMgmtDocument AND ServiceObjectType = _CustMgmtExtRef.CustMgmtObjectType AND ServiceQuotationItem = _CustMgmtExtRef.CustMgmtDocumentItem AND _CustMgmtExtRef.CustMgmtExtRefIDType = '0010' -- association [0..1]
LEFT OUTER JOIN I_CustMgmtExtRefID AS _CustMgmtHeaderExtRef ON ServiceQuotation = _CustMgmtHeaderExtRef.CustMgmtDocument AND ServiceObjectType = _CustMgmtHeaderExtRef.CustMgmtObjectType AND _CustMgmtHeaderExtRef.CustMgmtExtRefIDType = '0009' -- association [0..1]
LEFT OUTER JOIN I_SrvcMgmtObjectStatus AS _SrvcQtanItmStatus ON ServiceQuotationItemUUID = _SrvcQtanItmStatus.SrvcMgmtObjectUUID AND ( _SrvcQtanItmStatus.SrvcMgmtObjectStatus = 'I1002' OR _SrvcQtanItmStatus.SrvcMgmtObjectStatus = 'I1003' OR _SrvcQtanItmStatus.SrvcMgmtObjectStatus = 'I1005' OR _SrvcQtanItmStatus.SrvcMgmtObjectStatus = 'I1004' ) AND _SrvcQtanItmStatus.SrvcMgmtObjectStatusIsInactive = ' ' -- association [0..1]
LEFT OUTER JOIN R_SrvcDocItemDocumentFlow AS _RefServiceContract ON ServiceQuotation = _RefServiceContract.ServiceDocument AND ServiceQuotationItem = _RefServiceContract.ServiceDocumentItem AND _RefServiceContract.PrdcssrSuccssrDocObjectType = 'BUS2000112' AND _RefServiceContract.ServiceObjectType = 'BUS2000116' -- association [0..1]
LEFT OUTER JOIN I_SrvcMgmtObjectStatus AS _SrvcMgmtSendToPlanningStatus ON ServiceQuotationItemUUID=_SrvcMgmtSendToPlanningStatus.SrvcMgmtObjectUUID AND( _SrvcMgmtSendToPlanningStatus.SrvcMgmtObjectStatus = 'I1927' ) AND _SrvcMgmtSendToPlanningStatus.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 _ServicePerformer.CustMgmtPartnerFunction = '00000028' AND _ServicePerformer.CustMgmtPartFunctionCategory = '0091' AND ServiceQuotation = _ServicePerformer.CustMgmtDocument AND ServiceQuotationItem = _ServicePerformer.CustMgmtDocumentItem -- association [0..1]
LEFT OUTER JOIN R_SrvcQtanItemRefObjectTP AS _SrvcQtanItemRefObjectTP ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN R_SrvcQtanItemPriceElementTP AS _SrvcQtanItemPriceElementTP ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN R_SrvcQtanItmFUPSrvcOrdTP AS _SrvcQtanItmFUPSrvcOrdTP ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN R_SrvcQtanItemPartnerTP AS _SrvcQtanItemPartnerTP ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN R_SrvcQtanItemDurationTP AS _SrvcQtanItemDurationTP ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN R_SrvcQtanItemAppointmentTP AS _SrvcQtanItemAppointmentTP ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN R_SrvcQtanItemUserStatusTP AS _SrvcQtanItemUserStatusTP ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN R_SrvcQtanItemLongTextTP AS _SrvcQtanItemLongTextTP ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN R_SrvcQtanItmInhRepairItemTP AS _SrvcQtanItmInhRepairItemTP ON /* condition not available in parsed metadata */ -- association [0..*]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA