I_CustSlsAreaAddrDepdntInfo

DDL: I_CUSTSLSAREAADDRDEPDNTINFO SQL: ICUSTSLSADDRDEP Type: view BASIC

Info Depdnt on Cust Addr and Sales Area

I_CustSlsAreaAddrDepdntInfo (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Database & Data Management

I_CustSlsAreaAddrDepdntInfo is a Basic CDS View that provides data about "Info Depdnt on Cust Addr and Sales Area" in SAP S/4HANA. It reads from 1 data source (knvv_addr) and exposes 27 fields with key fields Customer, SalesOrganization, DistributionChannel, Division, AddressID. It has 11 associations to related views.

SAP Help Documentation

CategoryCDS Views for Business Partner
StatusReleased
Purpose
This CDS view returns info-dependent customer address and sales area. To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations Users who want to use this CDS view must have a role with the following restriction types set to read access: BEGRU_KNA1 Authorization Group for Customers SALES_AREA Sales Area KTOKD Customer Account Group B_BUP_DCPD Business Partner Processing These restriction types are edited in the Maintain Business Roles app.

Structure
Important Fields Important fields in this view include the following: Field Name Data Element Label Customer KUNNR Customer SalesOrganization VKORG Sales Organization DistributionChannel VTWEG Distribution Channel Division SPART Division AddressID BU_ADDRNUM Address Number IncotermsClassification INCO1 Incoterms IncotermsLocation1 INCO2_L Incoterms Location 1 IncotermsLocation2 INCO3_L Incoterms Location 2 DeliveryIsBlocked LIFSD_V DelBlckSalesAr. SalesOffice VKBUR Sales Office SalesGroup VKGRP Sales Group ShippingCondition VSBED Shipping Conditions SupplyingPlant DWERK_EXT Delivering Plant IncotermsVersion INCOV Incoterms Version IncotermsSupChnLoc1AddlUUID /SAPAPO/LOCATION_UUID Location UUID IncotermsSupChnLoc2AddlUUID /SAPAPO/LOCATION_UUID Location UUID IncotermsSupChnDvtgLocAddlUUID /SAPAPO/LOCATION_UUID Location UUID

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessDatabase & Data Management
Application ComponentLO-MD-BP
CapabilitiesData Source in SQL Select, Association Target for Defining CDS Entities, Data Source for Defining CDS Entities
PackageDatabase & Data Management for SAP S/4HANA Cloud Private Edition

Documentation

Data Sources (1)

SourceAliasJoin Type
knvv_addr knvv_addr from

Associations (11)

CardinalityTargetAliasCondition
[1..1] I_Customer _Customer $projection.Customer = _Customer.Customer
[1..1] I_SalesOrganization _SalesOrganization $projection.SalesOrganization = _SalesOrganization.SalesOrganization
[1..1] I_DistributionChannel _DistributionChannel $projection.DistributionChannel = _DistributionChannel.DistributionChannel
[1..1] I_Division _Division $projection.Division = _Division.Division
[0..1] I_DeliveryBlockReason _DeliveryIsBlockedForCustomer $projection.DeliveryIsBlocked = _DeliveryIsBlockedForCustomer.DeliveryBlockReason
[1..1] I_Address_2 _AddressDefaultRepresentation $projection.AddressID = _AddressDefaultRepresentation.AddressID and _AddressDefaultRepresentation.AddressRepresentationCode = ' '
[1..1] I_CustomerSalesArea _CustomerSalesArea $projection.Customer = _CustomerSalesArea.Customer and $projection.SalesOrganization = _CustomerSalesArea.SalesOrganization and $projection.DistributionChannel = _CustomerSalesArea.DistributionChannel and $projection.Division = _CustomerSalesArea.Division
[0..1] E_CustSlsAreaAddrDepdntInfo _CustSlsAreaAddrDepdntInfoExt $projection.Customer = _CustSlsAreaAddrDepdntInfoExt.Customer and $projection.SalesOrganization = _CustSlsAreaAddrDepdntInfoExt.SalesOrganization and $projection.DistributionChannel = _CustSlsAreaAddrDepdntInfoExt.DistributionChannel and $projection.Division = _CustSlsAreaAddrDepdntInfoExt.Division and $projection.AddressID = _CustSlsAreaAddrDepdntInfoExt.AddressID
[1..1] I_TransportationLocation _IncotermsSupChnDvtgLoc $projection.IncotermsSupChnDvtgLocAddlUUID = _IncotermsSupChnDvtgLoc.LocationAdditionalUUID
[1..1] I_TransportationLocation _IncotermsSupChnLoc2 $projection.IncotermsSupChnLoc2AddlUUID = _IncotermsSupChnLoc2.LocationAdditionalUUID
[1..1] I_TransportationLocation _IncotermsSupChnLoc1 $projection.IncotermsSupChnLoc1AddlUUID = _IncotermsSupChnLoc1.LocationAdditionalUUID

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName ICUSTSLSADDRDEP view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.representativeKey AddressID view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MASTER view
VDM.viewType #BASIC view
EndUserText.label Info Depdnt on Cust Addr and Sales Area view

Fields (27)

KeyFieldSource TableSource FieldDescription
KEY Customer knvv_addr kunnr Customer Number
KEY SalesOrganization knvv_addr vkorg Sales Organization
KEY DistributionChannel knvv_addr vtweg Distribution Channel
KEY Division knvv_addr spart Source supplier
KEY AddressID knvv_addr adrnr Business Partner Address Number (from BUT020)
IncotermsClassification knvv_addr inco1 Incoterms (Part 1)
IncotermsLocation1 knvv_addr inco2_l Incoterms Location 1
IncotermsLocation2 knvv_addr inco3_l Incoterms Location 2
DeliveryIsBlocked knvv_addr lifsd Customer delivery block (sales area)
SalesOffice knvv_addr vkbur Sales Office
SalesGroup knvv_addr vkgrp Sales Group
ShippingCondition knvv_addr vsbed Shipping Conditions
SupplyingPlant knvv_addr vwerk Delivering Plant (Own or External)
IncotermsVersion knvv_addr incov Incoterms Version
IncotermsSupChnLoc1AddlUUID Incoterm Location 1
IncotermsSupChnLoc2AddlUUID Incoterm Location 2
IncotermsSupChnDvtgLocAddlUUID Dev. Destination
_CustomerSalesArea _CustomerSalesArea
_Customer _Customer
_AddressDefaultRepresentation _AddressDefaultRepresentation
_SalesOrganization _SalesOrganization
_DistributionChannel _DistributionChannel
_Division _Division
_DeliveryIsBlockedForCustomer _DeliveryIsBlockedForCustomer
_IncotermsSupChnDvtgLoc _IncotermsSupChnDvtgLoc
_IncotermsSupChnLoc1 _IncotermsSupChnLoc1
_IncotermsSupChnLoc2 _IncotermsSupChnLoc2

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_CustSlsAreaAddrDepdntInfo.
-- 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: ICUSTSLSADDRDEP

CREATE VIEW I_CustSlsAreaAddrDepdntInfo AS
SELECT
  knvv_addr.kunnr AS Customer,
  knvv_addr.vkorg AS SalesOrganization,
  knvv_addr.vtweg AS DistributionChannel,
  knvv_addr.spart AS Division,
  knvv_addr.adrnr AS AddressID,
  knvv_addr.inco1 AS IncotermsClassification,
  knvv_addr.inco2_l AS IncotermsLocation1,
  knvv_addr.inco3_l AS IncotermsLocation2,
  knvv_addr.lifsd AS DeliveryIsBlocked,
  knvv_addr.vkbur AS SalesOffice,
  knvv_addr.vkgrp AS SalesGroup,
  knvv_addr.vsbed AS ShippingCondition,
  knvv_addr.vwerk AS SupplyingPlant,
  knvv_addr.incov AS IncotermsVersion,
  cast( inco2_key as /sapapo/location_uuid ) AS IncotermsSupChnLoc1AddlUUID,
  cast( inco3_key as /sapapo/location_uuid ) AS IncotermsSupChnLoc2AddlUUID,
  cast( inco4_key as /sapapo/location_uuid ) AS IncotermsSupChnDvtgLocAddlUUID
FROM knvv_addr
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer  -- association [1..1]
LEFT OUTER JOIN I_SalesOrganization AS _SalesOrganization ON SalesOrganization = _SalesOrganization.SalesOrganization  -- association [1..1]
LEFT OUTER JOIN I_DistributionChannel AS _DistributionChannel ON DistributionChannel = _DistributionChannel.DistributionChannel  -- association [1..1]
LEFT OUTER JOIN I_Division AS _Division ON Division = _Division.Division  -- association [1..1]
LEFT OUTER JOIN I_DeliveryBlockReason AS _DeliveryIsBlockedForCustomer ON DeliveryIsBlocked = _DeliveryIsBlockedForCustomer.DeliveryBlockReason  -- association [0..1]
LEFT OUTER JOIN I_Address_2 AS _AddressDefaultRepresentation ON AddressID = _AddressDefaultRepresentation.AddressID AND _AddressDefaultRepresentation.AddressRepresentationCode = ' '  -- association [1..1]
LEFT OUTER JOIN I_CustomerSalesArea AS _CustomerSalesArea ON Customer = _CustomerSalesArea.Customer AND SalesOrganization = _CustomerSalesArea.SalesOrganization AND DistributionChannel = _CustomerSalesArea.DistributionChannel AND Division = _CustomerSalesArea.Division  -- association [1..1]
LEFT OUTER JOIN E_CustSlsAreaAddrDepdntInfo AS _CustSlsAreaAddrDepdntInfoExt ON Customer = _CustSlsAreaAddrDepdntInfoExt.Customer AND SalesOrganization = _CustSlsAreaAddrDepdntInfoExt.SalesOrganization AND DistributionChannel = _CustSlsAreaAddrDepdntInfoExt.DistributionChannel AND Division = _CustSlsAreaAddrDepdntInfoExt.Division AND AddressID = _CustSlsAreaAddrDepdntInfoExt.AddressID  -- association [0..1]
LEFT OUTER JOIN I_TransportationLocation AS _IncotermsSupChnDvtgLoc ON IncotermsSupChnDvtgLocAddlUUID = _IncotermsSupChnDvtgLoc.LocationAdditionalUUID  -- association [1..1]
LEFT OUTER JOIN I_TransportationLocation AS _IncotermsSupChnLoc2 ON IncotermsSupChnLoc2AddlUUID = _IncotermsSupChnLoc2.LocationAdditionalUUID  -- association [1..1]
LEFT OUTER JOIN I_TransportationLocation AS _IncotermsSupChnLoc1 ON IncotermsSupChnLoc1AddlUUID = _IncotermsSupChnLoc1.LocationAdditionalUUID  -- association [1..1]
;