R_ServiceContractItemTP
Service Contract Item - TP
R_ServiceContractItemTP is a Transactional CDS View that provides data about "Service Contract Item - TP" in SAP S/4HANA. It reads from 1 data source (I_ServiceDocumentItemEnhcd) and exposes 94 fields with key fields ServiceContract, ServiceContractItem. It has 23 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ServiceDocumentItemEnhcd | I_ServiceDocumentItemEnhcd | from |
Associations (23)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_StatusObjectUUIDStatus | _SrvcOrdItmStatus | $projection.ServiceContractItemUUID = _SrvcOrdItmStatus.StatusObjectUUID and ( _SrvcOrdItmStatus.StatusCode = 'I1002' or _SrvcOrdItmStatus.StatusCode = 'I1003' or _SrvcOrdItmStatus.StatusCode = 'I1004' or _SrvcOrdItmStatus.StatusCode = 'I1005' ) and _SrvcOrdItmStatus.StatusIsActive = 'X' |
| [0..1] | I_CustMgmtExtRefID | _ExtRefServiceContract | _ExtRefServiceContract.CustMgmtObjectType = 'BUS2000112' and $projection.ServiceContract = _ExtRefServiceContract.CustMgmtDocument and _ExtRefServiceContract.CustMgmtExtRefIDType = '0003' |
| [0..1] | I_CustMgmtExtRefID | _ExtRefServiceContractItem | _ExtRefServiceContractItem.CustMgmtObjectType = 'BUS2000112' and $projection.ServiceContract = _ExtRefServiceContractItem.CustMgmtDocument and $projection.ServiceContractItem = _ExtRefServiceContractItem.CustMgmtDocumentItem and _ExtRefServiceContractItem.CustMgmtExtRefIDType = '0004' |
| [0..1] | I_CustMgmtExtRefID | _ExtRefServiceQtan | _ExtRefServiceQtan.CustMgmtObjectType = 'BUS2000112' and $projection.ServiceContract = _ExtRefServiceQtan.CustMgmtDocument and _ExtRefServiceQtan.CustMgmtExtRefIDType = '0009' |
| [0..1] | I_CustMgmtExtRefID | _ExtRefServiceQtanItem | _ExtRefServiceQtanItem.CustMgmtObjectType = 'BUS2000112' and $projection.ServiceContract = _ExtRefServiceQtanItem.CustMgmtDocument and $projection.ServiceContractItem = _ExtRefServiceQtanItem.CustMgmtDocumentItem and _ExtRefServiceQtanItem.CustMgmtExtRefIDType = '0010' |
| [0..1] | I_CustMgmtExtRefID | _ExtRefLegalContract | _ExtRefLegalContract.CustMgmtObjectType = 'BUS2000112' and $projection.ServiceContract = _ExtRefLegalContract.CustMgmtDocument and _ExtRefLegalContract.CustMgmtExtRefIDType = '0021' |
| [0..1] | I_CustMgmtExtRefID | _ExtRefLegalContractItem | _ExtRefLegalContractItem.CustMgmtObjectType = 'BUS2000112' and $projection.ServiceContract = _ExtRefLegalContractItem.CustMgmtDocument and $projection.ServiceContractItem = _ExtRefLegalContractItem.CustMgmtDocumentItem and _ExtRefLegalContractItem.CustMgmtExtRefIDType = '0022' |
| [0..1] | R_SrvcDocItemDocumentFlow | _RefServiceTemplate | $projection.ServiceContract = _RefServiceTemplate.ServiceDocument and $projection.ServiceContractItem = _RefServiceTemplate.ServiceDocumentItem and _RefServiceTemplate.PrdcssrSuccssrDocObjectType = 'BUS2000112' and _RefServiceTemplate.ServiceDocumentTemplateType is not initial and _RefServiceTemplate.ServiceObjectType = 'BUS2000112' |
| [0..1] | I_CustMgmtDateRule | _SettlementPeriodRule | $projection.SettlementPeriodRuleUUID = _SettlementPeriodRule.CustMgmtDateRuleUUID |
| [0..1] | I_CustMgmtDateRule | _BillingPlanBillingDateRule | $projection.BillingPlanBillingDateRuleUUID = _BillingPlanBillingDateRule.CustMgmtDateRuleUUID |
| [0..1] | I_WBSElementBasicData | _WBSElement | _WBSElement.WBSElementInternalID = I_ServiceDocumentItemEnhcd.WBSElementInternalID |
| [0..1] | E_ServiceDocumentItem | _Extension | $projection.ServiceObjectType = _Extension.ServiceCategory and $projection.ServiceContract = _Extension.ServiceOrderItem and $projection.ServiceContractItem = _Extension.ServiceLineExternalID |
| [0..*] | R_SrvcContrItemPartnerTP | _SrvcContrItmPartnerTP | |
| [0..*] | R_SrvcContrItemPriceElementTP | _SrvcContrItmPriceElementTP | |
| [0..*] | R_SrvcContrItemUserStatusTP | _SrvcContrItemUserStatusTP | |
| [0..*] | R_SrvcContrItmFUPBillgDocTP | _SrvcContrItmFUPBillgDocTP | |
| [0..*] | R_SrvcContrItmFUPSrvcOrdTP | _SrvcContrItmFUPSrvcOrdTP | |
| [0..*] | R_SrvcContrItemRefObjectTP | _SrvcContrItemRefObjectTP | |
| [0..*] | R_SrvcContrItemProductTP | _SrvcContrItemProductTP | |
| [0..*] | R_SrvcContrItmBillgReqItemTP | _SrvcContrItmBillgReqItemTP | |
| [0..*] | R_SrvcContrItemDurationTP | _SrvcContrItemDurationTP | |
| [0..*] | R_SrvcContrItemAppointmentTP | _SrvcContrItemAppointmentTP | |
| [0..*] | R_SrvcContrItemLongTextTP | _SrvcContrItemLongTextTP | |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| EndUserText.label | Service Contract Item - TP | view | |
| ObjectModel.representativeKey | ServiceContractItem | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view |
Fields (94)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ServiceContract | ServiceDocument | ||
| KEY | ServiceContractItem | |||
| ServiceObjectType | ServiceObjectType | |||
| ParentServiceContractItem | _ParentServiceDocItem_2 | ServiceDocumentItem | ||
| ServiceContractItemCategory | ServiceDocItemCategory | |||
| ServiceContractItemUUID | ServiceDocumentItemUUID | |||
| ServiceContractItemDescription | ServiceDocumentItemDescription | |||
| Language | Language | |||
| ServiceDocItemCreationDateTime | ServiceDocItemCreationDateTime | |||
| ServiceDocItemChangedDateTime | ServiceDocItemChangedDateTime | |||
| ServiceDocItemCreatedByUser | ServiceDocItemCreatedByUser | |||
| ServiceDocItemChangedByUser | ServiceDocItemChangedByUser | |||
| Product | Product | |||
| Quantity | ServiceDocumentItemQuantity | |||
| QuantityUnit | ServiceDocItemQuantityUnit | |||
| SoldToParty | SoldToParty | |||
| ShipToParty | ShipToParty | |||
| BillToParty | BillToParty | |||
| PayerParty | PayerParty | |||
| ContactPersonBusinessPartnerId | ContactPerson | |||
| RespEmployeeBusinessPartnerId | ResponsibleEmployee | |||
| PaymentTerms | PaymentTerms | |||
| PaymentMethod | PaymentMethod | |||
| SEPAMandate | SEPAMandate | |||
| SrvcSEPAMandateRelevance | SrvcSEPAMandateRelevance | |||
| SalesOrganization | SalesOrganization | |||
| DistributionChannel | DistributionChannel | |||
| Division | Division | |||
| SalesOffice | SalesOffice | |||
| SalesGroup | SalesGroup | |||
| ServiceContractItemStatus | ServiceDocumentItemStatus | |||
| ServiceContrItemBillingStatus | ServiceDocItemBillingStatus | |||
| ServiceContractItemIsRejected | ServiceDocumentItemIsRejected | |||
| ServiceContractItemHasError | ServiceDocumentItemHasError | |||
| SrvcDocItemTransferStatus | SrvcDocItemTransferStatus | |||
| SrvcContrItemCreditStatus | SrvcDocItemCreditStatus | |||
| ServiceContrItemStartDateTime | ServiceContrItemStartDateTime | |||
| ServiceContrItemEndDateTime | ServiceContrItemEndDateTime | |||
| SrvcContrItemRnwlDuration | SrvcContrItemRnwlDuration | |||
| SrvcContrItemRnwlDurationUnit | SrvcContrItemRnwlDurationUnit | |||
| SrvcContrItemExtensionDuration | SrvcContrItemExtensionDuration | |||
| SrvcContrItemExtnDurationUnit | SrvcContrItemExtnDurationUnit | |||
| ResponseProfile | ResponseProfile | |||
| ServiceProfile | ServiceProfile | |||
| ProfitCenter | ProfitCenter | |||
| ServiceDocItemGrossAmount | ServiceDocItemGrossAmount | |||
| ServiceDocumentItemNetAmount | ServiceDocumentItemNetAmount | |||
| ServiceDocumentItemTaxAmount | ServiceDocumentItemTaxAmount | |||
| TransactionCurrency | TransactionCurrency | |||
| ServiceContractItemCanclnParty | ServiceDocumentItemCanclnParty | |||
| ServiceContractItmCanclnReason | ServiceDocumentItmCanclnReason | |||
| SettlementPeriodRuleUUID | SettlementPeriodRuleUUID | |||
| SettlementPeriodRule | _SettlementPeriodRule | CustMgmtDateRuleName | ||
| BillingPlanBillingDateRuleUUID | BillingPlanBillingDateRuleUUID | |||
| SrvcMgmtBillgPlanBillgDateRule | _BillingPlanBillingDateRule | CustMgmtDateRuleName | ||
| BillingBlockReason | BillingBlockReason | |||
| BillingPlanPriceDateRule | BillingPlanPriceDateRule | |||
| BillingPlanIsFinalized | BillingPlanIsFinalized | |||
| ContractAccount | ContractAccount | |||
| SrvcContrExternalReference | _ExtRefServiceContract | CustMgmtExtRefID | ||
| SrvcContrItmExternalReference | _ExtRefServiceContractItem | CustMgmtExtRefID | ||
| ServiceQtanExtReference | _ExtRefServiceQtan | CustMgmtExtRefID | ||
| ServiceQtanItemExtReference | _ExtRefServiceQtanItem | CustMgmtExtRefID | ||
| LegalContractExtReference | _ExtRefLegalContract | CustMgmtExtRefID | ||
| LegalContractItemExtReference | _ExtRefLegalContractItem | CustMgmtExtRefID | ||
| RefServiceContractTemplate | ||||
| RefServiceContractTemplateItem | ||||
| SrvcDocItmPartReferenceItem | SrvcDocItmPartReferenceItem | |||
| SrvcDocItmApptRefObjectUUID | SrvcDocItmApptRefObjectUUID | |||
| WBSElementExternalID | _WBSElement | WBSElementExternalID | ||
| _ServiceDocument | _ServiceDocument | |||
| _ServiceContractTP | _ServiceContractTP | |||
| _SrvcContrItmPartnerTP | _SrvcContrItmPartnerTP | |||
| _SrvcContrItmPriceElementTP | _SrvcContrItmPriceElementTP | |||
| _SrvcContrItemUserStatusTP | _SrvcContrItemUserStatusTP | |||
| _ServiceObjType | _ServiceObjType | |||
| _ExtRefServiceContract | _ExtRefServiceContract | |||
| _ExtRefServiceContractItem | _ExtRefServiceContractItem | |||
| _Product | _Product | |||
| _ContactPerson | _ContactPerson | |||
| _RespEmployee | _RespEmployee | |||
| _PaymentTerms | _PaymentTerms | |||
| _SrvcSEPAMandateRelevance | _SrvcSEPAMandateRelevance | |||
| _SrvcContrItmFUPBillgDocTP | _SrvcContrItmFUPBillgDocTP | |||
| _SrvcContrItmFUPSrvcOrdTP | _SrvcContrItmFUPSrvcOrdTP | |||
| _SrvcContrItemRefObjectTP | _SrvcContrItemRefObjectTP | |||
| _SrvcContrItemProductTP | _SrvcContrItemProductTP | |||
| _SrvcContrItmBillgReqItemTP | _SrvcContrItmBillgReqItemTP | |||
| _SrvcContrItemDurationTP | _SrvcContrItemDurationTP | |||
| _SrvcContrItemAppointmentTP | _SrvcContrItemAppointmentTP | |||
| _SrvcContrItemLongTextTP | _SrvcContrItemLongTextTP | |||
| _BaseUnit | _BaseUnit | |||
| _SrvcContrItemExtnDurationUnit | _SrvcContrItemExtnDurationUnit | |||
| _SrvcContrItemRnwlDurationUnit | _SrvcContrItemRnwlDurationUnit |
@AccessControl: {
authorizationCheck: #CHECK,
personalData.blocking: #('TRANSACTIONAL_DATA')
}
@VDM: {
viewType: #TRANSACTIONAL,
lifecycle.contract.type: #SAP_INTERNAL_API
}
@Metadata:
{
ignorePropagatedAnnotations: true
}
@EndUserText.label: 'Service Contract Item - TP'
@ObjectModel: {
semanticKey: ['ServiceContractItem'],
representativeKey: 'ServiceContractItem',
usageType: {dataClass: #TRANSACTIONAL,
serviceQuality: #C,
sizeCategory: #L}
}
define view entity R_ServiceContractItemTP
as select from I_ServiceDocumentItemEnhcd
association to parent R_ServiceContractTP as _ServiceContractTP on $projection.ServiceContract = _ServiceContractTP.ServiceContract
association [0..1] to I_StatusObjectUUIDStatus as _SrvcOrdItmStatus on $projection.ServiceContractItemUUID = _SrvcOrdItmStatus.StatusObjectUUID
and (
_SrvcOrdItmStatus.StatusCode = 'I1002'
or _SrvcOrdItmStatus.StatusCode = 'I1003'
or _SrvcOrdItmStatus.StatusCode = 'I1004'
or _SrvcOrdItmStatus.StatusCode = 'I1005'
)
and _SrvcOrdItmStatus.StatusIsActive = 'X'
association [0..1] to I_CustMgmtExtRefID as _ExtRefServiceContract on _ExtRefServiceContract.CustMgmtObjectType = 'BUS2000112'
and $projection.ServiceContract = _ExtRefServiceContract.CustMgmtDocument
and _ExtRefServiceContract.CustMgmtExtRefIDType = '0003'
association [0..1] to I_CustMgmtExtRefID as _ExtRefServiceContractItem on _ExtRefServiceContractItem.CustMgmtObjectType = 'BUS2000112'
and $projection.ServiceContract = _ExtRefServiceContractItem.CustMgmtDocument
and $projection.ServiceContractItem = _ExtRefServiceContractItem.CustMgmtDocumentItem
and _ExtRefServiceContractItem.CustMgmtExtRefIDType = '0004'
association [0..1] to I_CustMgmtExtRefID as _ExtRefServiceQtan on _ExtRefServiceQtan.CustMgmtObjectType = 'BUS2000112'
and $projection.ServiceContract = _ExtRefServiceQtan.CustMgmtDocument
and _ExtRefServiceQtan.CustMgmtExtRefIDType = '0009'
association [0..1] to I_CustMgmtExtRefID as _ExtRefServiceQtanItem on _ExtRefServiceQtanItem.CustMgmtObjectType = 'BUS2000112'
and $projection.ServiceContract = _ExtRefServiceQtanItem.CustMgmtDocument
and $projection.ServiceContractItem = _ExtRefServiceQtanItem.CustMgmtDocumentItem
and _ExtRefServiceQtanItem.CustMgmtExtRefIDType = '0010'
association [0..1] to I_CustMgmtExtRefID as _ExtRefLegalContract on _ExtRefLegalContract.CustMgmtObjectType = 'BUS2000112'
and $projection.ServiceContract = _ExtRefLegalContract.CustMgmtDocument
and _ExtRefLegalContract.CustMgmtExtRefIDType = '0021'
association [0..1] to I_CustMgmtExtRefID as _ExtRefLegalContractItem on _ExtRefLegalContractItem.CustMgmtObjectType = 'BUS2000112'
and $projection.ServiceContract = _ExtRefLegalContractItem.CustMgmtDocument
and $projection.ServiceContractItem = _ExtRefLegalContractItem.CustMgmtDocumentItem
and _ExtRefLegalContractItem.CustMgmtExtRefIDType = '0022'
association [0..1] to R_SrvcDocItemDocumentFlow as _RefServiceTemplate on $projection.ServiceContract = _RefServiceTemplate.ServiceDocument
and $projection.ServiceContractItem = _RefServiceTemplate.ServiceDocumentItem
and _RefServiceTemplate.PrdcssrSuccssrDocObjectType = 'BUS2000112'
and _RefServiceTemplate.ServiceDocumentTemplateType is not initial
and _RefServiceTemplate.ServiceObjectType = 'BUS2000112'
association [0..1] to I_CustMgmtDateRule as _SettlementPeriodRule on $projection.SettlementPeriodRuleUUID = _SettlementPeriodRule.CustMgmtDateRuleUUID
association [0..1] to I_CustMgmtDateRule as _BillingPlanBillingDateRule on $projection.BillingPlanBillingDateRuleUUID = _BillingPlanBillingDateRule.CustMgmtDateRuleUUID
// association [0..1] to I_ServiceDocumentItemEnhcd as _ChgProcSourceItem on $projection.SrvcTransChgProcSourceItemUUID = _ChgProcSourceItem.ServiceDocumentItemUUID
composition [0..*] of R_SrvcContrItemPartnerTP as _SrvcContrItmPartnerTP
composition [0..*] of R_SrvcContrItemPriceElementTP as _SrvcContrItmPriceElementTP
composition [0..*] of R_SrvcContrItemUserStatusTP as _SrvcContrItemUserStatusTP
composition [0..*] of R_SrvcContrItmFUPBillgDocTP as _SrvcContrItmFUPBillgDocTP
composition [0..*] of R_SrvcContrItmFUPSrvcOrdTP as _SrvcContrItmFUPSrvcOrdTP
composition [0..*] of R_SrvcContrItemRefObjectTP as _SrvcContrItemRefObjectTP
composition [0..*] of R_SrvcContrItemProductTP as _SrvcContrItemProductTP
composition [0..*] of R_SrvcContrItmBillgReqItemTP as _SrvcContrItmBillgReqItemTP
composition [0..*] of R_SrvcContrItemDurationTP as _SrvcContrItemDurationTP
composition [0..*] of R_SrvcContrItemAppointmentTP as _SrvcContrItemAppointmentTP
composition [0..*] of R_SrvcContrItemLongTextTP as _SrvcContrItemLongTextTP
// association [1..1] to R_ServiceContractTP as _ServiceContract on _ServiceContract.ServiceObjectType = 'BUS2000112'
// and $projection.ServiceContract = _ServiceContract.ServiceContract
association [0..1] to I_WBSElementBasicData as _WBSElement on _WBSElement.WBSElementInternalID = I_ServiceDocumentItemEnhcd.WBSElementInternalID
association [0..1] to E_ServiceDocumentItem as _Extension on $projection.ServiceObjectType = _Extension.ServiceCategory
and $projection.ServiceContract = _Extension.ServiceOrderItem
and $projection.ServiceContractItem = _Extension.ServiceLineExternalID
{
// Administrative fields
@ObjectModel.foreignKey.association: '_ServiceDocument'
key ServiceDocument as ServiceContract,
key cast(ServiceDocumentItem as crms4_number_int preserving type) as ServiceContractItem,
@ObjectModel.foreignKey.association: '_ServiceObjType'
ServiceObjectType,
_ParentServiceDocItem_2.ServiceDocumentItem as ParentServiceContractItem,
ServiceDocItemCategory as ServiceContractItemCategory,
ServiceDocumentItemUUID as ServiceContractItemUUID,
ServiceDocumentItemDescription as ServiceContractItemDescription,
Language,
ServiceDocItemCreationDateTime,
ServiceDocItemChangedDateTime,
ServiceDocItemCreatedByUser,
ServiceDocItemChangedByUser,
// Item Fields
@ObjectModel.foreignKey.association: '_Product'
Product,
@Semantics.quantity.unitOfMeasure: 'QuantityUnit'
ServiceDocumentItemQuantity as Quantity,
ServiceDocItemQuantityUnit as QuantityUnit,
// Partners
SoldToParty,
ShipToParty,
BillToParty,
PayerParty,
@ObjectModel.foreignKey.association: '_ContactPerson'
ContactPerson as ContactPersonBusinessPartnerId,
@ObjectModel.foreignKey.association: '_RespEmployee'
ResponsibleEmployee as RespEmployeeBusinessPartnerId,
// Billing Relevant Fields
@ObjectModel.foreignKey.association: '_PaymentTerms'
PaymentTerms,
PaymentMethod,
SEPAMandate,
@ObjectModel.foreignKey.association: '_SrvcSEPAMandateRelevance'
SrvcSEPAMandateRelevance,
// Organizational Data
//RespyMgmtServiceTeam,
//_ServiceTeamHeader.RespyMgmtGlobalTeamID as RespyMgmtGlobalTeamID,
SalesOrganization,
DistributionChannel,
Division,
SalesOffice,
SalesGroup,
// Status
cast( case _SrvcOrdItmStatus.StatusCode
when 'I1002' then 'X'
else ' '
end as xfeld preserving type ) as ServiceContractItemIsNew,
cast( case _SrvcOrdItmStatus.StatusCode
when 'I1003' then 'X'
else ' '
end as xfeld preserving type ) as ServiceContractItemIsInProcess,
cast( case _SrvcOrdItmStatus.StatusCode
when 'I1004' then 'X'
else ' '
end as xfeld preserving type ) as ServiceContractItemIsReleased,
cast( case _SrvcOrdItmStatus.StatusCode
when 'I1005' then 'X'
else ' '
end as xfeld preserving type ) as ServiceContractItemIsCompleted,
ServiceDocumentItemStatus as ServiceContractItemStatus,
ServiceDocItemBillingStatus as ServiceContrItemBillingStatus,
@Semantics.booleanIndicator
ServiceDocumentItemIsRejected as ServiceContractItemIsRejected,
@Semantics.booleanIndicator
ServiceDocumentItemHasError as ServiceContractItemHasError,
SrvcDocItemTransferStatus,
SrvcDocItemCreditStatus as SrvcContrItemCreditStatus,
// Dates and Durations
@Semantics.dateTime:true
ServiceContrItemStartDateTime,
@Semantics.dateTime:true
ServiceContrItemEndDateTime,
@Semantics: { quantity : {unitOfMeasure: 'SrvcContrItemRnwlDurationUnit'} }
SrvcContrItemRnwlDuration as SrvcContrItemRnwlDuration,
SrvcContrItemRnwlDurationUnit as SrvcContrItemRnwlDurationUnit,
@Semantics: { quantity : {unitOfMeasure: 'SrvcContrItemExtnDurationUnit'} }
SrvcContrItemExtensionDuration as SrvcContrItemExtensionDuration,
SrvcContrItemExtnDurationUnit as SrvcContrItemExtnDurationUnit,
ResponseProfile,
ServiceProfile,
ProfitCenter,
// Pricing
@Semantics: { amount : {currencyCode: 'TransactionCurrency'} }
ServiceDocItemGrossAmount,
@Semantics: { amount : {currencyCode: 'TransactionCurrency'} }
ServiceDocumentItemNetAmount,
@Semantics: { amount : {currencyCode: 'TransactionCurrency'} }
ServiceDocumentItemTaxAmount,
TransactionCurrency,
//Cancellation
ServiceDocumentItemCanclnParty as ServiceContractItemCanclnParty,
ServiceDocumentItmCanclnReason as ServiceContractItmCanclnReason,
cast( case ServiceDocumentItemCanclnParty
when '' then 0
else ServiceContrItemEndDateTime
end as timestamp preserving type ) as SrvcContrItemCanclnDateTime,
// Item - Billing Plan
SettlementPeriodRuleUUID,
_SettlementPeriodRule.CustMgmtDateRuleName as SettlementPeriodRule,
BillingPlanBillingDateRuleUUID,
_BillingPlanBillingDateRule.CustMgmtDateRuleName as SrvcMgmtBillgPlanBillgDateRule,
BillingBlockReason,
BillingPlanPriceDateRule,
BillingPlanIsFinalized,
ContractAccount,
// Reference Documents
_ExtRefServiceContract.CustMgmtExtRefID as SrvcContrExternalReference,
_ExtRefServiceContractItem.CustMgmtExtRefID as SrvcContrItmExternalReference,
_ExtRefServiceQtan.CustMgmtExtRefID as ServiceQtanExtReference,
_ExtRefServiceQtanItem.CustMgmtExtRefID as ServiceQtanItemExtReference,
_ExtRefLegalContract.CustMgmtExtRefID as LegalContractExtReference,
_ExtRefLegalContractItem.CustMgmtExtRefID as LegalContractItemExtReference,
cast( _RefServiceTemplate.CustMgmtPrdcssrTransactionKey as crmt_object_id_db ) as RefServiceContractTemplate,
cast( _RefServiceTemplate.BusinessTransactionDocItem as crms4_number_int ) as RefServiceContractTemplateItem,
//Inheritance of Complex set in RAP
SrvcDocItmPartReferenceItem, //For Item Partner
SrvcDocItmApptRefObjectUUID, //For Item Appointment UUID
//SrvcDocItmApptReferenceItem,//For Appointment and Duration
_WBSElement.WBSElementExternalID,
//Associations
_ServiceDocument,
// _ServiceContract,
_ServiceContractTP,
_SrvcContrItmPartnerTP,
_SrvcContrItmPriceElementTP,
_SrvcContrItemUserStatusTP,
_ServiceObjType,
_ExtRefServiceContract,
_ExtRefServiceContractItem,
_Product,
_ContactPerson,
_RespEmployee,
_PaymentTerms,
_SrvcSEPAMandateRelevance,
_SrvcContrItmFUPBillgDocTP,
_SrvcContrItmFUPSrvcOrdTP,
_SrvcContrItemRefObjectTP,
_SrvcContrItemProductTP,
_SrvcContrItmBillgReqItemTP,
_SrvcContrItemDurationTP,
_SrvcContrItemAppointmentTP,
_SrvcContrItemLongTextTP,
_BaseUnit,
_SrvcContrItemExtnDurationUnit,
_SrvcContrItemRnwlDurationUnit
}
where
ServiceObjectType = 'BUS2000112' //Service Contract
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CUSTMGMTDATERULE",
"I_CUSTMGMTEXTREFID",
"I_SERVICEDOCUMENTITEMENHCD",
"I_STATUSOBJECTUUIDSTATUS",
"I_WBSELEMENTBASICDATA",
"R_SRVCDOCITEMDOCUMENTFLOW"
],
"ASSOCIATED":
[
"I_BUSINESSPARTNER",
"I_CUSTMGMTBUSOBJTYPE",
"I_CUSTMGMTEXTREFID",
"I_PAYMENTTERMS",
"I_PRODUCT",
"I_SERVICEDOCUMENTENHCD",
"I_SRVCSEPAMANDATERELEVANCE",
"I_UNITOFMEASURE",
"R_SERVICECONTRACTTP",
"R_SRVCCONTRITEMAPPOINTMENTTP",
"R_SRVCCONTRITEMDURATIONTP",
"R_SRVCCONTRITEMLONGTEXTTP",
"R_SRVCCONTRITEMPARTNERTP",
"R_SRVCCONTRITEMPRICEELEMENTTP",
"R_SRVCCONTRITEMPRODUCTTP",
"R_SRVCCONTRITEMREFOBJECTTP",
"R_SRVCCONTRITEMUSERSTATUSTP",
"R_SRVCCONTRITMBILLGREQITEMTP",
"R_SRVCCONTRITMFUPBILLGDOCTP",
"R_SRVCCONTRITMFUPSRVCORDTP"
],
"BASE":
[
"I_SERVICEDOCUMENTITEMENHCD"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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