I_ProdCmplncLglEntityMappingTP

DDL: I_PRODCMPLNCLGLENTITYMAPPINGTP Type: view_entity TRANSACTIONAL Package: EHFND_RAP_LEGAL_ENTITY

Legal Entity Mapping - TP

I_ProdCmplncLglEntityMappingTP is a Transactional CDS View that provides data about "Legal Entity Mapping - TP" in SAP S/4HANA. It reads from 1 data source (I_ProdCmplncLegalEntityMapping) and exposes 31 fields with key field ProdCmplncLglEntyMappgUUID. It has 12 associations to related views. Part of development package EHFND_RAP_LEGAL_ENTITY.

Data Sources (1)

SourceAliasJoin Type
I_ProdCmplncLegalEntityMapping _ProdCmplncLegalEntityMapping from

Associations (12)

CardinalityTargetAliasCondition
[1..1] I_ProdCmplncLegalEntity _ProdCmplncLegalEntity _ProdCmplncLegalEntityMapping.ProdCmplncLegalEntityUUID = _ProdCmplncLegalEntity.ProdCmplncLegalEntityUUID
[1..1] I_PlantVH _Plant _ProdCmplncLegalEntityMapping.ProductionPlant = _Plant.Plant or _ProdCmplncLegalEntityMapping.ReceivingPlant = _Plant.Plant or _ProdCmplncLegalEntityMapping.SellingPlant = _Plant.Plant
[0..1] I_PlantVH _ProductionPlant _ProdCmplncLegalEntityMapping.ProductionPlant = _ProductionPlant.Plant
[0..1] I_PlantVH _ReceivingPlant _ProdCmplncLegalEntityMapping.ReceivingPlant = _ReceivingPlant.Plant
[0..1] I_PlantVH _SellingPlant _ProdCmplncLegalEntityMapping.SellingPlant = _SellingPlant.Plant
[1..1] I_CompanyCodeVH _CompanyCode _ProdCmplncLegalEntityMapping.ProductionCompanyCode = _CompanyCode.CompanyCode or _ProdCmplncLegalEntityMapping.ReceivingCompanyCode = _CompanyCode.CompanyCode or _ProdCmplncLegalEntityMapping.SellingCompanyCode = _CompanyCode.CompanyCode and _CompanyCode.Language = $session.system_language
[0..1] I_CompanyCodeVH _ProductionCompany _ProdCmplncLegalEntityMapping.ProductionCompanyCode = _ProductionCompany.CompanyCode and _ProductionCompany.Language = $session.system_language
[0..1] I_CompanyCodeVH _ReceivingCompany _ProdCmplncLegalEntityMapping.ReceivingCompanyCode = _ReceivingCompany.CompanyCode and _ReceivingCompany.Language = $session.system_language
[0..1] I_CompanyCodeVH _SellingCompany _ProdCmplncLegalEntityMapping.SellingCompanyCode = _SellingCompany.CompanyCode and _SellingCompany.Language = $session.system_language
[1..1] I_CmplRqSVTScenarioText _BPText _ProdCmplncLegalEntityMapping.SVTBusinessProcessScenario = _BPText.CmplRqSVTScenario and _BPText.Language = $session.system_language
[1..1] P_ProdCmplncLglEntityMappgUsed _MappingUsed _ProdCmplncLegalEntityMapping.ProdCmplncLglEntyMappgUUID = _MappingUsed.ProdCmplncLglEntyMappgUUID -- I_CmplRq has issues with initial values as it uses a distinct. Therefore, filter initial entries in I_CmplRq
[0..1] I_CmplRq _CmplRq $projection.CmplRqUUID = _CmplRq.CmplRqUUID and $projection.ComplianceRequirement = _CmplRq.ComplianceRequirement and _CmplRq.CmplRqUUID is not null and _CmplRq.ComplianceRequirement is not initial

Annotations (11)

NameValueLevelField
EndUserText.label Legal Entity Mapping - TP view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.representativeKey ProdCmplncLglEntyMappgUUID view
ObjectModel.modelingPattern #TRANSACTIONAL_ENTITY view
ObjectModel.sapObjectNodeType.name ProdMarketabilityLglEntyMappg view
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view

Fields (31)

KeyFieldSource TableSource FieldDescription
KEY ProdCmplncLglEntyMappgUUID ProdCmplncLglEntyMappgUUID LE Mapping UUID
ProdCmplncLegalEntityUUID ProdCmplncLegalEntityUUID Legal Entity UUID
CmplRqUUID CmplRqUUID Compl Req.
ProductionCompanyCode ProductionCompanyCode Prodn Co Code
ReceivingCompanyCode ReceivingCompanyCode Rcvg Co Code
SellingCompanyCode SellingCompanyCode Selling Company Code
ProductionPlant ProductionPlant Prod plnt
ReceivingPlant ReceivingPlant Receiving Plant
SellingPlant SellingPlant Selling Plant
PCLglEntyMappgValidFromDate PCLglEntyMappgValidFromDate Valid From
PCLglEntyMappgValidToDate PCLglEntyMappgValidToDate Valid To
SVTBusinessProcessScenario SVTBusinessProcessScenario Scenario
PCLglEntyMappgIsDeleted PCLglEntyMappgIsDeleted LEM is deleted
ComplianceRequirement ComplianceRequirement Compliance Requirement
PCLglEntyAuthznCheckHasFailed
CreationDateTime CreationDateTime Timestamp
CreatedByUser CreatedByUser User Name
LastChangeDateTime LastChangeDateTime Timestamp
LastChangedByUser LastChangedByUser User Name
PCLglEntyMappgIsUsedInSVT _MappingUsed PCLglEntyMappgIsUsedInSVT
_ProdCmplncLegalEntity _ProdCmplncLegalEntity
_Plant _Plant
_ProductionPlant _ProductionPlant
_ReceivingPlant _ReceivingPlant
_SellingPlant _SellingPlant
_CompanyCode _CompanyCode
_ProductionCompany _ProductionCompany
_ReceivingCompany _ReceivingCompany
_SellingCompany _SellingCompany
_BPText _BPText
_CmplRq _CmplRq

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 I_ProdCmplncLglEntityMappingTP.
-- 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 I_ProdCmplncLglEntityMappingTP AS
SELECT
  ProdCmplncLglEntyMappgUUID,
  ProdCmplncLegalEntityUUID,
  CmplRqUUID,
  ProductionCompanyCode,
  ReceivingCompanyCode,
  SellingCompanyCode,
  ProductionPlant,
  ReceivingPlant,
  SellingPlant,
  PCLglEntyMappgValidFromDate,
  PCLglEntyMappgValidToDate,
  SVTBusinessProcessScenario,
  PCLglEntyMappgIsDeleted,
  ComplianceRequirement,
  cast( ' ' as ehfnd_boolean ) AS PCLglEntyAuthznCheckHasFailed,
  CreationDateTime,
  CreatedByUser,
  LastChangeDateTime,
  LastChangedByUser,
  _MappingUsed.PCLglEntyMappgIsUsedInSVT AS PCLglEntyMappgIsUsedInSVT
FROM I_ProdCmplncLegalEntityMapping AS _ProdCmplncLegalEntityMapping
LEFT OUTER JOIN I_ProdCmplncLegalEntity AS _ProdCmplncLegalEntity ON _ProdCmplncLegalEntityMapping.ProdCmplncLegalEntityUUID = _ProdCmplncLegalEntity.ProdCmplncLegalEntityUUID  -- association [1..1]
LEFT OUTER JOIN I_PlantVH AS _Plant ON _ProdCmplncLegalEntityMapping.ProductionPlant = _Plant.Plant OR _ProdCmplncLegalEntityMapping.ReceivingPlant = _Plant.Plant OR _ProdCmplncLegalEntityMapping.SellingPlant = _Plant.Plant  -- association [1..1]
LEFT OUTER JOIN I_PlantVH AS _ProductionPlant ON _ProdCmplncLegalEntityMapping.ProductionPlant = _ProductionPlant.Plant  -- association [0..1]
LEFT OUTER JOIN I_PlantVH AS _ReceivingPlant ON _ProdCmplncLegalEntityMapping.ReceivingPlant = _ReceivingPlant.Plant  -- association [0..1]
LEFT OUTER JOIN I_PlantVH AS _SellingPlant ON _ProdCmplncLegalEntityMapping.SellingPlant = _SellingPlant.Plant  -- association [0..1]
LEFT OUTER JOIN I_CompanyCodeVH AS _CompanyCode ON _ProdCmplncLegalEntityMapping.ProductionCompanyCode = _CompanyCode.CompanyCode OR _ProdCmplncLegalEntityMapping.ReceivingCompanyCode = _CompanyCode.CompanyCode OR _ProdCmplncLegalEntityMapping.SellingCompanyCode = _CompanyCode.CompanyCode AND _CompanyCode.Language = $session.system_language  -- association [1..1]
LEFT OUTER JOIN I_CompanyCodeVH AS _ProductionCompany ON _ProdCmplncLegalEntityMapping.ProductionCompanyCode = _ProductionCompany.CompanyCode AND _ProductionCompany.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_CompanyCodeVH AS _ReceivingCompany ON _ProdCmplncLegalEntityMapping.ReceivingCompanyCode = _ReceivingCompany.CompanyCode AND _ReceivingCompany.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_CompanyCodeVH AS _SellingCompany ON _ProdCmplncLegalEntityMapping.SellingCompanyCode = _SellingCompany.CompanyCode AND _SellingCompany.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_CmplRqSVTScenarioText AS _BPText ON _ProdCmplncLegalEntityMapping.SVTBusinessProcessScenario = _BPText.CmplRqSVTScenario AND _BPText.Language = $session.system_language  -- association [1..1]
LEFT OUTER JOIN P_ProdCmplncLglEntityMappgUsed AS _MappingUsed ON _ProdCmplncLegalEntityMapping.ProdCmplncLglEntyMappgUUID = _MappingUsed.ProdCmplncLglEntyMappgUUID  -- association [1..1]
LEFT OUTER JOIN I_CmplRq AS _CmplRq ON CmplRqUUID = _CmplRq.CmplRqUUID AND ComplianceRequirement = _CmplRq.ComplianceRequirement AND _CmplRq.CmplRqUUID is not null AND _CmplRq.ComplianceRequirement is not initial  -- association [0..1]
;