P_CompanyCode_PurOrg

DDL: P_COMPANYCODE_PURORG SQL: PCOMCODEPURORG Type: view COMPOSITE

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)

SourceAliasJoin Type
I_CompanyCode I_CompanyCode cross
I_PurchasingOrganization I_PurchasingOrganization from
I_PurchasingOrganization I_PurchasingOrganization union_all

Annotations (10)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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 = ''