I_PurContractClassification
Purchase Contract Classification
I_PurContractClassification is a Basic CDS View (Dimension) that provides data about "Purchase Contract Classification" in SAP S/4HANA. It reads from 2 data sources (t161, t162) and exposes 2 fields with key field PurchasingDocumentType.
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.preserveKey | true | view | |
| ObjectModel.representativeKey | PurchasingDocumentType | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| AbapCatalog.sqlViewName | IPCCLASSFCTN | view | |
| VDM.viewType | #BASIC | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Purchase Contract Classification | view |
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.preserveKey:true
@ObjectModel.representativeKey: 'PurchasingDocumentType'
@ObjectModel.usageType.dataClass: #CUSTOMIZING
@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.sizeCategory: #S
@AbapCatalog.sqlViewName: 'IPCCLASSFCTN'
@VDM.viewType: #BASIC
@Analytics.dataCategory: #DIMENSION
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Purchase Contract Classification'
define view I_PurContractClassification
as select from t161
left outer join t162
on t161.brefn = t162.flref
{
/* keys */
key t161.bsart as PurchasingDocumentType,
t161.brefn as PurgDocFieldSelControlKey,
cast(case substring(faus1,15,1) //Amount Type(WK)
when '+' then '0'
else case substring(faus1,51,1) //Quantity Type(MK)
when '+' then '1'
else '2'
end
end as contracttype_d ) as PurchaseContractClassification
}
where t161.bstyp = 'K'
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