C_ShipToPartyByCustSalesAreaVH
Ship To Party By Sales Area
C_ShipToPartyByCustSalesAreaVH is a Consumption CDS View that provides data about "Ship To Party By Sales Area" in SAP S/4HANA. It reads from 1 data source (I_CustSalesPartnerFunc_2) and exposes 12 fields with key fields Customer, SalesOrganization, DistributionChannel, Division, PartnerCounter. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CustSalesPartnerFunc_2 | CustomerSalesPartnerFunction | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Customer | _ShipToParty | $projection.ShipToParty = _ShipToParty.Customer |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.dataCategory | #VALUE_HELP | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| Consumption.ranked | true | view | |
| Search.searchable | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| EndUserText.label | Ship To Party By Sales Area | view |
Fields (12)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Customer | I_CustSalesPartnerFunc_2 | Customer | Sold-to Party |
| KEY | SalesOrganization | I_CustSalesPartnerFunc_2 | SalesOrganization | Sales Organization |
| KEY | DistributionChannel | I_CustSalesPartnerFunc_2 | DistributionChannel | RefDistCh-Cust/Mat. |
| KEY | Division | I_CustSalesPartnerFunc_2 | Division | Internal Division ID |
| KEY | PartnerCounter | I_CustSalesPartnerFunc_2 | PartnerCounter | Partner counter |
| ShipToParty | Ship-to Party | |||
| ShipToPartyName | ||||
| OrganizationBPName1 | _ShipToParty | OrganizationBPName1 | Name 1 | |
| OrganizationBPName2 | _ShipToParty | OrganizationBPName2 | Name 2 | |
| _Customer | I_CustSalesPartnerFunc_2 | _Customer | ||
| _CustomerSalesArea | I_CustSalesPartnerFunc_2 | _CustomerSalesArea | ||
| _ShipToParty | _ShipToParty |
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_ShipToPartyByCustSalesAreaVH.
-- 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 C_ShipToPartyByCustSalesAreaVH AS
SELECT
CustomerSalesPartnerFunction.Customer AS Customer,
CustomerSalesPartnerFunction.SalesOrganization AS SalesOrganization,
CustomerSalesPartnerFunction.DistributionChannel AS DistributionChannel,
CustomerSalesPartnerFunction.Division AS Division,
CustomerSalesPartnerFunction.PartnerCounter AS PartnerCounter,
cast ( CustomerSalesPartnerFunction.BPCustomerNumber as kunnr preserving type ) AS ShipToParty,
cast ( _ShipToParty.CustomerName as vdm_ship_to_name preserving type ) AS ShipToPartyName,
_ShipToParty.OrganizationBPName1 AS OrganizationBPName1,
_ShipToParty.OrganizationBPName2 AS OrganizationBPName2,
CustomerSalesPartnerFunction._Customer AS _Customer,
CustomerSalesPartnerFunction._CustomerSalesArea AS _CustomerSalesArea
FROM I_CustSalesPartnerFunc_2 AS CustomerSalesPartnerFunction
LEFT OUTER JOIN I_Customer AS _ShipToParty ON ShipToParty = _ShipToParty.Customer -- 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