C_LglCntntMLglTrans1stDoc
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)
| Source | Alias | Join Type |
|---|---|---|
| I_LegalTransactionTP | I_LegalTransactionTP | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_LcmDocumentTP | _Document | $projection.LegalTransactionUUID = _Document.LegalTransactionUUID |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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..*]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA