I_ServiceEntrySheet

DDL: I_SERVICEENTRYSHEET SQL: ISRVCENTRSHT Type: view COMPOSITE Package: APPL_MM_PUR_SES_TR

Service Entry Sheet

I_ServiceEntrySheet is a Composite CDS View that provides data about "Service Entry Sheet" in SAP S/4HANA. It reads from 1 data source (I_ServiceEntrySheetBasic) and exposes 42 fields with key field ServiceEntrySheet. It has 9 associations to related views. Part of development package APPL_MM_PUR_SES_TR.

Data Sources (1)

SourceAliasJoin Type
I_ServiceEntrySheetBasic Document from

Associations (9)

CardinalityTargetAliasCondition
[1..*] I_ServiceEntrySheetItem _ServiceEntrySheetItem $projection.ServiceEntrySheet = _ServiceEntrySheetItem.ServiceEntrySheet
[0..*] I_SrvcEntrShtApprvlStsTxt _ApprovalStatusText $projection.ApprovalStatus = _ApprovalStatusText.ApprovalStatus
[1..1] I_SESWorkflowStatus _SESWorkflowStatus $projection.ServiceEntrySheet = _SESWorkflowStatus.ServiceEntrySheet
[0..1] I_SESWorkflowStatusValueHelp _WorkflowStatusValueHelp $projection.sesworkflowstatus = _WorkflowStatusValueHelp.SESWorkflowStatus
[0..*] I_SESWorkflowStatusText _WorkflowStatusText $projection.sesworkflowstatus = _WorkflowStatusText.SESWorkflowStatus
[0..*] I_SrvcEntrShtPurOrdValueHelp _SrvcEntrShtPurOrdValueHelp _SrvcEntrShtPurOrdValueHelp.PurchaseOrder = $projection.PurchaseOrder
[0..1] I_PurchaseOrder _PurchaseOrder $projection.PurchaseOrder = _PurchaseOrder.PurchaseOrder
[0..1] I_Currency _DocumentCurrency $projection.Currency = _DocumentCurrency.Currency ----Extension
[1..1] E_ServiceEntrySheet _ServiceEntrySheetExtension $projection.ServiceEntrySheet = _ServiceEntrySheetExtension.ServiceEntrySheet

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName ISRVCENTRSHT view
AbapCatalog.compiler.compareFilter true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #REQUIRED view
VDM.viewType #COMPOSITE view
EndUserText.label Service Entry Sheet view
ObjectModel.compositionRoot true view
ObjectModel.representativeKey ServiceEntrySheet view
ObjectModel.updateEnabled EXTERNAL_CALCULATION view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view

Fields (42)

KeyFieldSource TableSource FieldDescription
KEY ServiceEntrySheet I_ServiceEntrySheetBasic ServiceEntrySheet
ServiceEntrySheetName I_ServiceEntrySheetBasic ServiceEntrySheetName
Supplier I_ServiceEntrySheetBasic Supplier
SupplierName
PurchaseOrder I_ServiceEntrySheetBasic PurchaseOrder
PurchaseOrderCurrency _PurchaseOrder DocumentCurrency
IsDeleted I_ServiceEntrySheetBasic IsDeleted
ApprovalStatus I_ServiceEntrySheetBasic ApprovalStatus
SESWorkflowStatus _SESWorkflowStatus SESWorkflowStatus
ApprovalDateTime I_ServiceEntrySheetBasic ApprovalDateTime
ResponsiblePerson I_ServiceEntrySheetBasic ResponsiblePerson
OriginObjectType I_ServiceEntrySheetBasic OriginObjectType
Currency I_ServiceEntrySheetBasic Currency
MaterialDocument I_ServiceEntrySheetBasic MaterialDocument
MaterialDocumentYear I_ServiceEntrySheetBasic MaterialDocumentYear
CreationDateTime
CreatedByUser I_ServiceEntrySheetBasic CreatedByUser
LastChangeDateTime
LastChangeUser I_ServiceEntrySheetBasic LastChangeUser
PurchasingOrganization I_ServiceEntrySheetBasic PurchasingOrganization
PurchasingGroup I_ServiceEntrySheetBasic PurchasingGroup
IsEndOfPurposeBlocked I_ServiceEntrySheetBasic IsEndOfPurposeBlocked
PurgDocExternalSystem I_ServiceEntrySheetBasic PurgDocExternalSystem
PurgDocExternalReference I_ServiceEntrySheetBasic PurgDocExternalReference
ExternalRevisionDateTime I_ServiceEntrySheetBasic ExternalRevisionDateTime
PostingDate I_ServiceEntrySheetBasic PostingDate
PricingDocument I_ServiceEntrySheetBasic PricingDocument
TotalNetAmount
TotalSESNetAmountInclSalesTax
_ApprovalStatusValueHelp I_ServiceEntrySheetBasic _ApprovalStatusValueHelp
_ResponsiblePersonValueHelp I_ServiceEntrySheetBasic _ResponsiblePersonValueHelp
_Supplier I_ServiceEntrySheetBasic _Supplier
_ServiceEntrySheetItem _ServiceEntrySheetItem
_CreatedByUser _CreatedByUser
_LastChangeUser _LastChangeUser
_DocumentCurrency _DocumentCurrency
_PurchaseOrderCurrency _PurchaseOrder _DocumentCurrency
_SrvcEntrShtPurOrdValueHelp _SrvcEntrShtPurOrdValueHelp
_ApprovalStatusText _ApprovalStatusText
_SESWorkflowStatus _SESWorkflowStatus
_WorkflowStatusValueHelp _WorkflowStatusValueHelp
_WorkflowStatusText _WorkflowStatusText
@AbapCatalog.sqlViewName: 'ISRVCENTRSHT'
@AbapCatalog.compiler.compareFilter: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #MANDATORY
@AccessControl.privilegedAssociations: [ '_SESWorkflowStatus', '_WorkflowStatusText' ]
@AccessControl.personalData.blocking: #REQUIRED
@VDM.viewType : #COMPOSITE
@EndUserText.label: 'Service Entry Sheet'

@ObjectModel: {
   compositionRoot: true,
   representativeKey: 'ServiceEntrySheet',
   createEnabled,
   deleteEnabled,
   updateEnabled: 'EXTERNAL_CALCULATION',
   usageType.serviceQuality: #C,
   usageType.sizeCategory: #L,
   usageType.dataClass: #MIXED
}

@VDM.lifecycle.contract.type: #SAP_INTERNAL_API

define view I_ServiceEntrySheet
  as select from I_ServiceEntrySheetBasic as Document
  association [1..*] to I_ServiceEntrySheetItem      as _ServiceEntrySheetItem      on $projection.ServiceEntrySheet = _ServiceEntrySheetItem.ServiceEntrySheet
//  association [0..1] to I_SrvcEntrShtItmTotNetAmt    as _SrvcEntrShtItmTotNetAmt    on $projection.ServiceEntrySheet = _SrvcEntrShtItmTotNetAmt.ServiceEntrySheet

  association [0..*] to I_SrvcEntrShtApprvlStsTxt    as _ApprovalStatusText         on $projection.ApprovalStatus = _ApprovalStatusText.ApprovalStatus
  association [1..1] to I_SESWorkflowStatus          as _SESWorkflowStatus          on  $projection.ServiceEntrySheet = _SESWorkflowStatus.ServiceEntrySheet
  association [0..1] to I_SESWorkflowStatusValueHelp as _WorkflowStatusValueHelp    on  $projection.sesworkflowstatus = _WorkflowStatusValueHelp.SESWorkflowStatus
  association [0..*] to I_SESWorkflowStatusText      as _WorkflowStatusText         on $projection.sesworkflowstatus = _WorkflowStatusText.SESWorkflowStatus
  association [0..*] to I_SrvcEntrShtPurOrdValueHelp as _SrvcEntrShtPurOrdValueHelp on _SrvcEntrShtPurOrdValueHelp.PurchaseOrder = $projection.PurchaseOrder
  association [0..1] to I_PurchaseOrder              as _PurchaseOrder              on $projection.PurchaseOrder = _PurchaseOrder.PurchaseOrder
  association [0..1] to I_Currency                   as _DocumentCurrency           on $projection.Currency = _DocumentCurrency.Currency

  ----Extension Association
  association [1..1] to E_ServiceEntrySheet          as _ServiceEntrySheetExtension on $projection.ServiceEntrySheet = _ServiceEntrySheetExtension.ServiceEntrySheet

{
      @ObjectModel.mandatory: true
      @ObjectModel.readOnly: true
  key Document.ServiceEntrySheet,

      @ObjectModel.mandatory: true
      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      Document.ServiceEntrySheetName,

      @ObjectModel.readOnly: true
      @ObjectModel.text.element: [ 'SupplierName' ]
      Document.Supplier,

      @Semantics.text: true
      @ObjectModel.readOnly: true
      cast(_Supplier.SupplierName as bu_name1tx)                                                       as SupplierName,

      @ObjectModel.mandatory: 'EXTERNAL_CALCULATION'
      //@ObjectModel.foreignKey.association: '_SrvcEntrShtPurOrdValueHelp'

      @Consumption.valueHelp: '_SrvcEntrShtPurOrdValueHelp'
      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      Document.PurchaseOrder,

      @Semantics.currencyCode:true
      @ObjectModel.readOnly: true
      @ObjectModel.foreignKey.association: '_PurchaseOrderCurrency'
      @Consumption.valueHelp: '_PurchaseOrderCurrency'
      _PurchaseOrder.DocumentCurrency                                                                  as PurchaseOrderCurrency,

      Document.IsDeleted,

      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      @ObjectModel.text.association: '_ApprovalStatusText'
      @ObjectModel.foreignKey.association: '_ApprovalStatusValueHelp'
      Document.ApprovalStatus,


      @ObjectModel.readOnly: true
      @ObjectModel.text.association: '_WorkflowStatusText'
      @ObjectModel.foreignKey.association: '_WorkflowStatusValueHelp'
      _SESWorkflowStatus.SESWorkflowStatus,

      Document.ApprovalDateTime,

      @ObjectModel.mandatory: 'EXTERNAL_CALCULATION'
      Document.ResponsiblePerson,

      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      Document.OriginObjectType,

      @Semantics.currencyCode:true
      @ObjectModel.readOnly: true
      @ObjectModel.foreignKey.association: '_DocumentCurrency'
      @Consumption.valueHelp: '_DocumentCurrency'
      Document.Currency,

      Document.MaterialDocument,
      Document.MaterialDocumentYear,

      @ObjectModel.readOnly: true
      cast(CreationDateTime as mmpur_ses_created_on)                                                   as CreationDateTime,

      @ObjectModel.readOnly: true
      @Semantics.user.createdBy: true
      Document.CreatedByUser,

      @ObjectModel.readOnly: true
      cast(Document.LastChangeDateTime as mmpur_ses_changed_on)                                        as LastChangeDateTime,

      @ObjectModel.readOnly: true
      @Semantics.user.lastChangedBy: true
      Document.LastChangeUser,

      @ObjectModel.readOnly: true
      Document.PurchasingOrganization,

      @ObjectModel.readOnly: true
      Document.PurchasingGroup,

      Document.IsEndOfPurposeBlocked,
      Document.PurgDocExternalSystem,
      Document.PurgDocExternalReference,
      Document.ExternalRevisionDateTime,

      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      Document.PostingDate,
      Document.PricingDocument,

      @Semantics.amount.currencyCode: 'Currency'
      @ObjectModel.readOnly: true
      @Aggregation.default: #NONE
      cast( 0 as mmpur_ses_confirmedvalue )                      as TotalNetAmount,

      @Semantics.amount.currencyCode: 'Currency'
      @ObjectModel.readOnly: true
      @Aggregation.default: #NONE
      cast( 0 as mmpur_ses_total_conf_val_w_tax ) as TotalSESNetAmountInclSalesTax,

      Document._ApprovalStatusValueHelp,
      Document._ResponsiblePersonValueHelp,
      Document._Supplier,

      @ObjectModel.association.type: [ #TO_COMPOSITION_CHILD ]
      _ServiceEntrySheetItem,
      _CreatedByUser,
      _LastChangeUser,

      _DocumentCurrency,
      _PurchaseOrder._DocumentCurrency                                                                 as _PurchaseOrderCurrency,
      _SrvcEntrShtPurOrdValueHelp,
      _ApprovalStatusText,
//      _SrvcEntrShtItmTotNetAmt,


      _SESWorkflowStatus,
      _WorkflowStatusValueHelp,
      _WorkflowStatusText
}