P_SuplrCoCodePurgOrganization

DDL: P_SUPLRCOCODEPURGORGANIZATION SQL: PSUPPCOCOPUOR Type: view COMPOSITE Package: ODATA_SUPPLIER_LIST

Supplier Company Code Purch. Org.

P_SuplrCoCodePurgOrganization is a Composite CDS View that provides data about "Supplier Company Code Purch. Org." 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. Part of development package ODATA_SUPPLIER_LIST.

Data Sources (10)

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

CardinalityTargetAliasCondition
[0..1] P_PlntCompanyCodePurchasingOrg _PlantCoCode _PlantCoCode.PurchasingOrganization = _SupplierPurchasingOrg.PurchasingOrganization

Annotations (12)

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

KeyFieldSource TableSource FieldDescription
KEY Supplier I_SupplierPurchasingOrg Supplier Supplier
KEY CompanyCode I_SupplierCompany CompanyCode Receiver Company Code
KEY PurchasingOrganization I_SupplierPurchasingOrg PurchasingOrganization Purchasing Organization
PurOrdAutoGenerationIsAllowed I_SupplierPurchasingOrg PurOrdAutoGenerationIsAllowed Automatic PO
PurchasingGroup I_SupplierPurchasingOrg PurchasingGroup Purchasing Group
SupplierPurgOrgPaymentTerms
PurchasingIsBlockedForSupplier I_SupplierPurchasingOrg PurchasingIsBlockedForSupplier Pur. block POrg
SuplrIsDeltdPurgOrg
InvoiceIsGoodsReceiptBased I_SupplierPurchasingOrg InvoiceIsGoodsReceiptBased GR-Based IV
PurchaseOrderCurrency I_SupplierPurchasingOrg PurchaseOrderCurrency Order currency
IncotermsClassification I_SupplierPurchasingOrg IncotermsClassification Incoterms
IncotermsTransferLocation I_SupplierPurchasingOrg IncotermsTransferLocation Incoterms 2
SupplierasSupplier
KEY CompanyCode I_PurchasingOrganization CompanyCode Receiver Company Code
KEY PurchasingOrganization I_SupplierPurchasingOrg PurchasingOrganization Purchasing Organization
PurOrdAutoGenerationIsAllowed I_SupplierPurchasingOrg PurOrdAutoGenerationIsAllowed Automatic PO
PurchasingGroup I_SupplierPurchasingOrg PurchasingGroup Purchasing Group
SupplierPurgOrgPaymentTerms
PurchasingIsBlockedForSupplier I_SupplierPurchasingOrg PurchasingIsBlockedForSupplier Pur. block POrg
SuplrIsDeltdPurgOrg
InvoiceIsGoodsReceiptBased I_SupplierPurchasingOrg InvoiceIsGoodsReceiptBased GR-Based IV
PurchaseOrderCurrency I_SupplierPurchasingOrg PurchaseOrderCurrency Order currency
IncotermsClassification I_SupplierPurchasingOrg IncotermsClassification Incoterms
IncotermsTransferLocation I_SupplierPurchasingOrg IncotermsTransferLocation Incoterms 2
SupplierasSupplier
KEY CompanyCode I_SupplierCompany CompanyCode Receiver Company Code
KEY PurchasingOrganization I_SupplierPurchasingOrg PurchasingOrganization Purchasing Organization
PurOrdAutoGenerationIsAllowed I_SupplierPurchasingOrg PurOrdAutoGenerationIsAllowed Automatic PO
PurchasingGroup I_SupplierPurchasingOrg PurchasingGroup Purchasing Group
SupplierPurgOrgPaymentTerms
PurchasingIsBlockedForSupplier I_SupplierPurchasingOrg PurchasingIsBlockedForSupplier Pur. block POrg
SuplrIsDeltdPurgOrg
InvoiceIsGoodsReceiptBased I_SupplierPurchasingOrg InvoiceIsGoodsReceiptBased GR-Based IV
PurchaseOrderCurrency I_SupplierPurchasingOrg PurchaseOrderCurrency Order currency
IncotermsClassification I_SupplierPurchasingOrg IncotermsClassification Incoterms
IncotermsTransferLocation I_SupplierPurchasingOrg IncotermsTransferLocation Incoterms 2
_IncotermsClassification I_SupplierPurchasingOrg _IncotermsClassification

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view P_SuplrCoCodePurgOrganization.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: PSUPPCOCOPUOR

CREATE VIEW P_SuplrCoCodePurgOrganization AS
SELECT
  _SupplierPurchasingOrg.Supplier AS Supplier,
  _SupplierCompany.CompanyCode AS CompanyCode,
  _SupplierPurchasingOrg.PurchasingOrganization AS PurchasingOrganization,
  _SupplierPurchasingOrg.PurOrdAutoGenerationIsAllowed AS PurOrdAutoGenerationIsAllowed,
  _SupplierPurchasingOrg.PurchasingGroup AS PurchasingGroup,
  cast (_SupplierPurchasingOrg.PaymentTerms as farp_dzterm_po preserving type) AS SupplierPurgOrgPaymentTerms,
  _SupplierPurchasingOrg.PurchasingIsBlockedForSupplier AS PurchasingIsBlockedForSupplier,
  cast (_SupplierPurchasingOrg.DeletionIndicator as supplist_loevm_m preserving type) AS SuplrIsDeltdPurgOrg,
  _SupplierPurchasingOrg.InvoiceIsGoodsReceiptBased AS InvoiceIsGoodsReceiptBased,
  _SupplierPurchasingOrg.PurchaseOrderCurrency AS PurchaseOrderCurrency,
  _SupplierPurchasingOrg.IncotermsClassification AS IncotermsClassification,
  _SupplierPurchasingOrg.IncotermsTransferLocation AS IncotermsTransferLocation,
  _SupplierPurchasingOrg._IncotermsClassification AS SupplierasSupplier,
  _SupplierPurchasingOrg._IncotermsClassification AS _IncotermsClassification
FROM I_SupplierPurchasingOrg AS _SupplierPurchasingOrg
INNER JOIN I_PurchasingOrganization AS _PurchasingOrgWithCoCode ON /* join condition not captured in parsed metadata */
INNER JOIN P_PlntCompanyCodePurchasingOrg AS _PlantCoCode ON /* join condition not captured in parsed metadata */
INNER JOIN I_SupplierCompany AS _SupplierCompany ON /* join condition not captured in parsed metadata */
INNER JOIN I_SupplierPurchasingOrg AS _SupplierPurchasingOrg ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_PlntCompanyCodePurchasingOrg AS _PlantCoCode ON _PlantCoCode.PurchasingOrganization = _SupplierPurchasingOrg.PurchasingOrganization  -- association [0..1]
-- UNION ALL with additional select branch(es): I_PurchasingOrganization, I_SupplierCompany
;