I_TrdgContrUserVH
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
| Category | Global 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.
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.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_User | I_User | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_TrdgContr | _TrdgContr | $projection.UserID = _TrdgContr.CreatedByUser or $projection.UserID = _TrdgContr.LastChangedByUser |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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..*]
;
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