C_PPS_PurContrLegalTransaction

DDL: C_PPS_PURCONTRLEGALTRANSACTION Type: view_entity CONSUMPTION

Purchase Contract Legal Transaction

C_PPS_PurContrLegalTransaction is a Consumption CDS View that provides data about "Purchase Contract Legal Transaction" in SAP S/4HANA. It reads from 1 data source (C_LegalTransactionIntegFacet) and exposes 38 fields with key fields LegalTransactionUUID, LegalTransactionLinkdObjUUID. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
C_LegalTransactionIntegFacet C_LegalTransactionIntegFacet from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_LegalTransaction _LegalTransaction $projection.LegalTransactionUUID = _LegalTransaction.LegalTransactionUUID
[0..*] C_LegalDocumentIntegFacet _LegalDocumentIntegFacet $projection.LegalTransactionUUID = _LegalDocumentIntegFacet.LegalTransactionUUID and $projection.LegalTransactionLinkdObjUUID = _LegalDocumentIntegFacet.LegalTransactionLinkdObjUUID and $projection.LglCntntMLinkdObj = _LegalDocumentIntegFacet.LglCntntMLinkdObj

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #REQUIRED view
Metadata.allowExtensions true view
EndUserText.label Purchase Contract Legal Transaction view
VDM.viewType #CONSUMPTION view
ObjectModel.representativeKey LegalTransactionLinkdObjUUID view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view

Fields (38)

KeyFieldSource TableSource FieldDescription
KEY LegalTransactionUUID LegalTransactionUUID Universal Unique ID
KEY LegalTransactionLinkdObjUUID LegalTransactionLinkdObjUUID Universal Unique ID
LglCntntMLinkdObj LglCntntMLinkdObj Unique ID
LglCntntMIntegrationLink LglCntntMIntegrationLink Integration Link
LegalTransaction LegalTransaction Legal Transaction ID
LegalTransactionTitle LegalTransactionTitle Title
LegalTransactionHealth LegalTransactionHealth LT Status
LglTransHealthCriticality LglTransHealthCriticality
LegalTransactionHealthName
LglCntntMLanguage LglCntntMLanguage Language
LanguageName
LglCntntMMainOrgType LglCntntMMainOrgType Main Organisation Ty
LglCntntMMainOrg LglCntntMMainOrg
LegalTransactionIsTriggerObj LegalTransactionIsTriggerObj Trigger Object
LglCntntMLglTransUpdtIsRqd LglCntntMLglTransUpdtIsRqd
LegalDocument
NumberOfDocuments
DocumentDescription
LglCntntMDocStatusName
LglCntntMDocAgrmtBizStatus
LglCntntMContractTypeName
LglCntntMAgreementSystemID
LglCntntMAgreementName
CreateLegalDocumentIsEnabled
CrteLglDocAmendmentIsEnabled
UpdtLglTransFrmPurContrIsEnbld
UpdtLglDocAgreementIsEnabled
UnasLiObFrLgTrnExIsEnabled
LglTransAccessLvl LglTransAccessLvl Acs. Level
LglCntntMProfile LglCntntMProfile Profile
LglCntntMMainOrgSalesOrg LglCntntMMainOrgSalesOrg Entity ID
LglCntntMMainOrgPurOrg LglCntntMMainOrgPurOrg Entity ID
LglCntntMMainOrgCoCode LglCntntMMainOrgCoCode Entity ID
IsEndOfPurposeBlocked IsEndOfPurposeBlocked Busin. Purp. Cmpltd.
_LegalTransactionHealthText _LegalTransactionHealthText
_Language _Language
_LglCntntMMainOrgTypeText _LglCntntMMainOrgTypeText
_LegalDocumentIntegFacet _LegalDocumentIntegFacet

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_PPS_PurContrLegalTransaction.
-- 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.

CREATE VIEW C_PPS_PurContrLegalTransaction AS
SELECT
  LegalTransactionUUID,
  LegalTransactionLinkdObjUUID,
  LglCntntMLinkdObj,
  LglCntntMIntegrationLink,
  LegalTransaction,
  LegalTransactionTitle,
  LegalTransactionHealth,
  LglTransHealthCriticality,
  cast( _LegalTransactionHealthText[1:Language = $session.system_language ].LegalTransactionHealthName as ltext ) AS LegalTransactionHealthName,
  LglCntntMLanguage,
  cast( _Language._Text[1:Language = $session.system_language ].LanguageName as sptxt ) AS LanguageName,
  LglCntntMMainOrgType,
  LglCntntMMainOrg,
  LegalTransactionIsTriggerObj,
  LglCntntMLglTransUpdtIsRqd,
  cast( '' as lcm_document_id ) AS LegalDocument,
  cast( 0 as abap.int1 ) AS NumberOfDocuments,
  cast( '' as lcm_description ) AS DocumentDescription,
  cast( '' as ltext ) AS LglCntntMDocStatusName,
  cast( '' as lcm_doc_agrmt_biz_status ) AS LglCntntMDocAgrmtBizStatus,
  cast( '' as lcm_contract_type_name ) AS LglCntntMContractTypeName,
  cast( '' as lcm_doc_agrmt_system_id ) AS LglCntntMAgreementSystemID,
  cast( '' as lcm_description ) AS LglCntntMAgreementName,
  cast( '' as abap_boolean ) AS CreateLegalDocumentIsEnabled,
  cast( '' as abap_boolean ) AS CrteLglDocAmendmentIsEnabled,
  cast( '' as abap_boolean ) AS UpdtLglTransFrmPurContrIsEnbld,
  cast( '' as abap_boolean ) AS UpdtLglDocAgreementIsEnabled,
  cast( '' as abap_boolean ) AS UnasLiObFrLgTrnExIsEnabled,
  LglTransAccessLvl,
  LglCntntMProfile,
  LglCntntMMainOrgSalesOrg,
  LglCntntMMainOrgPurOrg,
  LglCntntMMainOrgCoCode,
  IsEndOfPurposeBlocked
FROM C_LegalTransactionIntegFacet
LEFT OUTER JOIN I_LegalTransaction AS _LegalTransaction ON LegalTransactionUUID = _LegalTransaction.LegalTransactionUUID  -- association [0..1]
LEFT OUTER JOIN C_LegalDocumentIntegFacet AS _LegalDocumentIntegFacet ON LegalTransactionUUID = _LegalDocumentIntegFacet.LegalTransactionUUID AND LegalTransactionLinkdObjUUID = _LegalDocumentIntegFacet.LegalTransactionLinkdObjUUID AND LglCntntMLinkdObj = _LegalDocumentIntegFacet.LglCntntMLinkdObj  -- association [0..*]
;