I_TrdCmplncLicHeader

DDL: I_TRDCMPLNCLICHEADER SQL: ITRDCMPLHDR Type: view BASIC

License Header

I_TrdCmplncLicHeader is a Basic CDS View that provides data about "License Header" in SAP S/4HANA. It reads from 1 data source (P_TrdCmplncLicAssgmtExisting) and exposes 56 fields with key field TrdCmplncLicenseUUID. It has 19 associations to related views.

Data Sources (1)

SourceAliasJoin Type
P_TrdCmplncLicAssgmtExisting _TrdCmplncDocLicAssgmt left_outer

Associations (19)

CardinalityTargetAliasCondition
[0..1] I_CompanyCode _TrdCmplncLicenseOwner $projection.TrdCmplncLicenseOwner = _TrdCmplncLicenseOwner.CompanyCode
[0..1] I_LegalControlLegalRegulation _LegalRegulation $projection.LegalRegulation = _LegalRegulation.LegalRegulation
[0..*] I_LegalRegulationText _LegalRegulationText $projection.LegalRegulation = _LegalRegulationText.LegalRegulation
[0..1] I_TrdCmplncLicType _TrdCmplncLicType $projection.LegalRegulation = _TrdCmplncLicType.LegalRegulation and $projection.TrdCmplncLicenseType = _TrdCmplncLicType.TrdCmplncLicenseType
[0..*] I_TrdCmplncLicTypeText _TrdCmplncLicTypeText $projection.LegalRegulation = _TrdCmplncLicTypeText.LegalRegulation and $projection.TrdCmplncLicenseType = _TrdCmplncLicTypeText.TrdCmplncLicenseType
[0..1] I_TrdCmplncLicStatus _TrdCmplncLicStatus $projection.TrdCmplncLicenseStatus = _TrdCmplncLicStatus.TrdCmplncLicenseStatus
[0..*] I_TrdCmplncLicStatusText _TrdCmplncLicStatusText $projection.TrdCmplncLicenseStatus = _TrdCmplncLicStatusText.TrdCmplncLicenseStatus
[0..1] I_TrdCmplncLicCategory _TrdCmplncLicCategory $projection.TrdCmplncLicenseCategory = _TrdCmplncLicCategory.TrdCmplncLicenseCategory
[0..*] I_TrdCmplncLicCategoryText _TrdCmplncLicCategoryText $projection.TrdCmplncLicenseCategory = _TrdCmplncLicCategoryText.TrdCmplncLicenseCategory
[0..1] I_User _CreatedByUser $projection.CreatedByUser = _CreatedByUser.UserID
[0..1] I_User _LastChangedByUser $projection.LastChangedByUser = _LastChangedByUser.UserID
[0..1] I_Currency _Currency $projection.TrdCmplncLicenseDeprCurrency = _Currency.Currency
[0..1] I_UnitOfMeasure _UnitOfMeasure $projection.TrdCmplncLicenseDeprUnit = _UnitOfMeasure.UnitOfMeasure
[0..1] I_TrdCmplncDocLicIsAssgd _TrdCmplncDocLicIsAssgd _TrdCmplncDocLicIsAssgd.TrdCmplncDocLicIsAssgd = $projection.TrdCmplncDocLicIsAssgd
[0..*] I_TrdCmplncDocLicIsAssgdText _TrdCmplncDocLicIsAssgdText _TrdCmplncDocLicIsAssgdText.TrdCmplncDocLicIsAssgd = $projection.TrdCmplncDocLicIsAssgd
[0..1] I_TrdCmplncIsMilitarySctr _TrdCmplncIsMilitarySctr _TrdCmplncIsMilitarySctr.TrdCmplncIsMilitarySctr = $projection.TrdCmplncIsMilitarySctr
[0..*] I_TrdCmplncIsMilitarySctrText _TrdCmplncIsMilitarySctrText _TrdCmplncIsMilitarySctrText.TrdCmplncIsMilitarySctr = $projection.TrdCmplncIsMilitarySctr
[0..1] I_TrdCmplncIsNuclearSctr _TrdCmplncIsNuclearSctr _TrdCmplncIsNuclearSctr.TrdCmplncIsNuclearSctr = $projection.TrdCmplncIsNuclearSctr
[0..*] I_TrdCmplncIsNuclearSctrText _TrdCmplncIsNuclearSctrText _TrdCmplncIsNuclearSctrText.TrdCmplncIsNuclearSctr = $projection.TrdCmplncIsNuclearSctr

Annotations (11)

NameValueLevelField
EndUserText.label License Header view
VDM.viewType #BASIC view
AbapCatalog.sqlViewName ITRDCMPLHDR view
AccessControl.authorizationCheck #CHECK view
ObjectModel.representativeKey TrdCmplncLicenseUUID view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory M view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #MIXED view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view

Fields (56)

KeyFieldSource TableSource FieldDescription
KEY TrdCmplncLicenseUUID db_key UUID
LegalRegulation lgreg Legal Regulation
TrdCmplncLicenseType licty License Type
TrdCmplncLicense licno License Number
ExtTrdCmplncLicense extno Official License No.
TrdCmplncLicenseOwner licow License Owner
TrdCmplncLicenseOwnerName _TrdCmplncLicenseOwner CompanyCodeName Company Name
TrdCmplncLicenseStatus custa Status
TrdCmplncLicenseCategory licat License Category
ValidityStartDate datab Validity period
ValidityEndDate datbi Validity period
TrdCmplncLicenseRemark lmrmk Remark
TrdCmplncIsMilitarySctr msval Military Sector
TrdCmplncIsNuclearSctr nuval Nuclear Sector
TrdCmplncLicenseMaxAmount mxamt Maximum Amount
TrdCmplncLicenseDeprCurrency liccu Currency
TrdCmplncLicenseAmtExcdPct vprza Exceeded Value (%)
TrdCmplncLicenseMaxQuantity mxqua Maximum Quantity
TrdCmplncLicenseDeprUnit licum Int. Unit Meas.
TrdCmplncLicenseQtyExcdPct qprza Exceeded Quant. (%)
CreatedByUser User Name
CreationDateTime Time Stamp
LastChangedByUser User Name
LastChangeDateTime Time Stamp
TrdCmplncLicenseAmtAssgmtLvl mxaml Amount Level
TrdCmplncLicenseQtyAssgmtLvl mxqul Quantity Level
TrdCmplncLicQtyUpdateBasis qubas Base
TrdCmplncLicenseHasProduct matsp Product
TrdCmplncLicenseHasCtrlCl cclsp Control Class
TrdCmplncLicenseHasCtrlGrpg cogsp Control Grouping
TrdCmplncLicenseHasCmmdtyCode stasp Commodity Code
TrdCmplncLicenseHasCountry cousp Country/Region
TrdCmplncLicenseHasDocument docsp Document Number
TrdCmplncLicenseHasBP parsp Partner
TrdCmplncLicenseHasCompanyCode ccosp Company Code
TrdCmplncLicenseHasPlant pltsp Plant
TrdCmplncLicenseHasTariffNo tnosp Tariff Number
_LegalRegulation _LegalRegulation
_LegalRegulationText _LegalRegulationText
_TrdCmplncLicType _TrdCmplncLicType
_TrdCmplncLicTypeText _TrdCmplncLicTypeText
_TrdCmplncLicStatus _TrdCmplncLicStatus
_TrdCmplncLicStatusText _TrdCmplncLicStatusText
_TrdCmplncLicCategory _TrdCmplncLicCategory
_TrdCmplncLicCategoryText _TrdCmplncLicCategoryText
_CreatedByUser _CreatedByUser
_LastChangedByUser _LastChangedByUser
_TrdCmplncLicenseOwner _TrdCmplncLicenseOwner
_Currency _Currency
_UnitOfMeasure _UnitOfMeasure
_TrdCmplncDocLicIsAssgd _TrdCmplncDocLicIsAssgd
_TrdCmplncDocLicIsAssgdText _TrdCmplncDocLicIsAssgdText
_TrdCmplncIsMilitarySctr _TrdCmplncIsMilitarySctr
_TrdCmplncIsMilitarySctrText _TrdCmplncIsMilitarySctrText
_TrdCmplncIsNuclearSctr _TrdCmplncIsNuclearSctr
_TrdCmplncIsNuclearSctrText _TrdCmplncIsNuclearSctrText

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_TrdCmplncLicHeader.
-- 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: ITRDCMPLHDR

CREATE VIEW I_TrdCmplncLicHeader AS
SELECT
  db_key AS TrdCmplncLicenseUUID,
  lgreg AS LegalRegulation,
  licty AS TrdCmplncLicenseType,
  licno AS TrdCmplncLicense,
  extno AS ExtTrdCmplncLicense,
  licow AS TrdCmplncLicenseOwner,
  _TrdCmplncLicenseOwner.CompanyCodeName AS TrdCmplncLicenseOwnerName,
  custa AS TrdCmplncLicenseStatus,
  licat AS TrdCmplncLicenseCategory,
  datab AS ValidityStartDate,
  datbi AS ValidityEndDate,
  lmrmk AS TrdCmplncLicenseRemark,
  msval AS TrdCmplncIsMilitarySctr,
  nuval AS TrdCmplncIsNuclearSctr,
  mxamt AS TrdCmplncLicenseMaxAmount,
  liccu AS TrdCmplncLicenseDeprCurrency,
  vprza AS TrdCmplncLicenseAmtExcdPct,
  mxqua AS TrdCmplncLicenseMaxQuantity,
  licum AS TrdCmplncLicenseDeprUnit,
  qprza AS TrdCmplncLicenseQtyExcdPct,
  cast ( crea_uname as /sapsll/ernam_itr ) AS CreatedByUser,
  cast (crea_date_time as sll_creadatetime ) AS CreationDateTime,
  cast ( lchg_uname as /sapsll/aenam_itr ) AS LastChangedByUser,
  cast (lchg_date_time as sll_lchgdatetime) AS LastChangeDateTime,
  mxaml AS TrdCmplncLicenseAmtAssgmtLvl,
  mxqul AS TrdCmplncLicenseQtyAssgmtLvl,
  qubas AS TrdCmplncLicQtyUpdateBasis,
  matsp AS TrdCmplncLicenseHasProduct,
  cclsp AS TrdCmplncLicenseHasCtrlCl,
  cogsp AS TrdCmplncLicenseHasCtrlGrpg,
  stasp AS TrdCmplncLicenseHasCmmdtyCode,
  cousp AS TrdCmplncLicenseHasCountry,
  docsp AS TrdCmplncLicenseHasDocument,
  parsp AS TrdCmplncLicenseHasBP,
  ccosp AS TrdCmplncLicenseHasCompanyCode,
  pltsp AS TrdCmplncLicenseHasPlant,
  tnosp AS TrdCmplncLicenseHasTariffNo
LEFT OUTER JOIN P_TrdCmplncLicAssgmtExisting AS _TrdCmplncDocLicAssgmt ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CompanyCode AS _TrdCmplncLicenseOwner ON TrdCmplncLicenseOwner = _TrdCmplncLicenseOwner.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_LegalControlLegalRegulation AS _LegalRegulation ON LegalRegulation = _LegalRegulation.LegalRegulation  -- association [0..1]
LEFT OUTER JOIN I_LegalRegulationText AS _LegalRegulationText ON LegalRegulation = _LegalRegulationText.LegalRegulation  -- association [0..*]
LEFT OUTER JOIN I_TrdCmplncLicType AS _TrdCmplncLicType ON LegalRegulation = _TrdCmplncLicType.LegalRegulation AND TrdCmplncLicenseType = _TrdCmplncLicType.TrdCmplncLicenseType  -- association [0..1]
LEFT OUTER JOIN I_TrdCmplncLicTypeText AS _TrdCmplncLicTypeText ON LegalRegulation = _TrdCmplncLicTypeText.LegalRegulation AND TrdCmplncLicenseType = _TrdCmplncLicTypeText.TrdCmplncLicenseType  -- association [0..*]
LEFT OUTER JOIN I_TrdCmplncLicStatus AS _TrdCmplncLicStatus ON TrdCmplncLicenseStatus = _TrdCmplncLicStatus.TrdCmplncLicenseStatus  -- association [0..1]
LEFT OUTER JOIN I_TrdCmplncLicStatusText AS _TrdCmplncLicStatusText ON TrdCmplncLicenseStatus = _TrdCmplncLicStatusText.TrdCmplncLicenseStatus  -- association [0..*]
LEFT OUTER JOIN I_TrdCmplncLicCategory AS _TrdCmplncLicCategory ON TrdCmplncLicenseCategory = _TrdCmplncLicCategory.TrdCmplncLicenseCategory  -- association [0..1]
LEFT OUTER JOIN I_TrdCmplncLicCategoryText AS _TrdCmplncLicCategoryText ON TrdCmplncLicenseCategory = _TrdCmplncLicCategoryText.TrdCmplncLicenseCategory  -- association [0..*]
LEFT OUTER JOIN I_User AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID  -- association [0..1]
LEFT OUTER JOIN I_User AS _LastChangedByUser ON LastChangedByUser = _LastChangedByUser.UserID  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _Currency ON TrdCmplncLicenseDeprCurrency = _Currency.Currency  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitOfMeasure ON TrdCmplncLicenseDeprUnit = _UnitOfMeasure.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_TrdCmplncDocLicIsAssgd AS _TrdCmplncDocLicIsAssgd ON _TrdCmplncDocLicIsAssgd.TrdCmplncDocLicIsAssgd = TrdCmplncDocLicIsAssgd  -- association [0..1]
LEFT OUTER JOIN I_TrdCmplncDocLicIsAssgdText AS _TrdCmplncDocLicIsAssgdText ON _TrdCmplncDocLicIsAssgdText.TrdCmplncDocLicIsAssgd = TrdCmplncDocLicIsAssgd  -- association [0..*]
LEFT OUTER JOIN I_TrdCmplncIsMilitarySctr AS _TrdCmplncIsMilitarySctr ON _TrdCmplncIsMilitarySctr.TrdCmplncIsMilitarySctr = TrdCmplncIsMilitarySctr  -- association [0..1]
LEFT OUTER JOIN I_TrdCmplncIsMilitarySctrText AS _TrdCmplncIsMilitarySctrText ON _TrdCmplncIsMilitarySctrText.TrdCmplncIsMilitarySctr = TrdCmplncIsMilitarySctr  -- association [0..*]
LEFT OUTER JOIN I_TrdCmplncIsNuclearSctr AS _TrdCmplncIsNuclearSctr ON _TrdCmplncIsNuclearSctr.TrdCmplncIsNuclearSctr = TrdCmplncIsNuclearSctr  -- association [0..1]
LEFT OUTER JOIN I_TrdCmplncIsNuclearSctrText AS _TrdCmplncIsNuclearSctrText ON _TrdCmplncIsNuclearSctrText.TrdCmplncIsNuclearSctr = TrdCmplncIsNuclearSctr  -- association [0..*]
;