P_CompanyCode_PurOrg
Company Code and Purchase Org
P_CompanyCode_PurOrg is a Composite CDS View that provides data about "Company Code and Purchase Org" in SAP S/4HANA. It reads from 3 data sources (I_CompanyCode, I_PurchasingOrganization, I_PurchasingOrganization) and exposes 3 fields with key fields PurchasingOrganization, PurchasingOrganization, CompanyCode.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_CompanyCode | I_CompanyCode | cross |
| I_PurchasingOrganization | I_PurchasingOrganization | from |
| I_PurchasingOrganization | I_PurchasingOrganization | union_all |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PCOMCODEPURORG | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.buffering.status | #NOT_ALLOWED | view | |
| AbapCatalog.preserveKey | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.private | true | view | |
| EndUserText.label | Company Code and Purchase Org | view |
Fields (3)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchasingOrganization | PurchasingOrganization | ||
| KEY | PurchasingOrganization | |||
| KEY | CompanyCode | I_CompanyCode | CompanyCode |
@AbapCatalog.sqlViewName: 'PCOMCODEPURORG'
@ClientHandling.algorithm: #SESSION_VARIABLE
@Metadata.ignorePropagatedAnnotations: true
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.buffering.status: #NOT_ALLOWED
@AbapCatalog.preserveKey:true
@VDM.viewType: #COMPOSITE
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.private: true
@EndUserText.label: 'Company Code and Purchase Org'
define view P_CompanyCode_PurOrg
as select from I_PurchasingOrganization
{
key PurchasingOrganization,
key CompanyCode
}
where
CompanyCode <> ''
union all select from I_PurchasingOrganization
cross join I_CompanyCode
{
key I_PurchasingOrganization.PurchasingOrganization,
key I_CompanyCode.CompanyCode
}
where
I_PurchasingOrganization.CompanyCode = ''
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