P_PlantPurgOrgByReference
Outline Agreement Purchasing Organization
P_PlantPurgOrgByReference is a Composite CDS View that provides data about "Outline Agreement Purchasing Organization" in SAP S/4HANA. It reads from 2 data sources (I_PlantPurchasingOrganization, I_PlantPurchasingOrganization) and exposes 9 fields with key fields Plant, ekorg, ekorg. Part of development package APPL_MM_PUR_SOS.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_PlantPurchasingOrganization | plantpurgorg | from |
| I_PlantPurchasingOrganization | plantpurgorg | union_all |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PPLANTPURORG | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view |
Fields (9)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Plant | I_PlantPurchasingOrganization | Plant | |
| KEY | ekorg | refpurgorg | ekorz | |
| IsRefOrg | ||||
| ekinf | refpurgorg | ekinf | ||
| Plant | ||||
| KEY | ekorg | I_PlantPurchasingOrganization | PurchasingOrganization | |
| IsRefOrg | ||||
| ekinf | ||||
| ekkon |
@AbapCatalog.sqlViewName: 'PPLANTPURORG'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.sizeCategory: #L
@VDM.viewType:#COMPOSITE
@VDM.private:true
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.dataClass: #MIXED
@AccessControl.personalData.blocking: #BLOCKED_DATA_EXCLUDED
define view P_PlantPurgOrgByReference as select distinct from P_ReferencePurgOrg as refpurgorg
left outer to one join I_PlantPurchasingOrganization as plantpurgorg on refpurgorg.ekorg = plantpurgorg.PurchasingOrganization
{
key plantpurgorg.Plant,
key refpurgorg.ekorz as ekorg,
cast ('X' as abap.char( 1 ) ) as IsRefOrg,
refpurgorg.ekinf,
refpurgorg.ekkon
}
union all
select from I_PlantPurchasingOrganization as plantpurgorg
{
key plantpurgorg.Plant,
key plantpurgorg.PurchasingOrganization as ekorg,
cast ('' as abap.char( 1 ) ) as IsRefOrg,
cast ('X' as abap.char( 1 ) ) as ekinf,
cast ('X' as abap.char( 1 ) ) as ekkon
}
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