C_SlsDocFlfmtPurgDocItem

DDL: C_SLSDOCFLFMTPURGDOCITEM SQL: CSOFPURGDOCITM Type: view CONSUMPTION

Sales Doc Fulfillment: Purg Doc Item

C_SlsDocFlfmtPurgDocItem is a Consumption CDS View that provides data about "Sales Doc Fulfillment: Purg Doc Item" in SAP S/4HANA. It reads from 1 data source (I_PurchasingDocumentItem) and exposes 21 fields with key fields PurchasingDocument, PurchasingDocumentItem. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_PurchasingDocumentItem Item from

Associations (1)

CardinalityTargetAliasCondition
[0..1] E_PurchasingDocumentItem _Extension $projection.PurchasingDocument = _Extension.PurchasingDocument and $projection.PurchasingDocumentItem = _Extension.PurchasingDocumentItem

Annotations (14)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.representativeKey PurchasingDocumentItem view
EndUserText.label Sales Doc Fulfillment: Purg Doc Item view
VDM.viewType #CONSUMPTION view
AbapCatalog.compiler.compareFilter true view
Search.searchable false view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
Metadata.allowExtensions true view
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName CSOFPURGDOCITM view

Fields (21)

KeyFieldSource TableSource FieldDescription
KEY PurchasingDocument I_PurchasingDocumentItem PurchasingDocument Purchasing Document
KEY PurchasingDocumentItem I_PurchasingDocumentItem PurchasingDocumentItem Purchasing Doc. Item
Material
MaterialName
MaterialGroup
Plant I_PurchasingDocumentItem Plant Valuation Area
PurchasingDocumentItemText I_PurchasingDocumentItem PurchasingDocumentItemText Short Text
PurchasingDocumentItemCategory I_PurchasingDocumentItem PurchasingDocumentItemCategory Item Category
OrderQuantityUnit I_PurchasingDocumentItem OrderQuantityUnit Sales Unit
OrderQuantity I_PurchasingDocumentItem OrderQuantity Quantity
DocumentCurrency I_PurchasingDocumentItem DocumentCurrency Document Currency
NetAmount I_PurchasingDocumentItem NetAmount Stated Amount
IsCompletelyDelivered I_PurchasingDocumentItem IsCompletelyDelivered Is completely delivered
IsFinallyInvoiced I_PurchasingDocumentItem IsFinallyInvoiced Final Invoice
DeliveryDate ItemDeliveryDate DeliveryDate Delivery Date
_PurchasingDocument _PurchasingDocument
_MaterialGroup _MaterialGroup
_Plant _Plant
_PurgDocumentItemCategory _PurgDocumentItemCategory
_OrderQuantityUnit _OrderQuantityUnit
_DocumentCurrency _DocumentCurrency

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_SlsDocFlfmtPurgDocItem.
-- 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: CSOFPURGDOCITM

CREATE VIEW C_SlsDocFlfmtPurgDocItem AS
SELECT
  Item.PurchasingDocument AS PurchasingDocument,
  Item.PurchasingDocumentItem AS PurchasingDocumentItem,
  cast(Item.Material as productnumber preserving type ) AS Material,
  Item._Material._Text[1:Language=$session.system_language].MaterialName AS MaterialName,
  cast(Item.MaterialGroup as productgroup preserving type ) AS MaterialGroup,
  Item.Plant AS Plant,
  Item.PurchasingDocumentItemText AS PurchasingDocumentItemText,
  Item.PurchasingDocumentItemCategory AS PurchasingDocumentItemCategory,
  Item.OrderQuantityUnit AS OrderQuantityUnit,
  Item.OrderQuantity AS OrderQuantity,
  Item.DocumentCurrency AS DocumentCurrency,
  Item.NetAmount AS NetAmount,
  Item.IsCompletelyDelivered AS IsCompletelyDelivered,
  Item.IsFinallyInvoiced AS IsFinallyInvoiced,
  ItemDeliveryDate.DeliveryDate AS DeliveryDate
FROM I_PurchasingDocumentItem AS Item
LEFT OUTER JOIN E_PurchasingDocumentItem AS _Extension ON PurchasingDocument = _Extension.PurchasingDocument AND PurchasingDocumentItem = _Extension.PurchasingDocumentItem  -- association [0..1]
;