C_TrdCmplncDocItmLicAssgmt

DDL: C_TRDCMPLNCDOCITMLICASSGMT SQL: CTRDDOCITMLCASN Type: view CONSUMPTION

Trade Compliance Document Item License Assignment

C_TrdCmplncDocItmLicAssgmt (Consumption)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

International Trade

C_TrdCmplncDocItmLicAssgmt is a Consumption CDS View that provides data about "Trade Compliance Document Item License Assignment" in SAP S/4HANA. It reads from 1 data source (I_TrdCmplncDocItmLicAssgmt) and exposes 18 fields with key fields TrdCmplncDocItemUUID, TrdCmplncLicenseUUID. It has 2 associations to related views.

SAP Help Documentation

CategoryTrade Compliance
StatusTrade compliance license status, for example: active, expired
Purpose
This CDS view is used to get the Trade Compliance license assignment for a document. This CDS view provides the data to answer the following business questions: Which licenses are assigned to the specific document item? Which document items are the specific license assigned to? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: ITM_BUKRS (Authorization for Company Code) ITM_LMGM (Authorization for Legal Regulation / License Type)

Structure
Fields used for filtering The main filters are as follows: ReferenceDocument is used to specify the document number. ReferenceDocumentItem is used to specify the document item number. TrdCmplncLicense is used to specify the internal license number used in trade compliance, it is generated by system. ExtTrdCmplncLicense is used to specify the official license number. Further important fields Important fields in this view include the following: Field Name Description ReferenceDocumentCategory Document category to identify the type of document, for example: 001 for purchase order, 114 for sales order CompanyCode: company code of current document LegalRegulation Legal regulation used for trade compliance checks TrdCmplncLicenseType License type of a legal regulation used in trade compliance checks TrdCmplncLicenseOwner Trade compliance license owner, usually it is the company code who owns this license TrdCmplncLicenseCategory Trade compliance license category, for example: individual license or collective license TrdCmplncLicenseStatus Trade compliance license status, for example: active, expired ValidityStartDate Trade compliance license validity start date ValidityEndDate Trade compliance license validity to date

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessInternational Trade
Application ComponentFT-ITR-TRC
CapabilitiesData Source for Defining CDS Entities, Association Target for Defining CDS Entities, Data Source in SQL Select
PackageInternational Trade for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view is used to get the Trade Compliance license assignment for a document.</p> This CDS view provides the data to answer the following business questions:<ul> <li><p>Which licenses are assigned to the specific document item?</p></li> <li><p>Which document items are the specific license assigned to?</p></li> </ul> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
I_TrdCmplncDocItmLicAssgmt Item from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_TrdCmplncDocItemBasic _DocItem $projection.TrdCmplncDocItemUUID = _DocItem.TrdCmplncDocItemUUID
[0..1] I_TrdCmplncLicense _License $projection.TrdCmplncLicenseUUID = _License.TrdCmplncLicenseUUID

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName CTRDDOCITMLCASN view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
EndUserText.label Trade Compliance Document Item License Assignment view

Fields (18)

KeyFieldSource TableSource FieldDescription
KEY TrdCmplncDocItemUUID I_TrdCmplncDocItmLicAssgmt TrdCmplncDocItemUUID NodeID
KEY TrdCmplncLicenseUUID TrdCmplncLicenseUUID Primary Key as GUID in 'RAW' Format
ReferenceDocumentCategory _DocItem ReferenceDocumentCategory Document Category
ReferenceDocument _DocItem ReferenceDocument Reference Document
ReferenceDocumentItem _DocItem ReferenceDocumentItem Reference item
CompanyCode _DocItem CompanyCode Receiver Company Code
LegalRegulation _License LegalRegulation Legal Regulation
TrdCmplncLicenseType _License TrdCmplncLicenseType License Type
TrdCmplncLicenseOwner _License TrdCmplncLicenseOwner License Owner
TrdCmplncLicenseCategory _License TrdCmplncLicenseCategory License Category
TrdCmplncLicense _License TrdCmplncLicense License Number
ExtTrdCmplncLicense _License ExtTrdCmplncLicense Official License Number
TrdCmplncLicenseRemark _License TrdCmplncLicenseRemark License Master Remark
TrdCmplncLicenseStatus _License TrdCmplncLicenseStatus Status for Licenses
ValidityStartDate _License ValidityStartDate Validity Start Date
ValidityEndDate _License ValidityEndDate Valid To
_DocItem _DocItem
_License _License

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_TrdCmplncDocItmLicAssgmt.
-- 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: CTRDDOCITMLCASN

CREATE VIEW C_TrdCmplncDocItmLicAssgmt AS
SELECT
  Item.TrdCmplncDocItemUUID AS TrdCmplncDocItemUUID,
  TrdCmplncLicenseUUID,
  _DocItem.ReferenceDocumentCategory AS ReferenceDocumentCategory,
  _DocItem.ReferenceDocument AS ReferenceDocument,
  _DocItem.ReferenceDocumentItem AS ReferenceDocumentItem,
  _DocItem.CompanyCode AS CompanyCode,
  _License.LegalRegulation AS LegalRegulation,
  _License.TrdCmplncLicenseType AS TrdCmplncLicenseType,
  _License.TrdCmplncLicenseOwner AS TrdCmplncLicenseOwner,
  _License.TrdCmplncLicenseCategory AS TrdCmplncLicenseCategory,
  _License.TrdCmplncLicense AS TrdCmplncLicense,
  _License.ExtTrdCmplncLicense AS ExtTrdCmplncLicense,
  _License.TrdCmplncLicenseRemark AS TrdCmplncLicenseRemark,
  _License.TrdCmplncLicenseStatus AS TrdCmplncLicenseStatus,
  _License.ValidityStartDate AS ValidityStartDate,
  _License.ValidityEndDate AS ValidityEndDate
FROM I_TrdCmplncDocItmLicAssgmt AS Item
LEFT OUTER JOIN I_TrdCmplncDocItemBasic AS _DocItem ON TrdCmplncDocItemUUID = _DocItem.TrdCmplncDocItemUUID  -- association [0..1]
LEFT OUTER JOIN I_TrdCmplncLicense AS _License ON TrdCmplncLicenseUUID = _License.TrdCmplncLicenseUUID  -- association [0..1]
;