ARun_ValAddedSrvcSDItmBsc

DDL: ARUN_VALADDEDSRVCSDITMBSC Type: view

ARun_ValAddedSrvcSDItmBsc is a CDS View in SAP S/4HANA. It reads from 5 data sources (vbak, vbap, I_SDDocumentCompletePartners, I_SDDocumentCompletePartners, I_SDDocumentCompletePartners) and exposes 14 fields.

Data Sources (5)

SourceAliasJoin Type
vbak _SalesDocument from
vbap _SalesDocumentItem inner
I_SDDocumentCompletePartners _SDDocumentCompletePartners left_outer
I_SDDocumentCompletePartners _SDDocumentPartnersSP left_outer
I_SDDocumentCompletePartners _SDDocumentPartnersWE left_outer

Annotations (9)

NameValueLevelField
ClientHandling.algorithm #AUTOMATED view
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #NOT_REQUIRED view
AbapCatalog.sqlViewName ARUNVASSDITMBSC view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view

Fields (14)

KeyFieldSource TableSource FieldDescription
SalesDocument vbap vbeln SD Sched. Agmt
ValAddedSrvcItemNumberInSD vbap fsh_vas_prnt_id Item
SalesDocumentItem vbap posnr WBS Element
OrderType vbak auart Sales Doc. Type
SalesOrganization vbak vkorg SD Sales Org.
DistributionChannel vbak vtweg RefDistCh-Cust/Mat.
Division vbak spart Source supplier
Plant vbap werks Receiving Plant
Material vbap matnr Vehicle Model
kunnrendasSoldToParty
CustomerendasShipToParty
ShippingGroupNumber vbap rfm_psst_group PSST Group
DeliveryGroup vbap grkor Delivery Group
kwmengendasRequestedRqmtQtyInBaseUnit

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 ARun_ValAddedSrvcSDItmBsc.
-- 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.

CREATE VIEW ARun_ValAddedSrvcSDItmBsc AS
SELECT
  _SalesDocumentItem.vbeln AS SalesDocument,
  _SalesDocumentItem.fsh_vas_prnt_id AS ValAddedSrvcItemNumberInSD,
  _SalesDocumentItem.posnr AS SalesDocumentItem,
  _SalesDocument.auart AS OrderType,
  _SalesDocument.vkorg AS SalesOrganization,
  _SalesDocument.vtweg AS DistributionChannel,
  _SalesDocument.spart AS Division,
  _SalesDocumentItem.werks AS Plant,
  _SalesDocumentItem.matnr AS Material,
  case when _SDDocumentPartnersSP.Customer is not null then _SDDocumentPartnersSP.Customer else _SalesDocument.kunnr end as SoldToParty AS kunnrendasSoldToParty,
  case when _SDDocumentPartnersWE.Customer is not null then _SDDocumentPartnersWE.Customer else _SDDocumentCompletePartners.Customer end as ShipToParty AS CustomerendasShipToParty,
  _SalesDocumentItem.rfm_psst_group AS ShippingGroupNumber,
  _SalesDocumentItem.grkor AS DeliveryGroup,
  case when ( _SalesDocumentItem.umziz != 0 ) and ( _SalesDocumentItem.umzin != 0 ) then _SalesDocumentItem.kwmeng * div(_SalesDocumentItem.umziz,_SalesDocumentItem.umzin) else _SalesDocumentItem.kwmeng end as RequestedRqmtQtyInBaseUnit AS kwmengendasRequestedRqmtQtyInBaseUnit
FROM vbak AS _SalesDocument
INNER JOIN vbap AS _SalesDocumentItem ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_SDDocumentCompletePartners AS _SDDocumentCompletePartners ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_SDDocumentCompletePartners AS _SDDocumentPartnersWE ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_SDDocumentCompletePartners AS _SDDocumentPartnersSP ON /* join condition not captured in parsed metadata */
;