R_ServiceDocumentItemTP

DDL: R_SERVICEDOCUMENTITEMTP SQL: RSRVCDOCITEMTP Type: view TRANSACTIONAL Package: CRMS4_SOLUTIONORDER_FIORI_UI

Transaction Process: Service Item

R_ServiceDocumentItemTP is a Transactional CDS View that provides data about "Transaction Process: Service Item" in SAP S/4HANA. It reads from 1 data source (I_ServiceDocumentItemEnhcd) and exposes 71 fields with key fields ServiceObjectType, ServiceDocument, ServiceDocumentItem. It has 2 associations to related views. Part of development package CRMS4_SOLUTIONORDER_FIORI_UI.

Data Sources (1)

SourceAliasJoin Type
I_ServiceDocumentItemEnhcd ServiceDocumentItemEnhcd from

Associations (2)

CardinalityTargetAliasCondition
[0..1] E_ServiceDocumentItem _ServiceDocItemExt $projection.ServiceObjectType = _ServiceDocItemExt.ServiceCategory and $projection.ServiceDocument = _ServiceDocItemExt.ServiceOrderItem and $projection.ServiceDocumentItem = _ServiceDocItemExt.ServiceLineExternalID
[0..1] I_StatusObjectUUIDStatus _SrvcDocSystemStatus $projection.ServiceDocumentItemUUID = _SrvcDocSystemStatus.StatusObjectUUID and ( _SrvcDocSystemStatus.StatusCode = 'I1002' or _SrvcDocSystemStatus.StatusCode = 'I1003' or _SrvcDocSystemStatus.StatusCode = 'I1004' or _SrvcDocSystemStatus.StatusCode = 'I1005' ) and _SrvcDocSystemStatus.StatusIsActive = 'X'

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName RSRVCDOCITEMTP view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
EndUserText.label Transaction Process: Service Item view
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
VDM.lifecycle.status #DEPRECATED view
AccessControl.authorizationCheck #CHECK view
Metadata.ignorePropagatedAnnotations true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.representativeKey ServiceDocumentItem view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view

Fields (71)

KeyFieldSource TableSource FieldDescription
KEY ServiceObjectType I_ServiceDocumentItemEnhcd ServiceObjectType
KEY ServiceDocument ServiceDocument
KEY ServiceDocumentItem ServiceDocumentItem
ServiceDocumentType I_ServiceDocumentItemEnhcd ServiceDocumentType
ServiceDocumentItemDescription ServiceDocumentItemDescription
ServiceDocumentItemUUID ServiceDocumentItemUUID
ServiceDocumentItemCharUUID ServiceDocumentItemCharUUID
ServiceDocumentItemObjectType
ServiceDocumentItemQuantity ServiceDocumentItemQuantity
ServiceDocItemQuantityUnit ServiceDocItemQuantityUnit
ServiceDocumentItemNetAmount ServiceDocumentItemNetAmount
ServiceDocItemCategory ServiceDocItemCategory
OriginallyRequestedProduct OriginallyRequestedProduct
MaintSrvcOrdExecutionStatus MaintSrvcOrdExecutionStatus
ResponsibleEmployee I_ServiceDocumentItemEnhcd ResponsibleEmployee
BillToParty BillToParty
PayerParty PayerParty
ShipToParty ShipToParty
ServiceTeam ServiceTeam
SalesOrganization I_ServiceDocumentItemEnhcd SalesOrganization
SalesOffice I_ServiceDocumentItemEnhcd SalesOffice
SalesGroup I_ServiceDocumentItemEnhcd SalesGroup
DistributionChannel I_ServiceDocumentItemEnhcd DistributionChannel
Division I_ServiceDocumentItemEnhcd Division
ServiceDocumentItemStatus I_ServiceDocumentItemEnhcd ServiceDocumentItemStatus
SalesOfficeOrgUnitID I_ServiceDocumentItemEnhcd SalesOfficeOrgUnitID
SalesOrganizationOrgUnitID I_ServiceDocumentItemEnhcd SalesOrganizationOrgUnitID
SalesGroupOrgUnitID I_ServiceDocumentItemEnhcd SalesGroupOrgUnitID
ServiceOrganization I_ServiceDocumentItemEnhcd ServiceOrganization
TransactionCurrency I_ServiceDocumentItemEnhcd TransactionCurrency
Project EnterpriseProjectItem Project
ProjectStartDate ProjectItems ProjectStartDate
ProjectEndDate ProjectItems ProjectEndDate
ProcessingStatusText ProcessingStsTxt ProcessingStatusText
LtstConfirmedDeliveryDateTime I_ServiceDocumentItemEnhcd LtstConfirmedDeliveryDateTime
SrvcDocItmDeliveryStatus I_ServiceDocumentItemEnhcd SrvcDocItmDeliveryStatus
PlannedServiceStartDateTime I_ServiceDocumentItemEnhcd PlannedServiceStartDateTime
PlannedServiceEndDateTime I_ServiceDocumentItemEnhcd PlannedServiceEndDateTime
RequestedServiceStartDateTime I_ServiceDocumentItemEnhcd RequestedServiceStartDateTime
RequestedServiceEndDateTime I_ServiceDocumentItemEnhcd RequestedServiceEndDateTime
ServiceContractItemStartDate I_ServiceDocumentItemEnhcd ServiceContractItemStartDate
ServiceContractItemEndDate I_ServiceDocumentItemEnhcd ServiceContractItemEndDate
SoldToParty I_ServiceDocumentItemEnhcd SoldToParty
ServiceDocItemGrossAmount I_ServiceDocumentItemEnhcd ServiceDocItemGrossAmount
ServiceDocNetAmount _ServiceDocumentTP ServiceDocNetAmount
SystemStatus _SrvcDocSystemStatus StatusCode
_ServiceObjType I_ServiceDocumentItemEnhcd _ServiceObjType
_ServiceDocItemStatus I_ServiceDocumentItemEnhcd _ServiceDocItemStatus
_SrvcDocItmLifecycleStatus I_ServiceDocumentItemEnhcd _SrvcDocItmLifecycleStatus
_ServiceDocument I_ServiceDocumentItemEnhcd _ServiceDocument
_ServiceDocItemCategory I_ServiceDocumentItemEnhcd _ServiceDocItemCategory
_ServiceDocumentTP _ServiceDocumentTP
_ServiceDocItemRefObj I_ServiceDocumentItemEnhcd _ServiceDocItemRefObj
_ServiceDocumentType I_ServiceDocumentItemEnhcd _ServiceDocumentType
_RespEmployee I_ServiceDocumentItemEnhcd _RespEmployee
_SalesOrganization I_ServiceDocumentItemEnhcd _SalesOrganization
_SalesOffice I_ServiceDocumentItemEnhcd _SalesOffice
_SalesGroup I_ServiceDocumentItemEnhcd _SalesGroup
_DistributionChannel I_ServiceDocumentItemEnhcd _DistributionChannel
_Division I_ServiceDocumentItemEnhcd _Division
_TransactionCurrency I_ServiceDocumentItemEnhcd _TransactionCurrency
_SalesOrganizationOrgUnit I_ServiceDocumentItemEnhcd _SalesOrganizationOrgUnit
_SalesOfficeOrgUnit I_ServiceDocumentItemEnhcd _SalesOfficeOrgUnit
_SalesGroupOrgUnit I_ServiceDocumentItemEnhcd _SalesGroupOrgUnit
_ServiceOrganizationOrgUnit I_ServiceDocumentItemEnhcd _ServiceOrganizationOrgUnit
_SalesOrganizationOrgUnit_2 I_ServiceDocumentItemEnhcd _SalesOrganizationOrgUnit_2
_SalesOfficeOrgUnit_2 I_ServiceDocumentItemEnhcd _SalesOfficeOrgUnit_2
_SalesGroupOrgUnit_2 I_ServiceDocumentItemEnhcd _SalesGroupOrgUnit_2
_ServiceOrganizationOrgUnit_2 I_ServiceDocumentItemEnhcd _ServiceOrganizationOrgUnit_2
_SoldToParty I_ServiceDocumentItemEnhcd _SoldToParty
_SrvcDocSystemStatus _SrvcDocSystemStatus
@AbapCatalog.sqlViewName: 'RSRVCDOCITEMTP'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@EndUserText.label: 'Transaction Process: Service Item'

@VDM: {
  viewType: #TRANSACTIONAL,
  lifecycle.contract.type: #SAP_INTERNAL_API,
  lifecycle.status: #DEPRECATED
}

@AccessControl: {
  authorizationCheck: #CHECK,
  personalData.blocking: #('TRANSACTIONAL_DATA')
}

@Metadata: {
  ignorePropagatedAnnotations: true
}
@ClientHandling: {
  algorithm: #SESSION_VARIABLE
}

@ObjectModel: {
   representativeKey: 'ServiceDocumentItem',
   usageType: {
     dataClass:      #MIXED,
     serviceQuality: #C,
     sizeCategory:   #XXL
   }
}

define view R_ServiceDocumentItemTP
  as select from I_ServiceDocumentItemEnhcd as ServiceDocumentItemEnhcd
 
  // composition [0..*] of R_ServiceDocumentTextTP as _ServiceDocumentItemTextTP

  left outer to one join  I_BusSolnOrdItmFUPEntProject   as EnterpriseProjectItem   on EnterpriseProjectItem.BusSolnOrderItemCharUUID = ServiceDocumentItemEnhcd.ServiceDocumentItemCharUUID
  
  left outer to one join  I_EnterpriseProject as ProjectItems on EnterpriseProjectItem.Project = ProjectItems.Project
  left outer to one join I_PPM_ProjProcessingStsTxt as ProcessingStsTxt  on ProcessingStsTxt.ProcessingStatus = ProjectItems.ProcessingStatus
                                                                          and ProcessingStsTxt.LanguageCode = $session.system_language
                                                                          
   left outer to one join I_CustMgmtPartner as _ProjectManager on ServiceDocumentItemEnhcd.ServiceDocument = _ProjectManager.CustMgmtDocument 
                                                             and ServiceDocumentItemEnhcd.ServiceDocumentItem = _ProjectManager.CustMgmtDocumentItem
                                                             and _ProjectManager.CustMgmtObjectType ='BUS2000172'
                                                             and _ProjectManager.CustMgmtPartnerFunction = 'PROJM001'
                                                              

  
  association  to parent R_ServiceDocumentTP as _ServiceDocumentTP on  $projection.ServiceObjectType = _ServiceDocumentTP.ServiceObjectType
                                                                         and $projection.ServiceDocument   = _ServiceDocumentTP.ServiceDocument

  association [0..1] to E_ServiceDocumentItem      as _ServiceDocItemExt on  $projection.ServiceObjectType   = _ServiceDocItemExt.ServiceCategory
                                                                         and $projection.ServiceDocument     = _ServiceDocItemExt.ServiceOrderItem
                                                                         and $projection.ServiceDocumentItem = _ServiceDocItemExt.ServiceLineExternalID

  association [0..1] to I_StatusObjectUUIDStatus       as _SrvcDocSystemStatus      on  $projection.ServiceDocumentItemUUID   = _SrvcDocSystemStatus.StatusObjectUUID
                                                                                    and (
                                                                                           _SrvcDocSystemStatus.StatusCode      = 'I1002'
                                                                                           or _SrvcDocSystemStatus.StatusCode   = 'I1003'
                                                                                           or _SrvcDocSystemStatus.StatusCode   = 'I1004'
                                                                                           or _SrvcDocSystemStatus.StatusCode   = 'I1005'
                                                                                         )
                                                                                    and _SrvcDocSystemStatus.StatusIsActive = 'X'
                                                                        
{
      @ObjectModel.foreignKey.association: '_ServiceObjType'
  key ServiceDocumentItemEnhcd.ServiceObjectType,
      @ObjectModel.foreignKey.association: '_ServiceDocument'
  key ServiceDocument,
  key ServiceDocumentItem,

      @ObjectModel.foreignKey.association: '_ServiceDocumentType'
      ServiceDocumentItemEnhcd.ServiceDocumentType,

      /* Added fields */
      ServiceDocumentItemDescription,
      ServiceDocumentItemUUID,
      @Semantics.uuid:true
      ServiceDocumentItemCharUUID,
     ServiceDocumentItemEnhcd. ServiceDocumentItemObjectType,
      @Semantics.quantity.unitOfMeasure: 'ServiceDocItemQuantityUnit'
      ServiceDocumentItemQuantity,
      ServiceDocItemQuantityUnit,
      @Semantics: { amount : {currencyCode: 'TransactionCurrency'} }
      ServiceDocumentItemNetAmount,
      ServiceDocItemCategory,

      OriginallyRequestedProduct,
      @API.element.releaseState: #DEPRECATED
      MaintSrvcOrdExecutionStatus,
      
      @ObjectModel.foreignKey.association: '_RespEmployee'
      ServiceDocumentItemEnhcd.ResponsibleEmployee,

      BillToParty,
      PayerParty,
      ShipToParty,
      ServiceTeam,

      @ObjectModel.foreignKey.association: '_SalesOrganization'
      ServiceDocumentItemEnhcd.SalesOrganization,
      @ObjectModel.foreignKey.association: '_SalesOffice'
      ServiceDocumentItemEnhcd.SalesOffice,
      @ObjectModel.foreignKey.association: '_SalesGroup'
      ServiceDocumentItemEnhcd.SalesGroup,
      @ObjectModel.foreignKey.association: '_DistributionChannel'
      ServiceDocumentItemEnhcd.DistributionChannel,
      @ObjectModel.foreignKey.association: '_Division'
      ServiceDocumentItemEnhcd.Division,
      @ObjectModel.foreignKey.association: '_SrvcDocItmLifecycleStatus'
      ServiceDocumentItemEnhcd.ServiceDocumentItemStatus,

     // For Authorization


      //      @ObjectModel.foreignKey.association: '_SalesOfficeOrgUnit'

      @ObjectModel.foreignKey.association: '_SalesOfficeOrgUnit_2'
      ServiceDocumentItemEnhcd.SalesOfficeOrgUnitID,

      //      @ObjectModel.foreignKey.association: '_SalesOrganizationOrgUnit'

      @ObjectModel.foreignKey.association: '_SalesOrganizationOrgUnit_2'
     ServiceDocumentItemEnhcd.SalesOrganizationOrgUnitID,

      //      @ObjectModel.foreignKey.association: '_SalesGroupOrgUnit'

      @ObjectModel.foreignKey.association: '_SalesGroupOrgUnit_2'
      ServiceDocumentItemEnhcd.SalesGroupOrgUnitID,

      //      @ObjectModel.foreignKey.association: '_ServiceOrganizationOrgUnit'

      @ObjectModel.foreignKey.association: '_ServiceOrganizationOrgUnit_2'
      ServiceDocumentItemEnhcd.ServiceOrganization,


      @ObjectModel.foreignKey.association: '_TransactionCurrency'
      @Semantics.currencyCode:true
      ServiceDocumentItemEnhcd.TransactionCurrency as TransactionCurrency,
      
      // Project Related fields required for Situation Related information

      EnterpriseProjectItem.Project as Project,
      
      ProjectItems.ProjectStartDate as ProjectStartDate,
      
      ProjectItems.ProjectEndDate  as ProjectEndDate,
      
      ProcessingStsTxt.ProcessingStatusText as ProcessingStatusText,
      
     // BusinessPartner.BusinessPartnerName as ProjectManagerName,      


      //2011CE: Fields for Item object page and Situation

      //ServiceDocItemCategory, -> used

      // ServiceDocumentItemStatus,-> used

      ServiceDocumentItemEnhcd.LtstConfirmedDeliveryDateTime,
      ServiceDocumentItemEnhcd.SrvcDocItmDeliveryStatus,
      ServiceDocumentItemEnhcd.PlannedServiceStartDateTime,
      ServiceDocumentItemEnhcd.PlannedServiceEndDateTime,
      ServiceDocumentItemEnhcd.RequestedServiceStartDateTime,
      ServiceDocumentItemEnhcd.RequestedServiceEndDateTime,
      ServiceDocumentItemEnhcd.ServiceContractItemStartDate,
      ServiceDocumentItemEnhcd.ServiceContractItemEndDate,
      ServiceDocumentItemEnhcd.SoldToParty,
      @Semantics: { amount : {currencyCode: 'TransactionCurrency'} }
      ServiceDocumentItemEnhcd.ServiceDocItemGrossAmount,

      @Semantics: { amount : {currencyCode: 'TransactionCurrency'} }
      _ServiceDocumentTP.ServiceDocNetAmount,
      
      _SrvcDocSystemStatus.StatusCode                                                                               as SystemStatus,
      
      ServiceDocumentItemEnhcd._ServiceObjType,
      @API.element.releaseState: #DEPRECATED
      @API.element.successor: '_SrvcDocItmLifecycleStatus'
      ServiceDocumentItemEnhcd._ServiceDocItemStatus,
      ServiceDocumentItemEnhcd._SrvcDocItmLifecycleStatus,      
      ServiceDocumentItemEnhcd._ServiceDocument,
      ServiceDocumentItemEnhcd._ServiceDocItemCategory,   

      /* Associations */
      _ServiceDocumentTP,
     ServiceDocumentItemEnhcd._ServiceDocItemRefObj,
      //   _ServiceDocumentItemTextTP,

      
      //Expose association for Project for situation 

 //     _SolutionOrderItemSitn,

 //     _ProjectItems,


      /* Required for DCL */
      ServiceDocumentItemEnhcd._ServiceDocumentType,
      ServiceDocumentItemEnhcd._RespEmployee,
      ServiceDocumentItemEnhcd._SalesOrganization,
      ServiceDocumentItemEnhcd._SalesOffice,
      ServiceDocumentItemEnhcd._SalesGroup,
      ServiceDocumentItemEnhcd._DistributionChannel,
      ServiceDocumentItemEnhcd._Division,
      ServiceDocumentItemEnhcd._TransactionCurrency,
      @API.element.releaseState: #DEPRECATED
      @API.element.successor: '_SalesOrganizationOrgUnit_2'
      ServiceDocumentItemEnhcd._SalesOrganizationOrgUnit,

      @API.element.releaseState: #DEPRECATED
      @API.element.successor: '_SalesOfficeOrgUnit_2'
      ServiceDocumentItemEnhcd._SalesOfficeOrgUnit,

      @API.element.releaseState: #DEPRECATED
      @API.element.successor: '_SalesGroupOrgUnit_2'
      ServiceDocumentItemEnhcd._SalesGroupOrgUnit,

      @API.element.releaseState: #DEPRECATED
      @API.element.successor: '_ServiceOrganizationOrgUnit_2'
      ServiceDocumentItemEnhcd._ServiceOrganizationOrgUnit,

      ServiceDocumentItemEnhcd._SalesOrganizationOrgUnit_2,
      ServiceDocumentItemEnhcd._SalesOfficeOrgUnit_2,
      ServiceDocumentItemEnhcd._SalesGroupOrgUnit_2,
      ServiceDocumentItemEnhcd._ServiceOrganizationOrgUnit_2,
      ServiceDocumentItemEnhcd._SoldToParty,
      _SrvcDocSystemStatus
//      _SrvcDocItmCustMgmtLCUsrStsTxt

      
    //  _BusinessPartner,

     // _ProjectTeamMember

}