I_ProdCmplncLglEntityMappingTP
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)
| Source | Alias | Join Type |
|---|---|---|
| I_ProdCmplncLegalEntityMapping | _ProdCmplncLegalEntityMapping | from |
Associations (12)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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