R_TrdgDocType
Trading Document Type
R_TrdgDocType is a Basic CDS View (Dimension) that provides data about "Trading Document Type" in SAP S/4HANA. It reads from 1 data source (tb2be) and exposes 10 fields with key field TradingDocumentType. It has 3 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| tb2be | tb2be | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | R_TrdgDocTypeText | _DocTypeText | $projection.TradingDocumentType = _DocTypeText.TradingDocumentType |
| [0..*] | R_TrdgDocCtrlGrpPurgText | _CtrlGrpPurgText | $projection.TrdgDocCtrlGrpPurg = _CtrlGrpPurgText.TrdgDocCtrlGrpPurg |
| [0..*] | R_TrdgDocCtrlGrpSlsText | _CtrlGrpSlsText | $projection.TrdgDocCtrlGrpSls = _CtrlGrpSlsText.TrdgDocCtrlGrpSls |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| ObjectModel.dataCategory | #VALUE_HELP | view | |
| ObjectModel.representativeKey | TradingDocumentType | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.dataExtraction.enabled | false | view | |
| Analytics.internalName | #LOCAL | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| EndUserText.label | Trading Document Type | view |
Fields (10)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | TradingDocumentType | |||
| TrdgDocCtrlGrpPurg | tdtpv | |||
| TrdgDocCtrlGrpSls | tdtpc | |||
| TrdgDocCategory | tccat | |||
| TrdgDocBusProcessCategory | ||||
| TrdgDocPurpose | purpose | |||
| TrdgDocSglOrganizationalData | single_org_data | |||
| _DocTypeText | _DocTypeText | |||
| _CtrlGrpPurgText | _CtrlGrpPurgText | |||
| _CtrlGrpSlsText | _CtrlGrpSlsText |
@VDM: {
viewType: #BASIC,
lifecycle.contract.type: #SAP_INTERNAL_API
}
@ObjectModel: {
dataCategory: #VALUE_HELP,
representativeKey: 'TradingDocumentType',
usageType: {
dataClass: #CUSTOMIZING,
serviceQuality: #B,
sizeCategory: #S
}
}
@AccessControl: {
authorizationCheck: #NOT_REQUIRED
}
@Analytics: {
dataCategory: #DIMENSION,
dataExtraction.enabled: false,
internalName: #LOCAL
}
@Metadata.ignorePropagatedAnnotations: true
@EndUserText.label: 'Trading Document Type'
define view entity R_TrdgDocType
as select from tb2be
association [0..*] to R_TrdgDocTypeText as _DocTypeText on $projection.TradingDocumentType = _DocTypeText.TradingDocumentType
association [0..*] to R_TrdgDocCtrlGrpPurgText as _CtrlGrpPurgText on $projection.TrdgDocCtrlGrpPurg = _CtrlGrpPurgText.TrdgDocCtrlGrpPurg
association [0..*] to R_TrdgDocCtrlGrpSlsText as _CtrlGrpSlsText on $projection.TrdgDocCtrlGrpSls = _CtrlGrpSlsText.TrdgDocCtrlGrpSls
{
@ObjectModel.text.association: '_DocTypeText'
key cast (tctyp as wb2_ref_doc_type preserving type ) as TradingDocumentType,
@ObjectModel.text.association: '_CtrlGrpPurgText'
tdtpv as TrdgDocCtrlGrpPurg,
@ObjectModel.text.association: '_CtrlGrpSlsText'
tdtpc as TrdgDocCtrlGrpSls,
tccat as TrdgDocCategory,
cast( use_case as wb2_bus_proc_cat preserving type ) as TrdgDocBusProcessCategory,
purpose as TrdgDocPurpose,
single_org_data as TrdgDocSglOrganizationalData,
_DocTypeText,
_CtrlGrpPurgText,
_CtrlGrpSlsText
};
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"TB2BE"
],
"ASSOCIATED":
[
"R_TRDGDOCCTRLGRPPURGTEXT",
"R_TRDGDOCCTRLGRPSLSTEXT",
"R_TRDGDOCTYPETEXT"
],
"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