I_PPS_PurchasingDocumentType
Purchasing Document Type
I_PPS_PurchasingDocumentType is a Basic CDS View that provides data about "Purchasing Document Type" in SAP S/4HANA. It reads from 1 data source (t161) and exposes 4 fields with key fields PurchasingDocumentCategory, PurchasingDocumentType. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| t161 | t161 | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_PurchasingObjectCategoryText | _DocCategoryText | $projection.PurchasingDocumentCategory = _DocCategoryText.PurchasingDocumentCategory |
| [0..*] | I_PurchasingDocumentTypeText | _DocTypeText | $projection.PurchasingDocumentCategory = _DocTypeText.PurchasingDocumentCategory and $projection.PurchasingDocumentType = _DocTypeText.PurchasingDocumentType |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Purchasing Document Type | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #BASIC | view |
Fields (4)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchasingDocumentCategory | bstyp | ||
| KEY | PurchasingDocumentType | bsart | ||
| PurchasingDocumentDescription | ||||
| PurchasingDocumentTypeName |
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Purchasing Document Type'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
serviceQuality: #A,
sizeCategory: #S,
dataClass: #MIXED
}
@VDM.viewType: #BASIC
//@JIRA-KEY S4PPS-11497
define view entity I_PPS_PurchasingDocumentType
as select from t161
association [0..*] to I_PurchasingObjectCategoryText as _DocCategoryText on $projection.PurchasingDocumentCategory = _DocCategoryText.PurchasingDocumentCategory
association [0..*] to I_PurchasingDocumentTypeText as _DocTypeText on $projection.PurchasingDocumentCategory = _DocTypeText.PurchasingDocumentCategory
and $projection.PurchasingDocumentType = _DocTypeText.PurchasingDocumentType
{
key bstyp as PurchasingDocumentCategory,
key bsart as PurchasingDocumentType,
_DocCategoryText[1: Language = $session.system_language].PurchasingDocumentCategoryName as PurchasingDocumentDescription,
_DocTypeText[1: Language = $session.system_language].PurchasingDocumentTypeName as PurchasingDocumentTypeName
}
where
pps_relevant = 'X'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PURCHASINGDOCUMENTTYPETEXT",
"I_PURCHASINGOBJECTCATEGORYTEXT",
"T161"
],
"ASSOCIATED":
[],
"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