I_ARunSalesOrderItem

DDL: I_ARUNSALESORDERITEM SQL: IARUNSOITEM Type: view BASIC Package: ARUN_RELEASE_CHECK

ARun relevant Sales Document Item

I_ARunSalesOrderItem is a Basic CDS View that provides data about "ARun relevant Sales Document Item" in SAP S/4HANA. It reads from 3 data sources (I_SupDmndMaterialPlant, vbak, vbap) and exposes 21 fields with key fields SalesDocument, SalesDocumentItem. Part of development package ARUN_RELEASE_CHECK.

Data Sources (3)

SourceAliasJoin Type
I_SupDmndMaterialPlant marc inner
vbak vbak from
vbap vbap inner

Annotations (10)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName IARUNSOITEM view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.viewType #BASIC view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XXL view
EndUserText.label ARun relevant Sales Document Item view

Fields (21)

KeyFieldSource TableSource FieldDescription
KEY SalesDocument vbap vbeln SD Sched. Agmt
KEY SalesDocumentItem vbap posnr WBS Element
RequestedRqmtQtyInBaseUnit vbap kwmeng Sales Quantity
SalesOrganization vbak vkorg SD Sales Org.
DistributionChannel vbak vtweg RefDistCh-Cust/Mat.
Division vbak spart Source supplier
OrderType vbak auart Sales Doc. Type
SoldToParty vbak kunnr Stock customer
ShipToParty
DeliveryGroup vbap grkor Delivery Group
ShippingGroupNumber vbap rfm_psst_group PSST Group
ARunSupplyAssgmtReleaseRule vbak fsh_rereg Release Rule
NetPriceAmount vbap netpr Price
DocumentCurrency vbap waerk Doc. Currency
Plant I_SupDmndMaterialPlant Plant Valuation Area
Material I_SupDmndMaterialPlant Material Vehicle Model
CrossPlantConfigurableProduct I_SupDmndMaterialPlant CrossPlantConfigurableProduct Cross-plant CP
vbtypGthenVGelseVCendasRequirementType
BaseUnit vbap meins Valuation Unit
HeaderDelivIncompletionStatus vbak uvvlk Delivery – Item
ItemDeliveryIncompletionStatus vbap uvvlk Delivery – Item

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 I_ARunSalesOrderItem.
-- 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: IARUNSOITEM

CREATE VIEW I_ARunSalesOrderItem AS
SELECT
  vbap.vbeln AS SalesDocument,
  vbap.posnr AS SalesDocumentItem,
  vbap.kwmeng AS RequestedRqmtQtyInBaseUnit,
  vbak.vkorg AS SalesOrganization,
  vbak.vtweg AS DistributionChannel,
  vbak.spart AS Division,
  vbak.auart AS OrderType,
  vbak.kunnr AS SoldToParty,
  case when we1.kunnr is not null then we1.kunnr else we2.kunnr end AS ShipToParty,
  vbap.grkor AS DeliveryGroup,
  vbap.rfm_psst_group AS ShippingGroupNumber,
  vbak.fsh_rereg AS ARunSupplyAssgmtReleaseRule,
  vbap.netpr AS NetPriceAmount,
  vbap.waerk AS DocumentCurrency,
  marc.Plant AS Plant,
  marc.Material AS Material,
  marc.CrossPlantConfigurableProduct AS CrossPlantConfigurableProduct,
  case when vbak.vbtyp = 'I' then 'VI' when vbak.vbtyp = 'G' then 'VG' else 'VC' end as RequirementType AS vbtypGthenVGelseVCendasRequirementType,
  vbap.meins AS BaseUnit,
  vbak.uvvlk AS HeaderDelivIncompletionStatus,
  vbap.uvvlk AS ItemDeliveryIncompletionStatus
FROM vbak
INNER JOIN vbap ON /* join condition not captured in parsed metadata */
INNER JOIN I_SupDmndMaterialPlant AS marc ON /* join condition not captured in parsed metadata */
;