C_Supplierpurchasingorg

DDL: C_SUPPLIERPURCHASINGORG SQL: CSUPPLPURCH Type: view CONSUMPTION Package: ODATA_MASTER_DATA_SUPPLIER_FS

SupplierPurchasingOrganization

C_Supplierpurchasingorg is a Consumption CDS View that provides data about "SupplierPurchasingOrganization" in SAP S/4HANA. It reads from 1 data source (I_SupplierPurchasingOrg) and exposes 25 fields with key fields Supplier, PurchasingOrganization. It has 4 associations to related views. It is exposed through 1 OData service (ASQL_F0354). Part of development package ODATA_MASTER_DATA_SUPPLIER_FS.

Data Sources (1)

SourceAliasJoin Type
I_SupplierPurchasingOrg I_SupplierPurchasingOrg from

Associations (4)

CardinalityTargetAliasCondition
[0..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier
[0..1] I_PurchasingOrganization _PurgOrganization $projection.PurchasingOrganization = _PurgOrganization.PurchasingOrganization
[0..1] C_IncotermsClassfctnTextVHTemp _IncotermsClassfctnText $projection.IncotermsClassification = _IncotermsClassfctnText.IncotermsClassification and _IncotermsClassfctnText.Language = $session.system_language
[0..1] C_PaymentTermsTextVHTemp _PaymentTermsDescription $projection.PaymentTerms = _PaymentTermsDescription.PaymentTerms and _PaymentTermsDescription.Language = $session.system_language

Annotations (15)

NameValueLevelField
AbapCatalog.sqlViewName CSUPPLPURCH view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label SupplierPurchasingOrganization view
Metadata.allowExtensions true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.representativeKey PurchasingOrganization view
VDM.viewType #CONSUMPTION view
UI.headerInfo.typeName Purchasing Organization view
UI.headerInfo.typeNamePlural Purchasing Organizations view
UI.headerInfo.title.label Purchasing Organization view
UI.headerInfo.title.value PurchasingOrganizationName view

OData Services (1)

ServiceBindingVersionContractRelease
ASQL_F0354 ASQL_F0354 C2 NOT_RELEASED

Fields (25)

KeyFieldSource TableSource FieldDescription
KEY Supplier Supplier Supplier
KEY PurchasingOrganization PurchasingOrganization Purchasing Organization
PurchasingOrganizationName _PurgOrganization PurchasingOrganizationName Purch. Org. Name
PurchasingGroup PurchasingGroup Purchasing Group
MaterialPlannedDeliveryDurn MaterialPlannedDeliveryDurn Pl. Deliv. Time
PurchasingIsBlockedForSupplier PurchasingIsBlockedForSupplier Pur. block POrg
SupplierRespSalesPersonName SupplierRespSalesPersonName Salesperson
SupplierPhoneNumber SupplierPhoneNumber Telephone
PurchaseOrderCurrency PurchaseOrderCurrency Order currency
MinimumOrderAmount MinimumOrderAmount Minimum value
CalculationSchemaGroupCode CalculationSchemaGroupCode Schema Grp Supp
PaymentTerms PaymentTerms Pyt Terms
PaymentTermsDescription _PaymentTermsDescription PaymentTermsName Description
PricingDateControl PricingDateControl Pr. Date Cat.
SupplierABCClassificationCode SupplierABCClassificationCode ABC indicator
ShippingCondition ShippingCondition Shipping Conditions
PurOrdAutoGenerationIsAllowed PurOrdAutoGenerationIsAllowed Automatic PO
InvoiceIsGoodsReceiptBased InvoiceIsGoodsReceiptBased GR-Based IV
SupplierConfirmationControlKey SupplierConfirmationControlKey Conf. Control
IsOrderAcknRqd IsOrderAcknRqd Acknowl. Reqd.
IncotermsClassification IncotermsClassification Incoterms
IncotermsClassificationName _IncotermsClassfctnText IncotermsClassificationName Incoterms Classification Description
_Supplier _Supplier
_PurgOrganization _PurgOrganization
_IncotermsClassfctnText _IncotermsClassfctnText

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 C_Supplierpurchasingorg.
-- 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: CSUPPLPURCH

CREATE VIEW C_Supplierpurchasingorg AS
SELECT
  Supplier,
  PurchasingOrganization,
  _PurgOrganization.PurchasingOrganizationName AS PurchasingOrganizationName,
  PurchasingGroup,
  MaterialPlannedDeliveryDurn,
  PurchasingIsBlockedForSupplier,
  SupplierRespSalesPersonName,
  SupplierPhoneNumber,
  PurchaseOrderCurrency,
  MinimumOrderAmount,
  CalculationSchemaGroupCode,
  PaymentTerms,
  _PaymentTermsDescription.PaymentTermsName AS PaymentTermsDescription,
  PricingDateControl,
  SupplierABCClassificationCode,
  ShippingCondition,
  PurOrdAutoGenerationIsAllowed,
  InvoiceIsGoodsReceiptBased,
  SupplierConfirmationControlKey,
  IsOrderAcknRqd,
  IncotermsClassification,
  _IncotermsClassfctnText.IncotermsClassificationName AS IncotermsClassificationName
FROM I_SupplierPurchasingOrg
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier  -- association [0..1]
LEFT OUTER JOIN I_PurchasingOrganization AS _PurgOrganization ON PurchasingOrganization = _PurgOrganization.PurchasingOrganization  -- association [0..1]
LEFT OUTER JOIN C_IncotermsClassfctnTextVHTemp AS _IncotermsClassfctnText ON IncotermsClassification = _IncotermsClassfctnText.IncotermsClassification AND _IncotermsClassfctnText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN C_PaymentTermsTextVHTemp AS _PaymentTermsDescription ON PaymentTerms = _PaymentTermsDescription.PaymentTerms AND _PaymentTermsDescription.Language = $session.system_language  -- association [0..1]
;