I_CustSlsAreaAddrDepdntTaxInfo

DDL: I_CUSTSLSAREAADDRDEPDNTTAXINFO SQL: ICUSTSLSADDRTAX Type: view BASIC Package: VDM_MD_BP

Customer Sales Area Address dep Tax

I_CustSlsAreaAddrDepdntTaxInfo (Basic)

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

Database & Data Management

I_CustSlsAreaAddrDepdntTaxInfo is a Basic CDS View that provides data about "Customer Sales Area Address dep Tax" in SAP S/4HANA. It reads from 2 data sources (knvi_addr, I_CustSalesAreaTax) and exposes 16 fields with key field Customer. It has 8 associations to related views. Part of development package VDM_MD_BP.

SAP Help Documentation

CategoryCDS Views for Business Partner
StatusReleased
Purpose
This CDS view returns customer sales area address-dependent tax information. This CDS view provides the data to answer the following business questions: What are the distribution channels? What is customer tax category and classification? 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 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 VTWKU RefDistCh-Cust/Mat. Division SPART Division AddressID BU_ADDRNUM Address Number DepartureCountry ALAND Departure Ctry/Reg. CustomerTaxCategory TATYP Tax Condition Type CustomerTaxClassification TAKLD Tax Classification

View on SAP Help Portal →

SAP API Hub

CategoryBasic
StateC1
Line of BusinessDatabase & Data Management
Application ComponentLO-MD-BP-2CL
CapabilitiesData Source in SQL Select,Association Target for Defining CDS Entities,Data Source for Defining CDS Entities
Extensible (Key User)No
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Released
PackageDatabase and Data Management for SAP S/4HANA Cloud Public Edition
Description <p>This CDS view returns customer sales area address-dependent tax information.</p> <p>This CDS view provides the data to answer the following business questions:</p> <ul> <li> <p>What are the distribution channels?</p> </li> <li> <p>What is customer tax category and classification?</p> </li> </ul> <p>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.</p>

Documentation

Data Sources (2)

SourceAliasJoin Type
knvi_addr knvi_addr from
I_CustSalesAreaTax SalesAreaTax inner

Associations (8)

CardinalityTargetAliasCondition
[1..1] I_CustSalesAreaTax _CustomerSalesAreaTax $projection.Customer = _CustomerSalesAreaTax.Customer and $projection.DepartureCountry = _CustomerSalesAreaTax.DepartureCountry and $projection.CustomerTaxCategory = _CustomerSalesAreaTax.CustomerTaxCategory and $projection.SalesOrganization = _CustomerSalesAreaTax.SalesOrganization and $projection.DistributionChannel = _CustomerSalesAreaTax.DistributionChannel and $projection.Division = _CustomerSalesAreaTax.Division
[1..1] I_Customer _Customer $projection.Customer = _Customer.Customer
[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] I_SalesOrganization _SalesOrganization $projection.SalesOrganization = _SalesOrganization.SalesOrganization
[0..1] I_DistributionChannel _DistributionChannel $projection.DistributionChannel = _DistributionChannel.DistributionChannel
[0..1] I_Division _Division $projection.Division = _Division.Division
[0..1] I_Country _Country $projection.DepartureCountry = _Country.Country

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName ICUSTSLSADDRTAX view
VDM.viewType #BASIC view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.representativeKey AddressID view
ObjectModel.modelingPattern #NONE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
EndUserText.label Customer Sales Area Address dep Tax view
Metadata.ignorePropagatedAnnotations true view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY Customer knvi_addr kunnr Customer Number
SalesOrganizationasSalesOrganization
DistributionChannelasDistributionChannel
DivisionasDivision
adrnrasAddressID
alandasDepartureCountry
tatypasCustomerTaxCategory
taxkdasCustomerTaxClassification
TaxClassification_CustomerSalesArea
_SalesOrganization _SalesOrganization
_DistributionChannel _DistributionChannel
_Division _Division
_Customer _Customer
_CustomerSalesAreaTax _CustomerSalesAreaTax
_Country _Country
_AddressDefaultRepresentation _AddressDefaultRepresentation

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_CustSlsAreaAddrDepdntTaxInfo.
-- 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: ICUSTSLSADDRTAX

CREATE VIEW I_CustSlsAreaAddrDepdntTaxInfo AS
SELECT
  knvi_addr.kunnr AS Customer
FROM knvi_addr
INNER JOIN I_CustSalesAreaTax AS SalesAreaTax ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CustSalesAreaTax AS _CustomerSalesAreaTax ON Customer = _CustomerSalesAreaTax.Customer AND DepartureCountry = _CustomerSalesAreaTax.DepartureCountry AND CustomerTaxCategory = _CustomerSalesAreaTax.CustomerTaxCategory AND SalesOrganization = _CustomerSalesAreaTax.SalesOrganization AND DistributionChannel = _CustomerSalesAreaTax.DistributionChannel AND Division = _CustomerSalesAreaTax.Division  -- association [1..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer  -- association [1..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 I_SalesOrganization AS _SalesOrganization ON SalesOrganization = _SalesOrganization.SalesOrganization  -- association [0..1]
LEFT OUTER JOIN I_DistributionChannel AS _DistributionChannel ON DistributionChannel = _DistributionChannel.DistributionChannel  -- association [0..1]
LEFT OUTER JOIN I_Division AS _Division ON Division = _Division.Division  -- association [0..1]
LEFT OUTER JOIN I_Country AS _Country ON DepartureCountry = _Country.Country  -- association [0..1]
;