C_ESJISalesOrderItemQuery

DDL: C_ESJISALESORDERITEMQUERY SQL: CESJISLSODRITMQ Type: view CONSUMPTION

Sales Order Item

C_ESJISalesOrderItemQuery is a Consumption CDS View that provides data about "Sales Order Item" in SAP S/4HANA. It reads from 1 data source (I_SalesDocumentItem) and exposes 63 fields with key fields SalesOrder, SalesOrderItem.

Data Sources (1)

SourceAliasJoin Type
I_SalesDocumentItem SalesDocumentItem from

Parameters (1)

NameTypeDefault
P_Language sylangu

Annotations (6)

NameValueLevelField
EndUserText.label Sales Order Item view
VDM.viewType #CONSUMPTION view
AbapCatalog.sqlViewName CESJISLSODRITMQ view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.sizeCategory #XL view

Fields (63)

KeyFieldSource TableSource FieldDescription
KEY SalesOrder SalesDocument SD Document
KEY SalesOrderItem SalesDocumentItem Sales Document Item
ObjectType
SalesOrderType _SalesOrder SalesOrderType Sales Order Type
SalesOrderItemCategory SalesDocumentItemCategory Item Category
CreatedByUser CreatedByUser User Name
CreationDate CreationDate Time Stamp
CreationTime CreationTime Time of Change
LastChangeDate LastChangeDate Time Stamp
Material Material Vehicle Model
ProductionPlant Plant Valuation Area
SalesOrderItemText SalesDocumentItemText Item Descr.
OrderQuantity OrderQuantity Quantity
ConfdDelivQtyInOrderQtyUnit ConfdDelivQtyInOrderQtyUnit Confd Quantity
OrderQuantityUnit OrderQuantityUnit Sales Unit
BaseUnit BaseUnit Unit of Measure
OrderToBaseQuantityDnmntr OrderToBaseQuantityDnmntr Denominator
OrderToBaseQuantityNmrtr OrderToBaseQuantityNmrtr Numerator
SalesOrganization _SalesOrder SalesOrganization Sales Organization
DistributionChannel _SalesOrder DistributionChannel RefDistCh-Cust/Mat.
OrganizationDivision _SalesOrder OrganizationDivision Org. Division
NetAmount NetAmount Stated Amount
PricingDate PricingDate Pricing Date
NetPriceAmount NetPriceAmount Net Price
NetPriceQuantity NetPriceQuantity Price Unit
NetPriceQuantityUnit NetPriceQuantityUnit SettlmtPrcUnit
TaxAmount TaxAmount Tax Amt in Rptg Crcy
TransactionCurrency TransactionCurrency Transaction Currency
ShippingPoint ShippingPoint Shipping Point
ShippingType ShippingType Shipping Type
DeliveryPriority DeliveryPriority Delivery Prior.
PartialDeliveryIsAllowed PartialDeliveryIsAllowed Partial Deliv.
IncotermsClassification IncotermsClassification Incoterms
IncotermsTransferLocation IncotermsTransferLocation Incoterms 2
UnderdelivTolrtdLmtRatioInPct UnderdelivTolrtdLmtRatioInPct Underdel. Tol.
OverdelivTolrtdLmtRatioInPct OverdelivTolrtdLmtRatioInPct Overdeliv. Tol.
BillingDocumentDate BillingDocumentDate Billing Date
ItemBillingBlockReason ItemBillingBlockReason Billing Block
ItemIsBillingRelevant ItemIsBillingRelevant Relev.for Bill.
CustomerPaymentTerms CustomerPaymentTerms Pyt Terms
BusinessArea BusinessArea Business Area
WBSElement WBSElement WBS Internal ID
DeliveryStatus DeliveryStatus Delivery Status
SDDocumentRejectionStatus SDDocumentRejectionStatus Rejection Sts
SalesDocumentRjcnReason I_SalesDocumentItem SalesDocumentRjcnReason RejectionReason
SalesDocumentRjcnReasonName
RequestedDeliveryDate _SOItemDeliveryDate RequestedDeliveryDate Requested Delivery Date
_SalesOrder _SalesOrder
_Partner _Partner
_CreatedByUser _CreatedByUser
_Material _Material
_OrderQuantityUnit _OrderQuantityUnit
_BaseUnit _BaseUnit
_NetPriceQuantityUnit _NetPriceQuantityUnit
_TransactionCurrency _TransactionCurrency
_ShippingType _ShippingType
_IncotermsClassification _IncotermsClassification
_ItemBillingBlockReason _ItemBillingBlockReason
_CustomerPaymentTerms _CustomerPaymentTerms
_DeliveryStatus _DeliveryStatus
_SDDocumentRejectionStatus _SDDocumentRejectionStatus
DeliveryStatusDescription
SDDocumentRejectionStatusDesc

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_ESJISalesOrderItemQuery.
-- 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: CESJISLSODRITMQ
-- Parameters: P_Language : sylangu

CREATE VIEW C_ESJISalesOrderItemQuery AS
SELECT
  SalesDocument AS SalesOrder,
  SalesDocumentItem AS SalesOrderItem,
  'BUS2032' AS ObjectType,
  _SalesOrder.SalesOrderType AS SalesOrderType,
  SalesDocumentItemCategory AS SalesOrderItemCategory,
  CreatedByUser,
  CreationDate,
  CreationTime,
  LastChangeDate,
  Material,
  Plant AS ProductionPlant,
  SalesDocumentItemText AS SalesOrderItemText,
  OrderQuantity,
  ConfdDelivQtyInOrderQtyUnit,
  OrderQuantityUnit,
  BaseUnit,
  OrderToBaseQuantityDnmntr,
  OrderToBaseQuantityNmrtr,
  _SalesOrder.SalesOrganization AS SalesOrganization,
  _SalesOrder.DistributionChannel AS DistributionChannel,
  _SalesOrder.OrganizationDivision AS OrganizationDivision,
  NetAmount,
  PricingDate,
  NetPriceAmount,
  NetPriceQuantity,
  NetPriceQuantityUnit,
  TaxAmount,
  TransactionCurrency,
  ShippingPoint,
  ShippingType,
  DeliveryPriority,
  PartialDeliveryIsAllowed,
  IncotermsClassification,
  IncotermsTransferLocation,
  UnderdelivTolrtdLmtRatioInPct,
  OverdelivTolrtdLmtRatioInPct,
  BillingDocumentDate,
  ItemBillingBlockReason,
  ItemIsBillingRelevant,
  CustomerPaymentTerms,
  BusinessArea,
  WBSElement,
  DeliveryStatus,
  SDDocumentRejectionStatus,
  SalesDocumentItem.SalesDocumentRjcnReason AS SalesDocumentRjcnReason,
  SalesDocumentItem._SalesDocumentRjcnReason._Text[1: Language = $parameters.P_Language].SalesDocumentRjcnReasonName AS SalesDocumentRjcnReasonName,
  _SOItemDeliveryDate.RequestedDeliveryDate AS RequestedDeliveryDate,
  _DeliveryStatus._Text[1: Language=$parameters.P_Language].DeliveryStatusDescription AS DeliveryStatusDescription,
  _SDDocumentRejectionStatus._Text[1: Language=$parameters.P_Language].SDDocumentRejectionStatusDesc AS SDDocumentRejectionStatusDesc
FROM I_SalesDocumentItem AS SalesDocumentItem
;