C_SlsDocItemIncomplete
Sales Doc Item Incomplete Data
C_SlsDocItemIncomplete is a Consumption CDS View that provides data about "Sales Doc Item Incomplete Data" in SAP S/4HANA. It reads from 2 data sources (I_SalesOrderIncomplete, I_SalesDocumentItem) and exposes 47 fields with key fields SalesDocument, SalesDocumentItem. It has 1 association to related views. Part of development package ODATA_SD_SOF.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_SalesOrderIncomplete | Issue | inner |
| I_SalesDocumentItem | Item | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | E_SalesDocumentItemBasic | _Extension | $projection.SalesDocument = _Extension.SalesDocument and $projection.SalesDocumentItem = _Extension.SalesDocumentItem |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.representativeKey | SalesDocumentItem | view | |
| EndUserText.label | Sales Doc Item Incomplete Data | 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 | CSLSDOCITEMSO01 | view |
Fields (47)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SalesDocument | I_SalesDocumentItem | SalesDocument | SD Document |
| KEY | SalesDocumentItem | |||
| DueDays | ||||
| SalesDocumentItemCategory | I_SalesDocumentItem | SalesDocumentItemCategory | Item Category | |
| Material | ||||
| MaterialName | ||||
| MaterialGroup | ||||
| Batch | I_SalesDocumentItem | Batch | Lot No. | |
| Plant | I_SalesDocumentItem | Plant | Valuation Area | |
| MaterialByCustomer | I_SalesDocumentItem | MaterialByCustomer | Customer Mat. | |
| SalesDocumentItemText | I_SalesDocumentItem | SalesDocumentItemText | Item Descr. | |
| RequestedQuantity | I_SalesDocumentItem | RequestedQuantity | Requested Quantity | |
| RequestedQuantityUnit | I_SalesDocumentItem | RequestedQuantityUnit | Requested Quantity Unit | |
| ConfdDelivQtyInOrderQtyUnit | I_SalesDocumentItem | ConfdDelivQtyInOrderQtyUnit | Confd Quantity | |
| OrderQuantityUnit | I_SalesDocumentItem | OrderQuantityUnit | Sales Unit | |
| NetAmount | I_SalesDocumentItem | NetAmount | Stated Amount | |
| TransactionCurrency | I_SalesDocumentItem | TransactionCurrency | Transaction Currency | |
| ShippingPoint | I_SalesDocumentItem | ShippingPoint | Shipping Point | |
| ShippingPointName | ||||
| StorageLocation | I_SalesDocumentItem | StorageLocation | StorageLocation | |
| RequestedDeliveryDate | ||||
| DeliveryStatus | I_SalesDocumentItem | DeliveryStatus | Delivery Status | |
| SDProcessStatus | I_SalesDocumentItem | SDProcessStatus | Overall Status | |
| OrderRelatedBillingStatus | I_SalesDocumentItem | OrderRelatedBillingStatus | ||
| ItemGeneralIncompletionStatus | ||||
| ItemDeliveryIncompletionStatus | ||||
| PricingIncompletionStatus | ||||
| ItemBillingIncompletionStatus | ||||
| int1asItmGenIncompltnStsCriticality | ||||
| int1asItmDelivIncompltnStsCritlty | ||||
| int1asPricingIncompltnStsCriticality | ||||
| int1asItmBillingIncompltnStsCritlty | ||||
| _SalesDocument | _SalesDocument | |||
| _ItemCategory | _ItemCategory | |||
| _Plant | _Plant | |||
| _MaterialGroup | _MaterialGroup | |||
| _StorageLocation | _StorageLocation | |||
| _DeliveryStatus | _DeliveryStatus | |||
| _SDProcessStatus | _SDProcessStatus | |||
| _OrderRelatedBillingStatus | _OrderRelatedBillingStatus | |||
| _ItemGeneralIncompletionStatus | _ItemGeneralIncompletionStatus | |||
| _ItemDelivIncompletionSts | _ItemDelivIncompletionSts | |||
| _PricingIncompletionStatus | _PricingIncompletionStatus | |||
| _ItemBillingIncompletionStatus | _ItemBillingIncompletionStatus | |||
| _TransactionCurrency | _TransactionCurrency | |||
| _RequestedQuantityUnit | _RequestedQuantityUnit | |||
| _OrderQuantityUnit | _OrderQuantityUnit |
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_SlsDocItemIncomplete.
-- 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: CSLSDOCITEMSO01
CREATE VIEW C_SlsDocItemIncomplete AS
SELECT
Item.SalesDocument AS SalesDocument,
cast(Item.SalesDocumentItem as sales_doc_item preserving type) AS SalesDocumentItem,
cast(Issue.DueDays as due_days) AS DueDays,
Item.SalesDocumentItemCategory AS SalesDocumentItemCategory,
cast(Item.Material as productnumber preserving type ) AS Material,
Item._MaterialText[1:Language=$session.system_language].MaterialName AS MaterialName,
cast(Item.MaterialGroup as productgroup preserving type ) AS MaterialGroup,
Item.Batch AS Batch,
Item.Plant AS Plant,
Item.MaterialByCustomer AS MaterialByCustomer,
Item.SalesDocumentItemText AS SalesDocumentItemText,
Item.RequestedQuantity AS RequestedQuantity,
Item.RequestedQuantityUnit AS RequestedQuantityUnit,
Item.ConfdDelivQtyInOrderQtyUnit AS ConfdDelivQtyInOrderQtyUnit,
Item.OrderQuantityUnit AS OrderQuantityUnit,
Item.NetAmount AS NetAmount,
Item.TransactionCurrency AS TransactionCurrency,
Item.ShippingPoint AS ShippingPoint,
Item._ShippingPointText[1:Language=$session.system_language].ShippingPointName AS ShippingPointName,
Item.StorageLocation AS StorageLocation,
cast( Item._SlsDocItemEnhancedFields._RequestedDeliveryDate.RequestedDeliveryDate as reqd_deliv_date) AS RequestedDeliveryDate,
Item.DeliveryStatus AS DeliveryStatus,
Item.SDProcessStatus AS SDProcessStatus,
Item.OrderRelatedBillingStatus AS OrderRelatedBillingStatus,
cast(Item.ItemGeneralIncompletionStatus as item_general_incompletion_sts preserving type) AS ItemGeneralIncompletionStatus,
cast(Item.ItemDeliveryIncompletionStatus as itm_deliv_incompletion_status preserving type) AS ItemDeliveryIncompletionStatus,
cast(Item.PricingIncompletionStatus as pricing_incompletion_status preserving type) AS PricingIncompletionStatus,
cast(Item.ItemBillingIncompletionStatus as itms_incompltn_sts_billg preserving type) AS ItemBillingIncompletionStatus,
cast( case when ItemGeneralIncompletionStatus <> 'C' and DueDays > 0 then 2 when ItemGeneralIncompletionStatus <> 'C' and DueDays <= 0 then 1 else 3 end as abap.int1 ) as ItmGenIncompltnStsCriticality AS int1asItmGenIncompltnStsCriticality,
cast ( case when ItemDeliveryIncompletionStatus <> 'C' and DueDays > 0 then 2 when ItemDeliveryIncompletionStatus <> 'C' and DueDays <= 0 then 1 else 3 end as abap.int1 ) as ItmDelivIncompltnStsCritlty AS int1asItmDelivIncompltnStsCritlty,
cast( case when PricingIncompletionStatus <> 'C' and DueDays > 0 then 2 when PricingIncompletionStatus <> 'C' and DueDays <= 0 then 1 else 3 end as abap.int1 ) as PricingIncompltnStsCriticality AS int1asPricingIncompltnStsCriticality,
cast( case when ItemBillingIncompletionStatus <> 'C' and DueDays > 0 then 2 when ItemBillingIncompletionStatus <> 'C' and DueDays <= 0 then 1 else 3 end as abap.int1 ) as ItmBillingIncompltnStsCritlty AS int1asItmBillingIncompltnStsCritlty
FROM I_SalesDocumentItem AS Item
INNER JOIN I_SalesOrderIncomplete AS Issue ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN E_SalesDocumentItemBasic AS _Extension ON SalesDocument = _Extension.SalesDocument AND SalesDocumentItem = _Extension.SalesDocumentItem -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA