P_CoCodePurchasingOrganization
P_CoCodePurchasingOrganization is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_SupplierCompany, I_SupplierPurchasingOrg) and exposes 3 fields with key fields Supplier, CompanyCode.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_SupplierCompany | _SupplierCompany | inner |
| I_SupplierPurchasingOrg | _SupplierPurchasingOrg | inner |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PCOCODEPURORG | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AbapCatalog.preserveKey | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (3)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Supplier | I_SupplierCompany | Supplier | |
| KEY | CompanyCode | I_SupplierCompany | CompanyCode | |
| PurchasingOrganization | _CoCodePurchasingOrg | PurchasingOrganization |
@AbapCatalog.sqlViewName: 'PCOCODEPURORG'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@AbapCatalog.preserveKey:true
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.personalData.blocking: #NOT_REQUIRED
@VDM.private: true
@VDM.viewType: #COMPOSITE
@ObjectModel: {
usageType.serviceQuality: #C,
usageType.sizeCategory: #S,
usageType.dataClass: #MIXED
}
define view P_CoCodePurchasingOrganization
as select distinct from I_PurchasingOrganization as _CoCodePurchasingOrg
inner join I_SupplierCompany as _SupplierCompany on _SupplierCompany.CompanyCode = _CoCodePurchasingOrg.CompanyCode
inner join I_SupplierPurchasingOrg as _SupplierPurchasingOrg on _SupplierPurchasingOrg.Supplier = _SupplierCompany.Supplier
and _SupplierPurchasingOrg.PurchasingOrganization = _CoCodePurchasingOrg.PurchasingOrganization
{
key _SupplierCompany.Supplier as Supplier,
key _SupplierCompany.CompanyCode as CompanyCode,
_CoCodePurchasingOrg.PurchasingOrganization as PurchasingOrganization
}
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