ARun_ValAddedSrvcSDItmBsc
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)
| Source | Alias | Join Type |
|---|---|---|
| vbak | _SalesDocument | from |
| vbap | _SalesDocumentItem | inner |
| I_SDDocumentCompletePartners | _SDDocumentCompletePartners | left_outer |
| I_SDDocumentCompletePartners | _SDDocumentPartnersSP | left_outer |
| I_SDDocumentCompletePartners | _SDDocumentPartnersWE | left_outer |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 */
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- 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