P_SuplrCoCodePurgOrganization
P_SuplrCoCodePurgOrganization is a Composite CDS View in SAP S/4HANA. It reads from 10 data sources and exposes 37 fields with key fields Supplier, CompanyCode, PurchasingOrganization, CompanyCode, PurchasingOrganization. It has 1 association to related views.
Data Sources (10)
| Source | Alias | Join Type |
|---|---|---|
| P_PlntCompanyCodePurchasingOrg | _PlantCoCode | inner |
| I_PurchasingOrganization | _PurchasingOrgWithCoCode | inner |
| I_PurchasingOrganization | _PurchasingOrgWithCoCode | inner |
| I_PurchasingOrganization | _PurchasingOrgWithCoCode | union_all |
| I_SupplierCompany | _SupplierCompany | inner |
| I_SupplierCompany | _SupplierCompany | inner |
| I_SupplierCompany | _SupplierCompany | union_all |
| I_SupplierPurchasingOrg | _SupplierPurchasingOrg | from |
| I_SupplierPurchasingOrg | _SupplierPurchasingOrg | inner |
| I_SupplierPurchasingOrg | _SupplierPurchasingOrg | inner |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | P_PlntCompanyCodePurchasingOrg | _PlantCoCode | _PlantCoCode.PurchasingOrganization = _SupplierPurchasingOrg.PurchasingOrganization |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.sqlViewName | PSUPPCOCOPUOR | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (37)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Supplier | I_SupplierPurchasingOrg | Supplier | |
| KEY | CompanyCode | I_SupplierCompany | CompanyCode | |
| KEY | PurchasingOrganization | I_SupplierPurchasingOrg | PurchasingOrganization | |
| PurOrdAutoGenerationIsAllowed | I_SupplierPurchasingOrg | PurOrdAutoGenerationIsAllowed | ||
| PurchasingGroup | I_SupplierPurchasingOrg | PurchasingGroup | ||
| SupplierPurgOrgPaymentTerms | ||||
| PurchasingIsBlockedForSupplier | I_SupplierPurchasingOrg | PurchasingIsBlockedForSupplier | ||
| SuplrIsDeltdPurgOrg | ||||
| InvoiceIsGoodsReceiptBased | I_SupplierPurchasingOrg | InvoiceIsGoodsReceiptBased | ||
| PurchaseOrderCurrency | I_SupplierPurchasingOrg | PurchaseOrderCurrency | ||
| IncotermsClassification | I_SupplierPurchasingOrg | IncotermsClassification | ||
| IncotermsTransferLocation | I_SupplierPurchasingOrg | IncotermsTransferLocation | ||
| SupplierasSupplier | ||||
| KEY | CompanyCode | I_PurchasingOrganization | CompanyCode | |
| KEY | PurchasingOrganization | I_SupplierPurchasingOrg | PurchasingOrganization | |
| PurOrdAutoGenerationIsAllowed | I_SupplierPurchasingOrg | PurOrdAutoGenerationIsAllowed | ||
| PurchasingGroup | I_SupplierPurchasingOrg | PurchasingGroup | ||
| SupplierPurgOrgPaymentTerms | ||||
| PurchasingIsBlockedForSupplier | I_SupplierPurchasingOrg | PurchasingIsBlockedForSupplier | ||
| SuplrIsDeltdPurgOrg | ||||
| InvoiceIsGoodsReceiptBased | I_SupplierPurchasingOrg | InvoiceIsGoodsReceiptBased | ||
| PurchaseOrderCurrency | I_SupplierPurchasingOrg | PurchaseOrderCurrency | ||
| IncotermsClassification | I_SupplierPurchasingOrg | IncotermsClassification | ||
| IncotermsTransferLocation | I_SupplierPurchasingOrg | IncotermsTransferLocation | ||
| SupplierasSupplier | ||||
| KEY | CompanyCode | I_SupplierCompany | CompanyCode | |
| KEY | PurchasingOrganization | I_SupplierPurchasingOrg | PurchasingOrganization | |
| PurOrdAutoGenerationIsAllowed | I_SupplierPurchasingOrg | PurOrdAutoGenerationIsAllowed | ||
| PurchasingGroup | I_SupplierPurchasingOrg | PurchasingGroup | ||
| SupplierPurgOrgPaymentTerms | ||||
| PurchasingIsBlockedForSupplier | I_SupplierPurchasingOrg | PurchasingIsBlockedForSupplier | ||
| SuplrIsDeltdPurgOrg | ||||
| InvoiceIsGoodsReceiptBased | I_SupplierPurchasingOrg | InvoiceIsGoodsReceiptBased | ||
| PurchaseOrderCurrency | I_SupplierPurchasingOrg | PurchaseOrderCurrency | ||
| IncotermsClassification | I_SupplierPurchasingOrg | IncotermsClassification | ||
| IncotermsTransferLocation | I_SupplierPurchasingOrg | IncotermsTransferLocation | ||
| _IncotermsClassification | I_SupplierPurchasingOrg | _IncotermsClassification |
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.sqlViewName: 'PSUPPCOCOPUOR'
@Metadata.ignorePropagatedAnnotations: true
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@AbapCatalog.preserveKey:true
@AccessControl.personalData.blocking: #NOT_REQUIRED
@VDM.private: true
@VDM.viewType: #COMPOSITE
@ObjectModel: {
usageType.serviceQuality: #C,
usageType.sizeCategory: #XL,
usageType.dataClass: #MIXED
}
define view P_SuplrCoCodePurgOrganization
//companycode = '' => plant-specific purchasing
as select from I_SupplierPurchasingOrg as _SupplierPurchasingOrg
//t024e
inner join I_PurchasingOrganization as _PurchasingOrgWithCoCode on _PurchasingOrgWithCoCode.PurchasingOrganization = _SupplierPurchasingOrg.PurchasingOrganization
and _PurchasingOrgWithCoCode.CompanyCode = ''
inner join P_PlntCompanyCodePurchasingOrg as _PlantCoCode on _PlantCoCode.PurchasingOrganization = _SupplierPurchasingOrg.PurchasingOrganization
inner join I_SupplierCompany as _SupplierCompany on _SupplierPurchasingOrg.Supplier = _SupplierCompany.Supplier
and _SupplierCompany.CompanyCode = _PlantCoCode.CompanyCode
{
key _SupplierPurchasingOrg.Supplier as Supplier,
key _SupplierCompany.CompanyCode as CompanyCode,
key _SupplierPurchasingOrg.PurchasingOrganization,
//LFM1
_SupplierPurchasingOrg.PurOrdAutoGenerationIsAllowed,
_SupplierPurchasingOrg.PurchasingGroup,
cast (_SupplierPurchasingOrg.PaymentTerms as farp_dzterm_po preserving type) as SupplierPurgOrgPaymentTerms,
_SupplierPurchasingOrg.PurchasingIsBlockedForSupplier,
cast (_SupplierPurchasingOrg.DeletionIndicator as supplist_loevm_m preserving type) as SuplrIsDeltdPurgOrg,
_SupplierPurchasingOrg.InvoiceIsGoodsReceiptBased,
_SupplierPurchasingOrg.PurchaseOrderCurrency,
_SupplierPurchasingOrg.IncotermsClassification,
_SupplierPurchasingOrg.IncotermsTransferLocation,
_SupplierPurchasingOrg._IncotermsClassification
}
//company-specific purchasing
//table t024e
union all select from I_PurchasingOrganization as _PurchasingOrgWithCoCode
inner join I_SupplierPurchasingOrg as _SupplierPurchasingOrg on _PurchasingOrgWithCoCode.PurchasingOrganization = _SupplierPurchasingOrg.PurchasingOrganization
inner join I_SupplierCompany as _SupplierCompany on _SupplierPurchasingOrg.Supplier = _SupplierCompany.Supplier
and _SupplierCompany.CompanyCode = _PurchasingOrgWithCoCode.CompanyCode
{
key _SupplierPurchasingOrg.Supplier as Supplier,
key _PurchasingOrgWithCoCode.CompanyCode as CompanyCode,
key _SupplierPurchasingOrg.PurchasingOrganization,
//LFM1
_SupplierPurchasingOrg.PurOrdAutoGenerationIsAllowed,
_SupplierPurchasingOrg.PurchasingGroup,
cast (_SupplierPurchasingOrg.PaymentTerms as farp_dzterm_po preserving type) as SupplierPurgOrgPaymentTerms,
_SupplierPurchasingOrg.PurchasingIsBlockedForSupplier,
cast (_SupplierPurchasingOrg.DeletionIndicator as supplist_loevm_m preserving type) as SuplrIsDeltdPurgOrg,
_SupplierPurchasingOrg.InvoiceIsGoodsReceiptBased,
_SupplierPurchasingOrg.PurchaseOrderCurrency,
_SupplierPurchasingOrg.IncotermsClassification,
_SupplierPurchasingOrg.IncotermsTransferLocation,
_SupplierPurchasingOrg._IncotermsClassification
}
//group-wide purchasing
union all select from I_SupplierCompany as _SupplierCompany
//t024e
inner join I_SupplierPurchasingOrg as _SupplierPurchasingOrg on _SupplierPurchasingOrg.Supplier = _SupplierCompany.Supplier
inner join I_PurchasingOrganization as _PurchasingOrgWithCoCode on _PurchasingOrgWithCoCode.PurchasingOrganization = _SupplierPurchasingOrg.PurchasingOrganization
and _PurchasingOrgWithCoCode.CompanyCode = ''
association [0..1] to P_PlntCompanyCodePurchasingOrg as _PlantCoCode on _PlantCoCode.PurchasingOrganization = _SupplierPurchasingOrg.PurchasingOrganization
{
key _SupplierPurchasingOrg.Supplier as Supplier,
key _SupplierCompany.CompanyCode as CompanyCode,
key _SupplierPurchasingOrg.PurchasingOrganization,
//LFM1
_SupplierPurchasingOrg.PurOrdAutoGenerationIsAllowed,
_SupplierPurchasingOrg.PurchasingGroup,
cast (_SupplierPurchasingOrg.PaymentTerms as farp_dzterm_po preserving type) as SupplierPurgOrgPaymentTerms,
_SupplierPurchasingOrg.PurchasingIsBlockedForSupplier,
cast (_SupplierPurchasingOrg.DeletionIndicator as supplist_loevm_m preserving type) as SuplrIsDeltdPurgOrg,
_SupplierPurchasingOrg.InvoiceIsGoodsReceiptBased,
_SupplierPurchasingOrg.PurchaseOrderCurrency,
_SupplierPurchasingOrg.IncotermsClassification,
_SupplierPurchasingOrg.IncotermsTransferLocation,
_SupplierPurchasingOrg._IncotermsClassification
}
where
_PlantCoCode.PurchasingOrganization is null
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PURCHASINGORGANIZATION",
"I_SUPPLIERCOMPANY",
"I_SUPPLIERPURCHASINGORG",
"P_PLNTCOMPANYCODEPURCHASINGORG"
],
"ASSOCIATED":
[
"I_INCOTERMSCLASSIFICATION"
],
"BASE":
[
"I_SUPPLIERPURCHASINGORG"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
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