I_CustDepartmentAddrDepdntInfo

DDL: I_CUSTDEPARTMENTADDRDEPDNTINFO SQL: ICUSDEPADDEP Type: view BASIC

Department dependent on Customer Address

I_CustDepartmentAddrDepdntInfo (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_CustDepartmentAddrDepdntInfo is a Basic CDS View that provides data about "Department dependent on Customer Address" in SAP S/4HANA. It reads from 1 data source (wrf4_addr) and exposes 10 fields with key fields Customer, AddressID, CustomerDepartment. It has 2 associations to related views.

SAP Help Documentation

CategoryCDS Views for Business Partner
StatusReleased
Purpose
This CDS view returns department-dependent customer address details. 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 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 Elemenet Label Customer KUNNR Customer AddressID BU_ADDRNUM Address Number CustomerDepartment ABTNR Department ReceivingPoint EMPST Receiving Point RetailLocationSellingAreaSize VERFL_WWS Sales area RetailLocationSellingAreaUnit VERFE_WWS Sales area unit DepartmentLayout LAYVAR Layout DepartmentLayoutAreaSchema FLVAR Area Schema

View on SAP Help Portal →

SAP API Hub

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

Documentation

Data Sources (1)

SourceAliasJoin Type
wrf4_addr wrf4_addr from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_Customer _Customer $projection.Customer = _Customer.Customer
[1..1] I_Address_2 _AddressDefaultRepresentation $projection.AddressID = _AddressDefaultRepresentation.AddressID and _AddressDefaultRepresentation.AddressRepresentationCode = ' '

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName ICUSDEPADDEP view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Department dependent on Customer Address view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.representativeKey AddressID view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view
VDM.viewType #BASIC view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY Customer locnr CustomerNoPlant
KEY AddressID adrnr Business Partner Address Number (from BUT020)
KEY CustomerDepartment abtnr Department number
ReceivingPoint empst Receiving Point
RetailLocationSellingAreaSize verfl Sales area (floor space)
RetailLocationSellingAreaUnit verfe Sales area (floor space) unit
DepartmentLayout layvr Layout
DepartmentLayoutAreaSchema flvar Area schema
_Customer _Customer
_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_CustDepartmentAddrDepdntInfo.
-- 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: ICUSDEPADDEP

CREATE VIEW I_CustDepartmentAddrDepdntInfo AS
SELECT
  locnr AS Customer,
  adrnr AS AddressID,
  abtnr AS CustomerDepartment,
  empst AS ReceivingPoint,
  verfl AS RetailLocationSellingAreaSize,
  verfe AS RetailLocationSellingAreaUnit,
  layvr AS DepartmentLayout,
  flvar AS DepartmentLayoutAreaSchema
FROM wrf4_addr
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]
;