I_SERVICEENTRYSHEETACCTASSGMT

CDS View

Service Entry Sheet Account Assignment

I_SERVICEENTRYSHEETACCTASSGMT is a CDS View in S/4HANA. Service Entry Sheet Account Assignment. It contains 63 fields. 2 CDS views read from this table.

CDS Views using this table (2)

ViewTypeJoinVDMDescription
I_SESAccountAssignmentTP view from TRANSACTIONAL Service Entry Sheet Account Assignment
R_SESAccountAssignmentTP view_entity from TRANSACTIONAL SES Account Assignment

Fields (63)

KeyField CDS FieldsUsed in Views
KEY AccountAssignment AccountAssignment 2
KEY ServiceEntrySheet ServiceEntrySheet 2
KEY ServiceEntrySheetItem ServiceEntrySheetItem 2
_CompanyCode _CompanyCode 1
_Currency _Currency 1
_REObjectByIntFinNumber _REObjectByIntFinNumber 1
_UnitValueHelp _UnitValueHelp 1
BudgetPeriod BudgetPeriod 2
BusinessArea BusinessArea 2
BusinessProcess BusinessProcess 2
ChartOfAccounts ChartOfAccounts 2
CompanyCode CompanyCode 2
ControllingArea ControllingArea 2
CostCenter CostCenter 2
CostCtrActivityType CostCtrActivityType 2
CostObject CostObject 2
CreatedByUser CreatedByUser 1
CreationDateTime CreationDateTime 2
Currency Currency 2
EarmarkedFundsDocument EarmarkedFundsDocument 2
EarmarkedFundsDocumentItem EarmarkedFundsDocumentItem 2
FixedAsset FixedAsset 2
FunctionalArea FunctionalArea 2
Fund Fund 2
FundedProgram FundedProgram 2
FundsCenter FundsCenter 2
GLAccount GLAccount 2
GoodsRecipientName GoodsRecipientName 2
GrantID GrantID 2
IsDeleted IsDeleted 2
IsEndOfPurposeBlocked IsEndOfPurposeBlocked 2
LastChangeDateTime LastChangeDateTime 2
LastChangeUser LastChangedByUser 1
MasterFixedAsset MasterFixedAsset 2
MultipleAcctAssgmtDistrPercent MultipleAcctAssgmtDistrPercent 2
NetAmount NetAmount 2
NetworkActivity NetworkActivity 1
NetworkActivityInternalID NetworkActivityInternalID 2
OrderID OrderID 2
OrderIntBillOfOperationsItem OrderIntBillOfOperationsItem 2
OrderInternalID OrderInternalID 2
PartnerAccountNumber PartnerAccountNumber 1
Plant Plant 2
ProfitabilitySegment ProfitabilitySegment 2
ProfitCenter ProfitCenter 2
ProjectNetwork ProjectNetwork 2
ProjectNetworkInternalID ProjectNetworkInternalID 2
PurchasingGroup PurchasingGroup 2
PurchasingOrganization PurchasingOrganization 2
Quantity Quantity 2
QuantityUnit QuantityUnit 2
RealEstateObject RealEstateObject 1
RefDocAccountAssignment RefDocAccountAssignment 2
REInternalFinNumber REInternalFinNumber 1
SalesOrder SalesOrder 1
SalesOrderItem SalesOrderItem 1
SalesOrderScheduleLine SalesOrderScheduleLine 2
ServiceDocument ServiceDocument 2
ServiceDocumentItem ServiceDocumentItem 2
ServiceDocumentType ServiceDocumentType 2
SettlementReferenceDate SettlementReferenceDate 2
UnloadingPointName UnloadingPointName 2
ValidityDate ValidityDate 2
@AbapCatalog.sqlViewName: 'ISRVCENTRSHTACCT'
@AbapCatalog.compiler.compareFilter: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #MANDATORY
@AccessControl.personalData.blocking: #REQUIRED
@EndUserText.label: 'Service Entry Sheet Account Assignment'
@VDM.viewType : #COMPOSITE

@ObjectModel: {
   semanticKey: ['ServiceEntrySheet', 'ServiceEntrySheetItem', 'AccountAssignment' ],
   updateEnabled,
   usageType.serviceQuality: #C,
   usageType.sizeCategory: #L,
   usageType.dataClass: #MIXED
}

@VDM.lifecycle.contract.type: #SAP_INTERNAL_API

define view I_ServiceEntrySheetAcctAssgmt
  as select from I_SrvEntrySheetAcctAssgmtBasic as Document

  association [1..1] to I_ServiceEntrySheet     as _ServiceEntrySheet     on  _ServiceEntrySheet.ServiceEntrySheet = $projection.ServiceEntrySheet
  association [1..1] to I_ServiceEntrySheetItem as _ServiceEntrySheetItem on  _ServiceEntrySheetItem.ServiceEntrySheet     = $projection.ServiceEntrySheet
                                                                          and _ServiceEntrySheetItem.ServiceEntrySheetItem = $projection.ServiceEntrySheetItem

  association [0..*] to I_UnitOfMeasureText     as _UnitText              on  $projection.QuantityUnit = _UnitText.UnitOfMeasure
  association [0..1] to I_ControllingArea       as _ControllingArea       on  $projection.ControllingArea = _ControllingArea.ControllingArea
  association [0..1] to I_GLAccount             as _GLAccount             on  $projection.GLAccount   = _GLAccount.GLAccount
                                                                          and $projection.CompanyCode = _GLAccount.CompanyCode
  association [0..*] to I_GLAccountText         as _GLAccountText         on  $projection.ChartOfAccounts = _GLAccountText.ChartOfAccounts
                                                                          and $projection.GLAccount       = _GLAccountText.GLAccount
  association [0..1] to I_Currency              as _Currency              on  $projection.Currency = _Currency.Currency
  association [0..1] to I_CompanyCode           as _CompanyCode           on  $projection.CompanyCode = _CompanyCode.CompanyCode
{
  key Document.ServiceEntrySheet                                                                    as ServiceEntrySheet,
  key Document.ServiceEntrySheetItem                                                                as ServiceEntrySheetItem,

      @ObjectModel.readOnly: true
  key Document.AccountAssignment,

      Document.RefDocAccountAssignment,

      Document.IsDeleted,

      @ObjectModel.readOnly: true
      @ObjectModel.text.association: '_UnitText'
      @ObjectModel.foreignKey.association: '_UnitValueHelp'
      @Semantics.unitOfMeasure: true
      QuantityUnit,

      @Semantics.quantity.unitOfMeasure: 'QuantityUnit'
      @Aggregation.default: #NONE
      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      @ObjectModel.mandatory: 'EXTERNAL_CALCULATION'
      Document.Quantity,

      @Semantics.amount.currencyCode: 'Currency'
      @Aggregation.default: #NONE
      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      Document.NetAmount,

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

      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      //@ObjectModel.mandatory: 'undefined'

      Document.MultipleAcctAssgmtDistrPercent,

      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      Document.GLAccount                                                                            as GLAccount,

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

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

      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      SalesOrderItem,

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

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

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

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

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

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

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

      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      Document.ProfitCenter,
      @VDM.lifecycle.status: #DEPRECATED
      @VDM.lifecycle.successor: 'WBSElementInternalID_2'
      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      Document.WBSElementInternalID,

      Document.WBSElementInternalID_2,

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

      @ObjectModel.readOnly: true
      Document.ProjectNetworkInternalID,

      // VDM Consistency (2108) - Focus Conversion Exits: Change cast from VORNR to PS_S4_VORNR

      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      cast ('   ' as ps_s4_vornr)                                                                   as NetworkActivity,

      @ObjectModel.readOnly: true
      Document.NetworkActivityInternalID,

      Document.PartnerAccountNumber,

      cast( REInternalFinNumber as imkey )                                                          as RealEstateObject, //with conv exit


      @ObjectModel.foreignKey.association: '_REObjectByIntFinNumber'
      REInternalFinNumber, //without conv exit


      // new with CE 1911

      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      Document.CostCtrActivityType,
      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      Document.BusinessProcess,
      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      Document.SettlementReferenceDate,
      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      Document.GoodsRecipientName,
      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      Document.UnloadingPointName,
      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      Document.OrderInternalID,
      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      Document.OrderIntBillOfOperationsItem,

      // Public Sector Fields

      @ObjectModel.readOnly: 'undefined'
      @VDM.lifecycle.status: #DEPRECATED
      @VDM.lifecycle.successor: 'CommitmentItemShortID'
      Document.CommitmentItem,
      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      Document.CommitmentItemShortID,
      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      Document.FundsCenter,
      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      Document.Fund,
      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      Document.FunctionalArea,
      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      Document.EarmarkedFundsDocument,
      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      Document.EarmarkedFundsDocumentItem,
      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      Document.BudgetPeriod,
      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      Document.GrantID,
      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      Document.FundedProgram,

      // Service Order Fields

      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      Document.ServiceDocumentType,
      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      Document.ServiceDocument,
      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      Document.ServiceDocumentItem,

      @ObjectModel.readOnly: 'true'
      @ObjectModel.mandatory: 'false'
      cast(Document.CreationDateTime as mmpur_ses_created_on)                                       as CreationDateTime,

      Document.CreatedByUser,
      Document.LastChangeDateTime,
      Document.LastChangeUser,

      Document.PurchasingOrganization,
      Document.PurchasingGroup,
      Document.Plant,
      Document.IsEndOfPurposeBlocked,

      @ObjectModel.readOnly: 'true'
      @ObjectModel.mandatory: 'false'
      cast(substring( cast(tstmp_current_utctimestamp() as abap.char( 17 ) ), 1, 8 ) as abap.dats ) as ValidityDate,

      @ObjectModel.readOnly: true
      @Semantics.currencyCode:true
      @ObjectModel.foreignKey.association: '_Currency'
      _ServiceEntrySheetItem.PurchaseOrderCurrency                                                  as Currency,

      @ObjectModel.readOnly: true
      @ObjectModel.foreignKey.association: '_CompanyCode'
      _ServiceEntrySheetItem.PurchaseOrderItemCompanyCode                                           as CompanyCode,

      @ObjectModel.readOnly: true
      _ControllingArea.ChartOfAccounts                                                              as ChartOfAccounts,

      @ObjectModel.association.type: [ #TO_COMPOSITION_ROOT ]
      _ServiceEntrySheet,
      @ObjectModel.association.type:  [ #TO_COMPOSITION_PARENT ]
      _ServiceEntrySheetItem,

      Document._UnitValueHelp,

      _UnitText,
      _Currency,
      _CompanyCode,
      _REObjectByIntFinNumber
}