C_LegalTransactionPhase

DDL: C_LEGALTRANSACTIONPHASE SQL: CLCMLTPHASETP Type: view CONSUMPTION

Phase for Legal Transaction

C_LegalTransactionPhase is a Consumption CDS View that provides data about "Phase for Legal Transaction" in SAP S/4HANA. It reads from 1 data source (I_LegalTransactionPhase) and exposes 30 fields with key fields LglCntntMPhaseUUID, LglCntntMPhaseItemUUID. It has 8 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_LegalTransactionPhase I_LegalTransactionPhase from

Associations (8)

CardinalityTargetAliasCondition
[1..*] C_LegalTransactionPhaseItem _LegalTransactionPhaseItem $projection.LglCntntMPhaseUUID = _LegalTransactionPhaseItem.LglCntntMPhaseUUID
[1..1] C_LglCntntMPhaseTypeVH _LglCntntMPhaseTypeVH $projection.LglCntntMPhaseType = _LglCntntMPhaseTypeVH.LglCntntMPhaseType
[1..1] C_LglCntntMPhaseModeVH _LglCntntMPhaseModeVH $projection.LglCntntMPhaseMode = _LglCntntMPhaseModeVH.LglCntntMPhaseMode
[1..1] C_LglCntntMPhaseStatusVH _LglCntntMPhaseStatusVH $projection.LglCntntMPhaseStatus = _LglCntntMPhaseStatusVH.LglCntntMPhaseStatus
[0..1] I_LglCntntMPhaseActionText _LglCntntMPhaseActionText $projection.lglcntntmphaseactiontype = _LglCntntMPhaseActionText.LglCntntMPhaseActionType and _LglCntntMPhaseActionText.Language = $session.system_language
[0..1] I_LCMUserContactCard _StartedByContactCard _StartedByContactCard.ContactCardType = 'User' and _StartedByContactCard.ContactCardID = $projection.LglCntntMPhaseStartedByUser and _StartedByContactCard.ContactCardRole = 'Creator'
[0..1] C_LCMUserValueHelp _StartedBy $projection.LglCntntMPhaseStartedByUser = _StartedBy.UserID
[0..*] C_LglCntntMPhaseLog _LglCntntMPhaseLog $projection.LglCntntMPhaseUUID = _LglCntntMPhaseLog.LglCntntMPhaseUUID

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName CLCMLTPHASETP view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
AbapCatalog.preserveKey true view
ObjectModel.semanticKey LglCntntMPhaseType view
ObjectModel.representativeKey LglCntntMPhaseUUID view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
Search.searchable true view
EndUserText.label Phase for Legal Transaction view

Fields (30)

KeyFieldSource TableSource FieldDescription
KEY LglCntntMPhaseUUID LglCntntMPhaseUUID Universal Unique ID
KEY LglCntntMPhaseItemUUID _LegalTransactionPhaseItem LglCntntMPhaseItemUUID Universal Unique ID
LglCntntMPhaseDocUUID
LegalTransactionUUID LegalTransactionUUID Universal Unique ID
LglCntntMRank LglCntntMRank Seq No
LglCntntMPhaseName LglCntntMPhaseName Phase Name
LglCntntMPhaseType LglCntntMPhaseType Type
LglCntntMPhaseMode LglCntntMPhaseMode Start Condition
LglCntntMPhaseIsAutoStrtEnbld LglCntntMPhaseIsAutoStrtEnbld Auto-Start
LglCntntMPhaseStatus LglCntntMPhaseStatus Status
LglCntntMPhseStartedUTCDteTme LglCntntMPhseStartedUTCDteTme Started On
LglCntntMPhseCmpltdUTCDteTme LglCntntMPhseCmpltdUTCDteTme Last Updated On
LglCntntMPhaseStartedByUser LglCntntMPhaseStartedByUser Started By
LglCntntMPhseStrtByFullName
LglCntntMPhaseIteration LglCntntMPhaseIteration Reiteration
LglCntntMPhaseActionType _LegalTransactionPhaseItem LglCntntMPhaseActionType State
_LegalTransactionPhaseItem _LegalTransactionPhaseItem
_LglCntntMPhaseTypeVH _LglCntntMPhaseTypeVH
_LglCntntMPhaseModeVH _LglCntntMPhaseModeVH
_LglCntntMPhaseStatusVH _LglCntntMPhaseStatusVH
_LegalTransactionPhseDocType
_LegalTransactionPhseDocStamp
_LegalTransaction _LegalTransaction
_PhaseTypeText _PhaseTypeText
_PhaseModeText _PhaseModeText
_PhaseStatusText _PhaseStatusText
_StartedByContactCard _StartedByContactCard
_StartedBy _StartedBy
_LglCntntMPhaseActionText _LglCntntMPhaseActionText
_LglCntntMPhaseLog _LglCntntMPhaseLog

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_LegalTransactionPhase.
-- 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: CLCMLTPHASETP

CREATE VIEW C_LegalTransactionPhase AS
SELECT
  LglCntntMPhaseUUID,
  _LegalTransactionPhaseItem.LglCntntMPhaseItemUUID AS LglCntntMPhaseItemUUID,
  _LegalTransactionPhaseItem._LegalTransactionPhaseDoc.LglCntntMPhaseDocUUID AS LglCntntMPhaseDocUUID,
  LegalTransactionUUID,
  LglCntntMRank,
  LglCntntMPhaseName,
  LglCntntMPhaseType,
  LglCntntMPhaseMode,
  LglCntntMPhaseIsAutoStrtEnbld,
  LglCntntMPhaseStatus,
  LglCntntMPhseStartedUTCDteTme,
  LglCntntMPhseCmpltdUTCDteTme,
  LglCntntMPhaseStartedByUser,
  cast('' as ad_namtext) AS LglCntntMPhseStrtByFullName,
  LglCntntMPhaseIteration,
  _LegalTransactionPhaseItem.LglCntntMPhaseActionType AS LglCntntMPhaseActionType,
  _LegalTransactionPhaseItem._LegalTransactionPhaseDoc._LegalTransactionPhseDocType AS _LegalTransactionPhseDocType,
  _LegalTransactionPhaseItem._LegalTransactionPhaseDoc._LegalTransactionPhseDocStamp AS _LegalTransactionPhseDocStamp
FROM I_LegalTransactionPhase
LEFT OUTER JOIN C_LegalTransactionPhaseItem AS _LegalTransactionPhaseItem ON LglCntntMPhaseUUID = _LegalTransactionPhaseItem.LglCntntMPhaseUUID  -- association [1..*]
LEFT OUTER JOIN C_LglCntntMPhaseTypeVH AS _LglCntntMPhaseTypeVH ON LglCntntMPhaseType = _LglCntntMPhaseTypeVH.LglCntntMPhaseType  -- association [1..1]
LEFT OUTER JOIN C_LglCntntMPhaseModeVH AS _LglCntntMPhaseModeVH ON LglCntntMPhaseMode = _LglCntntMPhaseModeVH.LglCntntMPhaseMode  -- association [1..1]
LEFT OUTER JOIN C_LglCntntMPhaseStatusVH AS _LglCntntMPhaseStatusVH ON LglCntntMPhaseStatus = _LglCntntMPhaseStatusVH.LglCntntMPhaseStatus  -- association [1..1]
LEFT OUTER JOIN I_LglCntntMPhaseActionText AS _LglCntntMPhaseActionText ON lglcntntmphaseactiontype = _LglCntntMPhaseActionText.LglCntntMPhaseActionType AND _LglCntntMPhaseActionText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_LCMUserContactCard AS _StartedByContactCard ON _StartedByContactCard.ContactCardType = 'User' AND _StartedByContactCard.ContactCardID = LglCntntMPhaseStartedByUser AND _StartedByContactCard.ContactCardRole = 'Creator'  -- association [0..1]
LEFT OUTER JOIN C_LCMUserValueHelp AS _StartedBy ON LglCntntMPhaseStartedByUser = _StartedBy.UserID  -- association [0..1]
LEFT OUTER JOIN C_LglCntntMPhaseLog AS _LglCntntMPhaseLog ON LglCntntMPhaseUUID = _LglCntntMPhaseLog.LglCntntMPhaseUUID  -- association [0..*]
;