I_PurchasingDocumentTypeText
Purchasing Document Type - Text
I_PurchasingDocumentTypeText is a Basic CDS View that provides data about "Purchasing Document Type - Text" in SAP S/4HANA. It reads from 1 data source (t161t) and exposes 7 fields with key fields PurchasingDocumentType, PurchasingDocumentCategory, Language. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| t161t | t161t | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_PurchasingDocumentCategory | _PurchasingDocumentCategory | $projection.PurchasingDocumentCategory = _PurchasingDocumentCategory.PurchasingDocumentCategory |
| [0..1] | I_Language | _Language | $projection.Language = _Language.Language |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ObjectModel.dataCategory | #TEXT | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.representativeKey | PurchasingDocumentType | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| AbapCatalog.sqlViewName | IMMPURGDOCTYPTXT | view | |
| EndUserText.label | Purchasing Document Type - Text | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #BASIC | view | |
| Search.searchable | true | view | |
| Analytics.dataExtraction.enabled | true | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (7)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchasingDocumentType | bsart | ||
| KEY | PurchasingDocumentCategory | bstyp | ||
| KEY | Language | spras | ||
| PurchasingDocumentTypeName | batxt | |||
| _PurchasingDocumentType | _PurchasingDocumentType | |||
| _PurchasingDocumentCategory | _PurchasingDocumentCategory | |||
| _Language | _Language |
@AbapCatalog.preserveKey: true
@AbapCatalog.compiler.compareFilter: true
@ObjectModel.dataCategory: #TEXT
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.representativeKey: 'PurchasingDocumentType'
@ObjectModel.usageType.dataClass: #CUSTOMIZING
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory: #S
@ObjectModel.supportedCapabilities: [ #SEARCHABLE_ENTITY, #LANGUAGE_DEPENDENT_TEXT, #SQL_DATA_SOURCE, #CDS_MODELING_DATA_SOURCE, #CDS_MODELING_ASSOCIATION_TARGET ]
@AbapCatalog.sqlViewName: 'IMMPURGDOCTYPTXT'
@EndUserText.label: 'Purchasing Document Type - Text'
@AccessControl.authorizationCheck:#NOT_REQUIRED
@VDM.viewType : #BASIC
@Search.searchable: true
@Analytics.dataExtraction.enabled: true
@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API
@Metadata.ignorePropagatedAnnotations:true
define view I_PurchasingDocumentTypeText
as select from t161t
association to parent I_PurchasingDocumentType as _PurchasingDocumentType on $projection.PurchasingDocumentCategory = _PurchasingDocumentType.PurchasingDocumentCategory
and $projection.PurchasingDocumentType = _PurchasingDocumentType.PurchasingDocumentType
association [1..1] to I_PurchasingDocumentCategory as _PurchasingDocumentCategory on $projection.PurchasingDocumentCategory = _PurchasingDocumentCategory.PurchasingDocumentCategory
association [0..1] to I_Language as _Language on $projection.Language = _Language.Language
{
@ObjectModel.foreignKey.association: '_PurchasingDocumentType'
@ObjectModel.text.element: ['PurchasingDocumentTypeName']
key bsart as PurchasingDocumentType,
@ObjectModel.foreignKey.association: '_PurchasingDocumentCategory'
key bstyp as PurchasingDocumentCategory,
@ObjectModel.foreignKey.association: '_Language'
@Semantics.language: true
key spras as Language,
@Search: { defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 0.7 }
@Semantics.text: true
batxt as PurchasingDocumentTypeName,
_PurchasingDocumentType,
_PurchasingDocumentCategory,
_Language
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"T161T"
],
"ASSOCIATED":
[
"I_LANGUAGE",
"I_PURCHASINGDOCUMENTCATEGORY",
"I_PURCHASINGDOCUMENTTYPE"
],
"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