P_CoCodePurchasingOrganization

DDL: P_COCODEPURCHASINGORGANIZATION SQL: PCOCODEPURORG Type: view COMPOSITE

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)

SourceAliasJoin Type
I_SupplierCompany _SupplierCompany inner
I_SupplierPurchasingOrg _SupplierPurchasingOrg inner

Annotations (11)

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

KeyFieldSource TableSource FieldDescription
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
}