I_TrdCmplncLicSelection
License Selection
I_TrdCmplncLicSelection is a Composite CDS View that provides data about "License Selection" in SAP S/4HANA. It reads from 1 data source (I_TrdCmplncLicHeader) and exposes 28 fields with key fields TrdCmplncLicenseUUID, Product, ControlClass, ControlGrouping, CommodityCode. It has 11 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_TrdCmplncLicHeader | Header | from |
Associations (11)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_TrdCmplncLicProduct | _TrdCmplncLicProduct | _TrdCmplncLicProduct.TrdCmplncLicenseUUID = Header.TrdCmplncLicenseUUID |
| [0..*] | I_TrdCmplncLicControlClass | _TrdCmplncLicControlClass | _TrdCmplncLicControlClass.TrdCmplncLicenseUUID = Header.TrdCmplncLicenseUUID |
| [0..*] | I_TrdCmplncLicCtrlGrouping | _TrdCmplncLicCtrlGrouping | _TrdCmplncLicCtrlGrouping.TrdCmplncLicenseUUID = Header.TrdCmplncLicenseUUID |
| [0..*] | I_TrdCmplncLicCommodityCode | _TrdCmplncLicCommodityCode | _TrdCmplncLicCommodityCode.TrdCmplncLicenseUUID = Header.TrdCmplncLicenseUUID |
| [0..*] | I_TrdCmplncLicCountry | _TrdCmplncLicCountry | _TrdCmplncLicCountry.TrdCmplncLicenseUUID = Header.TrdCmplncLicenseUUID |
| [0..*] | I_TrdCmplncLicDocument | _TrdCmplncLicDocument | _TrdCmplncLicDocument.TrdCmplncLicenseUUID = Header.TrdCmplncLicenseUUID |
| [0..*] | I_TrdCmplncLicBusPart | _TrdCmplncLicBusPart | _TrdCmplncLicBusPart.TrdCmplncLicenseUUID = Header.TrdCmplncLicenseUUID |
| [0..*] | I_TrdCmplncLicCompanyCode | _TrdCmplncLicCompanyCode | _TrdCmplncLicCompanyCode.TrdCmplncLicenseUUID = Header.TrdCmplncLicenseUUID |
| [0..*] | I_TrdCmplncLicPlant | _TrdCmplncLicPlant | _TrdCmplncLicPlant.TrdCmplncLicenseUUID = Header.TrdCmplncLicenseUUID |
| [0..*] | I_TrdCmplncLicTariffNumber | _TrdCmplncLicTariffNumber | _TrdCmplncLicTariffNumber.TrdCmplncLicenseUUID = Header.TrdCmplncLicenseUUID |
| [0..1] | I_TrdCmplncLicType | _TrdCmplncLicType | $projection.LegalRegulation = _TrdCmplncLicType.LegalRegulation and $projection.TrdCmplncLicenseType = _TrdCmplncLicType.TrdCmplncLicenseType |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | License Selection | view | |
| VDM.viewType | #COMPOSITE | view | |
| AbapCatalog.sqlViewName | ITRDCMPLSEL | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ObjectModel.representativeKey | TrdCmplncLicenseUUID | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.sizeCategory | L | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (28)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | TrdCmplncLicenseUUID | I_TrdCmplncLicHeader | TrdCmplncLicenseUUID | UUID |
| KEY | Product | _TrdCmplncLicProduct | Product | Product Sold |
| KEY | ControlClass | _TrdCmplncLicControlClass | ControlClass | |
| KEY | ControlGrouping | _TrdCmplncLicCtrlGrouping | ControlGrouping | |
| KEY | CommodityCode | _TrdCmplncLicCommodityCode | CommodityCode | Commodity Code |
| KEY | Country | _TrdCmplncLicCountry | Country | Venue: Ctry/Reg |
| KEY | ReferenceDocumentCategory | _TrdCmplncLicDocument | ReferenceDocumentCategory | |
| KEY | ReferenceDocument | _TrdCmplncLicDocument | ReferenceDocument | Reference Document |
| KEY | IntlTrdPartnerRole | _TrdCmplncLicBusPart | IntlTrdPartnerRole | |
| KEY | BusinessPartner | _TrdCmplncLicBusPart | BusinessPartner | Issuing Authority |
| KEY | CompanyCode | _TrdCmplncLicCompanyCode | CompanyCode | Receiver Company Code |
| KEY | Plant | _TrdCmplncLicPlant | Plant | Valuation Area |
| KEY | CustomsTariffNumber | _TrdCmplncLicTariffNumber | CustomsTariffNumber | |
| LegalRegulation | I_TrdCmplncLicHeader | LegalRegulation | Legal Regulation | |
| TrdCmplncLicenseType | I_TrdCmplncLicHeader | TrdCmplncLicenseType | License Type | |
| TrdCmplncLicenseStatus | I_TrdCmplncLicHeader | TrdCmplncLicenseStatus | Status | |
| ValidityStartDate | I_TrdCmplncLicHeader | ValidityStartDate | Validity Start Date | |
| ValidityEndDate | I_TrdCmplncLicHeader | ValidityEndDate | ValidTo | |
| TrdCmplncLicenseHasProduct | _TrdCmplncLicType | TrdCmplncLicenseHasProduct | Product | |
| TrdCmplncLicenseHasCountry | _TrdCmplncLicType | TrdCmplncLicenseHasCountry | Country/Region | |
| _LegalRegulation | I_TrdCmplncLicHeader | _LegalRegulation | ||
| _TrdCmplncLicType | _TrdCmplncLicType | |||
| _TrdCmplncLicStatus | _TrdCmplncLicStatus | |||
| _Country | _TrdCmplncLicCountry | _Country | ||
| _IntlTrdDocumentCategory | _TrdCmplncLicDocument | _IntlTrdDocumentCategory | ||
| _IntlTrdPartnerRole | _TrdCmplncLicBusPart | _IntlTrdPartnerRole | ||
| _BusinessPartner | _TrdCmplncLicBusPart | _BusinessPartner | ||
| _Plant | _TrdCmplncLicPlant | _Plant |
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_TrdCmplncLicSelection.
-- 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: ITRDCMPLSEL
CREATE VIEW I_TrdCmplncLicSelection AS
SELECT
Header.TrdCmplncLicenseUUID AS TrdCmplncLicenseUUID,
_TrdCmplncLicProduct.Product AS Product,
_TrdCmplncLicControlClass.ControlClass AS ControlClass,
_TrdCmplncLicCtrlGrouping.ControlGrouping AS ControlGrouping,
_TrdCmplncLicCommodityCode.CommodityCode AS CommodityCode,
_TrdCmplncLicCountry.Country AS Country,
_TrdCmplncLicDocument.ReferenceDocumentCategory AS ReferenceDocumentCategory,
_TrdCmplncLicDocument.ReferenceDocument AS ReferenceDocument,
_TrdCmplncLicBusPart.IntlTrdPartnerRole AS IntlTrdPartnerRole,
_TrdCmplncLicBusPart.BusinessPartner AS BusinessPartner,
_TrdCmplncLicCompanyCode.CompanyCode AS CompanyCode,
_TrdCmplncLicPlant.Plant AS Plant,
_TrdCmplncLicTariffNumber.CustomsTariffNumber AS CustomsTariffNumber,
Header.LegalRegulation AS LegalRegulation,
Header.TrdCmplncLicenseType AS TrdCmplncLicenseType,
Header.TrdCmplncLicenseStatus AS TrdCmplncLicenseStatus,
Header.ValidityStartDate AS ValidityStartDate,
Header.ValidityEndDate AS ValidityEndDate,
_TrdCmplncLicType.TrdCmplncLicenseHasProduct AS TrdCmplncLicenseHasProduct,
_TrdCmplncLicType.TrdCmplncLicenseHasCountry AS TrdCmplncLicenseHasCountry,
Header._LegalRegulation AS _LegalRegulation,
_TrdCmplncLicCountry._Country AS _Country,
_TrdCmplncLicDocument._IntlTrdDocumentCategory AS _IntlTrdDocumentCategory,
_TrdCmplncLicBusPart._IntlTrdPartnerRole AS _IntlTrdPartnerRole,
_TrdCmplncLicBusPart._BusinessPartner AS _BusinessPartner,
_TrdCmplncLicPlant._Plant AS _Plant
FROM I_TrdCmplncLicHeader AS Header
LEFT OUTER JOIN I_TrdCmplncLicProduct AS _TrdCmplncLicProduct ON _TrdCmplncLicProduct.TrdCmplncLicenseUUID = Header.TrdCmplncLicenseUUID -- association [0..*]
LEFT OUTER JOIN I_TrdCmplncLicControlClass AS _TrdCmplncLicControlClass ON _TrdCmplncLicControlClass.TrdCmplncLicenseUUID = Header.TrdCmplncLicenseUUID -- association [0..*]
LEFT OUTER JOIN I_TrdCmplncLicCtrlGrouping AS _TrdCmplncLicCtrlGrouping ON _TrdCmplncLicCtrlGrouping.TrdCmplncLicenseUUID = Header.TrdCmplncLicenseUUID -- association [0..*]
LEFT OUTER JOIN I_TrdCmplncLicCommodityCode AS _TrdCmplncLicCommodityCode ON _TrdCmplncLicCommodityCode.TrdCmplncLicenseUUID = Header.TrdCmplncLicenseUUID -- association [0..*]
LEFT OUTER JOIN I_TrdCmplncLicCountry AS _TrdCmplncLicCountry ON _TrdCmplncLicCountry.TrdCmplncLicenseUUID = Header.TrdCmplncLicenseUUID -- association [0..*]
LEFT OUTER JOIN I_TrdCmplncLicDocument AS _TrdCmplncLicDocument ON _TrdCmplncLicDocument.TrdCmplncLicenseUUID = Header.TrdCmplncLicenseUUID -- association [0..*]
LEFT OUTER JOIN I_TrdCmplncLicBusPart AS _TrdCmplncLicBusPart ON _TrdCmplncLicBusPart.TrdCmplncLicenseUUID = Header.TrdCmplncLicenseUUID -- association [0..*]
LEFT OUTER JOIN I_TrdCmplncLicCompanyCode AS _TrdCmplncLicCompanyCode ON _TrdCmplncLicCompanyCode.TrdCmplncLicenseUUID = Header.TrdCmplncLicenseUUID -- association [0..*]
LEFT OUTER JOIN I_TrdCmplncLicPlant AS _TrdCmplncLicPlant ON _TrdCmplncLicPlant.TrdCmplncLicenseUUID = Header.TrdCmplncLicenseUUID -- association [0..*]
LEFT OUTER JOIN I_TrdCmplncLicTariffNumber AS _TrdCmplncLicTariffNumber ON _TrdCmplncLicTariffNumber.TrdCmplncLicenseUUID = Header.TrdCmplncLicenseUUID -- association [0..*]
LEFT OUTER JOIN I_TrdCmplncLicType AS _TrdCmplncLicType ON LegalRegulation = _TrdCmplncLicType.LegalRegulation AND TrdCmplncLicenseType = _TrdCmplncLicType.TrdCmplncLicenseType -- 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