C_SalesDocumentUserVH
Sales Document User
C_SalesDocumentUserVH is a Consumption CDS View that provides data about "Sales Document User" 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.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_User | I_User | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_SalesDocumentBasic | _SalesDocument | UserID = _SalesDocument.CreatedByUser or UserID = _SalesDocument.LastChangedByUser |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CSDUSERVH | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ClientDependent | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| EndUserText.label | Sales Document User | view | |
| Search.searchable | true | view | |
| Consumption.ranked | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| UI.headerInfo.typeName | Sales Document User | view | |
| UI.headerInfo.typeNamePlural | Sales Document Users | view | |
| ObjectModel.representativeKey | UserID | view |
Fields (3)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | UserID | UserID | ||
| UserDescription | UserDescription | |||
| _SalesDocument | _SalesDocument |
@AbapCatalog: {
sqlViewName: 'CSDUSERVH',
compiler.compareFilter: true
}
@ClientDependent: true
@AccessControl:{
authorizationCheck: #CHECK,
personalData.blocking: #BLOCKED_DATA_EXCLUDED
}
@EndUserText.label: 'Sales Document User'
@Search.searchable: true
@Consumption.ranked: true
@VDM: {
viewType: #CONSUMPTION
}
@ObjectModel:{
usageType:{
dataClass: #TRANSACTIONAL,
serviceQuality: #A,
sizeCategory: #S
}
}
@UI.headerInfo:{
typeName: 'Sales Document User',
typeNamePlural: 'Sales Document Users'
}
@ObjectModel.representativeKey: 'UserID'
@UI.presentationVariant:{
sortOrder: [
{ by: 'UserID', direction: #ASC },
{ by: 'UserDescription', direction: #ASC }]
}
define view C_SalesDocumentUserVH
as select from I_User
association [0..*] to I_SalesDocumentBasic as _SalesDocument on UserID = _SalesDocument.CreatedByUser or
UserID = _SalesDocument.LastChangedByUser
{
@ObjectModel.text.element: [ 'UserDescription' ]
@Search: {
defaultSearchElement: true,
ranking: #HIGH,
fuzzinessThreshold: 0.9
}
key UserID,
@Semantics.text: true
@Search: {
defaultSearchElement: true,
ranking: #LOW,
fuzzinessThreshold: 0.9
}
UserDescription,
// For Access control
_SalesDocument
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_USER"
],
"ASSOCIATED":
[
"I_SALESDOCUMENTBASIC"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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