C_CADocumentBPItemBusLockEnhcd

DDL: C_CADOCUMENTBPITEMBUSLOCKENHCD Type: view_entity CONSUMPTION Package: ODATA_O2C_FICA_DOCUMENT_MANAGE

Business Lock for a CA Document

C_CADocumentBPItemBusLockEnhcd is a Consumption CDS View that provides data about "Business Lock for a CA Document" in SAP S/4HANA. It reads from 1 data source (P_CADocumentBPItemBusLockEnhcd) and exposes 35 fields with key fields CABusinessLockObjectCategory, CABusinessProcess, CABusinessLockReason, CABusinessLockValidFrom, CABusinessLockValidTo. It has 2 associations to related views. It is exposed through 2 OData services (UI_CAACCOUNTBALANCE_DISPLAY, UI_CADOCUMENT_MNG). Part of development package ODATA_O2C_FICA_DOCUMENT_MANAGE.

Data Sources (1)

SourceAliasJoin Type
P_CADocumentBPItemBusLockEnhcd P_CADocumentBPItemBusLockEnhcd from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_CAProviderContractHeader _ProviderContract $projection.CASubApplication = 'P' and $projection.CAContract = _ProviderContract.CAProviderContract
[0..1] I_CASubApplication _CASubApplication $projection.CASubApplication = _CASubApplication.CASubApplication

Annotations (8)

NameValueLevelField
EndUserText.label Business Lock for a CA Document view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #C view
VDM.viewType #CONSUMPTION view
Metadata.allowExtensions true view

OData Services (2)

ServiceBindingVersionContractRelease
UI_CAACCOUNTBALANCE_DISPLAY UI_CAACCOUNTBALANCE_DISPLAY V4 C1 NOT_RELEASED
UI_CADOCUMENT_MNG UI_CADOCUMENT_MNG V4 C1 NOT_RELEASED

Fields (35)

KeyFieldSource TableSource FieldDescription
KEY CABusinessLockObjectCategory CABusinessLockObjectCategory
KEY CABusinessProcess CABusinessProcess
KEY CABusinessLockReason CABusinessLockReason
KEY CABusinessLockValidFrom CABusinessLockValidFrom
KEY CABusinessLockValidTo CABusinessLockValidTo
KEY BusinessPartner BusinessPartner
KEY ContractAccount ContractAccount
KEY CAContract CAContract
KEY CAProviderContractItemCharUUID CAProviderContractItemCharUUID
KEY CADocumentNumber CADocumentNumber
KEY CARepetitionItemNumber CARepetitionItemNumber
KEY CABPItemNumber CABPItemNumber
KEY CASubItemNumber CASubItemNumber
LastChangedByUser LastChangedByUser
LastChangeDate LastChangeDate
LastChangeTime LastChangeTime
CABusinessLockIsActive _LockUI CABusinessLockIsActive
CAAlternativeBusinessProcess _LockUI CAAlternativeBusinessProcess
CABusinessProcessName
CABusinessLockReasonName
CABusinessLockObjectCatName
CAProviderContractName
CASubApplication CASubApplication
CASubApplicationText
CABusinessLockIsIndirectActive
CABusinessLockCriticality
CABusinessLockLgclValidFromDte
CABusinessLockLgclValidToDte
CADocumentSemanticObject
_BPItem _BPItem
_BusinessPartner _BusinessPartner
_CABusinessLockObjCategory _CABusinessLockObjCategory
_CABusinessLockReason _CABusinessLockReason
_CABusinessProcess _CABusinessProcess
_ContractAccountPartner _ContractAccountPartner
@EndUserText.label: 'Business Lock for a CA Document'

@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #REQUIRED

@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.serviceQuality: #C

@VDM.viewType: #CONSUMPTION
@VDM.usage.type:[#TRANSACTIONAL_PROCESSING_SERVICE]

@Metadata.allowExtensions: true
define view entity C_CADocumentBPItemBusLockEnhcd
  as select from P_CADocumentBPItemBusLockEnhcd
  association [0..1] to I_CAProviderContractHeader    as _ProviderContract  on  $projection.CASubApplication = 'P'
                                                                                and $projection.CAContract       = _ProviderContract.CAProviderContract
  association [0..1] to I_CASubApplication as _CASubApplication   on  $projection.CASubApplication = _CASubApplication.CASubApplication                                                                                                            

{
  key CABusinessLockObjectCategory,
  key CABusinessProcess,
  key CABusinessLockReason,
  key CABusinessLockValidFrom,
  key CABusinessLockValidTo,
  key BusinessPartner,
  key ContractAccount,
  @ObjectModel.text.element: [ 'CAProviderContractName' ]
  key CAContract,
  key CAProviderContractItemCharUUID,
  key CADocumentNumber,
  key CARepetitionItemNumber,
  key CABPItemNumber,
  key CASubItemNumber,
  
      LastChangedByUser,
      LastChangeDate,
      LastChangeTime,

      _LockUI.CABusinessLockIsActive,
      _LockUI.CAAlternativeBusinessProcess,
      _LockUI._AltBusProcess._Text[1:Language=$session.system_language].CABusinessProcessName,

      _CABusinessLockReason._Text[1:Language=$session.system_language].CABusinessLockReasonName,
      _CABusinessLockObjCategory._Text[1:Language=$session.system_language].CABusinessLockObjectCatName,
          
      @Semantics.text: true
      cast(_ProviderContract.CAProviderContractName as vtref_text_gfn_kk preserving type )   as CAProviderContractName,
  
      @ObjectModel.text.element: ['CASubApplicationText']
      CASubApplication,
  
      @Semantics.text: true
      cast(_CASubApplication._CASubApplicationText[1: Language=$session.system_language].CASubApplicationText as subap_text_gfn_kk preserving type ) as CASubApplicationText,
      

      @ObjectModel.virtualElement
      @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_FKK_CADOCUMENT_BUSLOCK_EXIT'
      cast('' as buslock_ind_active_kk) as CABusinessLockIsIndirectActive,

      @ObjectModel.virtualElement
      @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_FKK_CADOCUMENT_BUSLOCK_EXIT'
      cast(0 as int1)                   as CABusinessLockCriticality,

      @ObjectModel.virtualElement
      @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_FKK_CADOCUMENT_BUSLOCK_EXIT'
      cast('' as fdate_kk)              as CABusinessLockLgclValidFromDte,

      @ObjectModel.virtualElement
      @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_FKK_CADOCUMENT_BUSLOCK_EXIT'
      cast('' as tdate_kk)              as CABusinessLockLgclValidToDte,

      @ObjectModel.virtualElement
      @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_FKK_CADOCUMENT_BUSLOCK_EXIT'
      cast('' as opbel_semobj_kk)       as CADocumentSemanticObject,

      /* Associations */
      _BPItem,
      _BusinessPartner,
      _CABusinessLockObjCategory,
      _CABusinessLockReason,
      _CABusinessProcess,
      _ContractAccountPartner
}
where
  _LockUI.CABusinessLockIsRlvtForBPItem = 'X'