C_LglCntntMTimeTo1stDoc

DDL: C_LGLCNTNTMTIMETO1STDOC SQL: CLCMTIMETODOC Type: view CONSUMPTION Package: ODATA_LCM_COMMON

Time To First Document

C_LglCntntMTimeTo1stDoc is a Consumption CDS View that provides data about "Time To First Document" in SAP S/4HANA. It reads from 1 data source (C_LglCntntMLglTrans1stDoc) and exposes 18 fields with key fields LglCntntMDocumentUUID, LegalTransactionUUID. Part of development package ODATA_LCM_COMMON.

Data Sources (1)

SourceAliasJoin Type
C_LglCntntMLglTrans1stDoc C_LglCntntMLglTrans1stDoc from

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName CLCMTIMETODOC view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
VDM.viewType #CONSUMPTION view
EndUserText.label Time To First Document view

Fields (18)

KeyFieldSource TableSource FieldDescription
KEY LglCntntMDocumentUUID LglCntntMDocumentUUID Universal Unique ID
KEY LegalTransactionUUID LegalTransactionUUID Universal Unique ID
LglCntntMTimeToFirstDoc
LglCntntMCalendarQuarter LglCntntMCalendarQuarter
CalendarYear CalendarYear Year
CurrentYear CurrentYear
LegalTransaction LegalTransaction Legal Transaction ID
LglCntntMContext LglCntntMContext Context ID
LglCntntMContextVersion LglCntntMContextVersion Context Version
IsEndOfPurposeBlocked IsEndOfPurposeBlocked Busin. Purp. Cmpltd.
LglCntntMEntity LglCntntMEntity Entity ID
LglCntntMEntityType LglCntntMEntityType Entity Type
LglCntntMCreatedUTCDateTime LglCntntMCreatedUTCDateTime Created On
LglCntntMProfile LglCntntMProfile Profile
LglTransAccessLvl LglTransAccessLvl Acs. Level
LglCntntMMainOrgCoCode LglCntntMMainOrgCoCode Entity ID
LglCntntMMainOrgSalesOrg LglCntntMMainOrgSalesOrg Entity ID
LglCntntMMainOrgPurOrg LglCntntMMainOrgPurOrg Entity ID

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view C_LglCntntMTimeTo1stDoc.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: CLCMTIMETODOC

CREATE VIEW C_LglCntntMTimeTo1stDoc AS
SELECT
  LglCntntMDocumentUUID,
  LegalTransactionUUID,
  dats_days_between(tstmp_to_dats(LglCntntMCreatedUTCDateTime, abap_system_timezone($session.client, 'NULL'), $session.client, 'NULL'), tstmp_to_dats(LglCntntMDocFirstCrtedDateTime, abap_system_timezone($session.client, 'NULL'), $session.client, 'NULL')) AS LglCntntMTimeToFirstDoc,
  LglCntntMCalendarQuarter,
  CalendarYear,
  CurrentYear,
  LegalTransaction,
  LglCntntMContext,
  LglCntntMContextVersion,
  IsEndOfPurposeBlocked,
  LglCntntMEntity,
  LglCntntMEntityType,
  LglCntntMCreatedUTCDateTime,
  LglCntntMProfile,
  LglTransAccessLvl,
  LglCntntMMainOrgCoCode,
  LglCntntMMainOrgSalesOrg,
  LglCntntMMainOrgPurOrg
FROM C_LglCntntMLglTrans1stDoc
;