C_LglCntntMLglTrans1stDoc

DDL: C_LGLCNTNTMLGLTRANS1STDOC SQL: CLCMLTFIRSTDOC Type: view CONSUMPTION Package: ODATA_LCM_COMMON

Legal Transaction First Document

C_LglCntntMLglTrans1stDoc is a Consumption CDS View that provides data about "Legal Transaction First Document" in SAP S/4HANA. It reads from 1 data source (I_LegalTransactionTP) and exposes 18 fields with key fields LegalTransactionUUID, LglCntntMDocumentUUID. It has 1 association to related views. Part of development package ODATA_LCM_COMMON.

Data Sources (1)

SourceAliasJoin Type
I_LegalTransactionTP I_LegalTransactionTP from

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_LcmDocumentTP _Document $projection.LegalTransactionUUID = _Document.LegalTransactionUUID

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName CLCMLTFIRSTDOC 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
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Legal Transaction First Document view

Fields (18)

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

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_LglCntntMLglTrans1stDoc.
-- 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: CLCMLTFIRSTDOC

CREATE VIEW C_LglCntntMLglTrans1stDoc AS
SELECT
  LegalTransactionUUID,
  _Document.LglCntntMDocumentUUID AS LglCntntMDocumentUUID,
  LglCntntMCreatedUTCDateTime,
  min( _Document.LglCntntMCreatedUTCDateTime ) AS LglCntntMDocFirstCrtedDateTime,
  cast( substring(tstmp_to_dats(LglCntntMCreatedUTCDateTime, abap_system_timezone($session.client, 'NULL'), $session.client, 'NULL'), 1, 4) as calendaryear ) AS CalendarYear,
  substring(cast($session.system_date as abap.char( 8 ) ), 1, 4) AS CurrentYear,
  LglCntntMContext,
  LglCntntMContextVersion,
  LglCntntMEntity,
  LglCntntMEntityType,
  LegalTransaction,
  IsEndOfPurposeBlocked,
  LglCntntMProfile,
  LglTransAccessLvl,
  LglCntntMMainOrgCoCode,
  LglCntntMMainOrgSalesOrg,
  LglCntntMMainOrgPurOrg
FROM I_LegalTransactionTP
LEFT OUTER JOIN I_LcmDocumentTP AS _Document ON LegalTransactionUUID = _Document.LegalTransactionUUID  -- association [0..*]
;