C_SupplierReturnToAddressVH

DDL: C_SUPPLIERRETURNTOADDRESSVH SQL: CSUPLRRETTOADRVH Type: view CONSUMPTION Package: ODATA_SD_RETURN_V2

Supplier Return-To Address

C_SupplierReturnToAddressVH is a Consumption CDS View that provides data about "Supplier Return-To Address" in SAP S/4HANA. It reads from 2 data sources (P_SuplrReturnToPartnerFunction, I_Supplier) and exposes 34 fields with key fields Supplier, SalesOrganization, DistributionChannel, Division, ReturnToAddressPartnerFunction. Part of development package ODATA_SD_RETURN_V2.

Data Sources (2)

SourceAliasJoin Type
P_SuplrReturnToPartnerFunction PartnerFunction inner
I_Supplier Supplier from

Annotations (12)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.sqlViewName CSUPLRRETTOADRVH view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #REQUIRED view
VDM.viewType #CONSUMPTION view
ObjectModel.dataCategory #VALUE_HELP view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.sizeCategory #XL view
EndUserText.label Supplier Return-To Address view

Fields (34)

KeyFieldSource TableSource FieldDescription
KEY Supplier I_Supplier Supplier Supplier
KEY SalesOrganization P_SuplrReturnToPartnerFunction SalesOrganization Sales Organization
KEY DistributionChannel P_SuplrReturnToPartnerFunction DistributionChannel RefDistCh-Cust/Mat.
KEY Division P_SuplrReturnToPartnerFunction Division Internal Division ID
KEY ReturnToAddressPartnerFunction P_SuplrReturnToPartnerFunction PartnerFunction Partner Functn
KEY PartnerCounter P_SuplrReturnToPartnerFunction PartnerCounter Partner counter
BPCustomerNumber P_SuplrReturnToPartnerFunction BPCustomerNumber Customer
DefaultPartner P_SuplrReturnToPartnerFunction DefaultPartner Default Partner
AddressID ShipToCustomer AddressID Ship-to address
CustomerName ShipToCustomer CustomerName Name of Customer
StreetName
HouseNumber
CityName
PostalCode
Region
RegionName
Country
CountryName
CityName111asSupplierAddress
AuthorizationGroup I_Supplier AuthorizationGroup AuthorizGroup
SupplierAccountGroup I_Supplier SupplierAccountGroup Account group
IsBusinessPurposeCompleted I_Supplier IsBusinessPurposeCompleted Purpose Completed
DataControllerSet I_Supplier DataControllerSet Data Ctrlr. Set
DataController1 I_Supplier DataController1 Data Controller
DataController2 I_Supplier DataController2 Data Controller
DataController3 I_Supplier DataController3 Data Controller
DataController4 I_Supplier DataController4 Data Controller
DataController5 I_Supplier DataController5 Data Controller
DataController6 I_Supplier DataController6 Data Controller
DataController7 I_Supplier DataController7 Data Controller
DataController8 I_Supplier DataController8 Data Controller
DataController9 I_Supplier DataController9 Data Controller
DataController10 I_Supplier DataController10 Data Controller
_AddressRepresentation ShipToCustomer _AddressRepresentation

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_SupplierReturnToAddressVH.
-- 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: CSUPLRRETTOADRVH

CREATE VIEW C_SupplierReturnToAddressVH AS
SELECT
  Supplier.Supplier AS Supplier,
  PartnerFunction.SalesOrganization AS SalesOrganization,
  PartnerFunction.DistributionChannel AS DistributionChannel,
  PartnerFunction.Division AS Division,
  PartnerFunction.PartnerFunction AS ReturnToAddressPartnerFunction,
  PartnerFunction.PartnerCounter AS PartnerCounter,
  PartnerFunction.BPCustomerNumber AS BPCustomerNumber,
  PartnerFunction.DefaultPartner AS DefaultPartner,
  ShipToCustomer.AddressID AS AddressID,
  ShipToCustomer.CustomerName AS CustomerName,
  ShipToCustomer._AddressRepresentation.StreetName AS StreetName,
  ShipToCustomer._AddressRepresentation.HouseNumber AS HouseNumber,
  ShipToCustomer._AddressRepresentation.CityName AS CityName,
  ShipToCustomer._AddressRepresentation.PostalCode AS PostalCode,
  ShipToCustomer._AddressRepresentation.Region AS Region,
  ShipToCustomer._AddressRepresentation._Region._RegionText[1: Language=$session.system_language].RegionName AS RegionName,
  ShipToCustomer._AddressRepresentation.Country AS Country,
  ShipToCustomer._AddressRepresentation._Country._Text[1: Language=$session.system_language].CountryName AS CountryName,
  concat(ShipToCustomer.CustomerName, concat_with_space( ',', concat_with_space(ShipToCustomer._AddressRepresentation.StreetName, concat(ShipToCustomer._AddressRepresentation.HouseNumber, concat_with_space( ',', ShipToCustomer._AddressRepresentation.CityName, 1)), 1), 1)) as SupplierAddress AS CityName111asSupplierAddress,
  Supplier.AuthorizationGroup AS AuthorizationGroup,
  Supplier.SupplierAccountGroup AS SupplierAccountGroup,
  Supplier.IsBusinessPurposeCompleted AS IsBusinessPurposeCompleted,
  Supplier.DataControllerSet AS DataControllerSet,
  Supplier.DataController1 AS DataController1,
  Supplier.DataController2 AS DataController2,
  Supplier.DataController3 AS DataController3,
  Supplier.DataController4 AS DataController4,
  Supplier.DataController5 AS DataController5,
  Supplier.DataController6 AS DataController6,
  Supplier.DataController7 AS DataController7,
  Supplier.DataController8 AS DataController8,
  Supplier.DataController9 AS DataController9,
  Supplier.DataController10 AS DataController10,
  ShipToCustomer._AddressRepresentation AS _AddressRepresentation
FROM I_Supplier AS Supplier
INNER JOIN P_SuplrReturnToPartnerFunction AS PartnerFunction ON /* join condition not captured in parsed metadata */
;