I_TrdgContrUserVH

DDL: I_TRDGCONTRUSERVH Type: view_entity BASIC

Created By

I_TrdgContrUserVH is a Basic CDS View that provides data about "Created By" in SAP S/4HANA. It reads from 1 data source (I_User) and exposes 3 fields with key field UserID. It has 1 association to related views.

SAP Help Documentation

CategoryGlobal Trade Management
Purpose
This view provides value help for UserID . This view should be used for value help purposes only. If you intend to select the entire business data, use the view I_User instead. This CDS view provides the data to answer the following business questions: Which users have created a trading contract? Which users have last changed a trading contract? What are all the available options for the Created By filter in the Manage Trading Contracts app? What are all the available options for the Last Changed By filter in the Manage Trading Contracts app? 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: F_LFA1_BEK (Vendor: Account Authorization) V_KNA1_BRG (Customer: Account Authorization for Sales Areas) W_WBHK_ORG (Trading Contract: Authorization for Organizational Data) W_WBHK_TCT (Trading Contract: Authorization for Trading Contract Type)

Structure
Important Fields Important fields in this view include the following: Field Name Description UserID User ID

Constraints
This CDS view only provides data about users who have created or last changed a trading contract. The view User ( I_User ) provides data about all users.

View on SAP Help Portal →

Data Sources (1)

SourceAliasJoin Type
I_User I_User from

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_TrdgContr _TrdgContr $projection.UserID = _TrdgContr.CreatedByUser or $projection.UserID = _TrdgContr.LastChangedByUser

Annotations (12)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Created By view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
ObjectModel.representativeKey UserID view
ObjectModel.dataCategory #VALUE_HELP view
ObjectModel.modelingPattern #VALUE_HELP_PROVIDER view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #S view
Metadata.ignorePropagatedAnnotations true view
Search.searchable true view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY UserID UserID User Name
UserDescription UserDescription Full Name
_TrdgContr _TrdgContr

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_TrdgContrUserVH.
-- 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_TrdgContrUserVH AS
SELECT
  UserID,
  UserDescription
FROM I_User
LEFT OUTER JOIN I_TrdgContr AS _TrdgContr ON UserID = _TrdgContr.CreatedByUser OR UserID = _TrdgContr.LastChangedByUser  -- association [0..*]
;