C_SupplierDfltReturnToAddr

DDL: C_SUPPLIERDFLTRETURNTOADDR SQL: CSUPPDFLTA Type: view CONSUMPTION Package: ODATA_SD_RETURN_V2

Supplier Default Return to Address

C_SupplierDfltReturnToAddr is a Consumption CDS View that provides data about "Supplier Default Return to Address" in SAP S/4HANA. It reads from 1 data source (I_CustSalesPartnerFunc) and exposes 23 fields with key fields Supplier, SalesOrganization, DistributionChannel, Division. It has 1 association to related views. Part of development package ODATA_SD_RETURN_V2.

Data Sources (1)

SourceAliasJoin Type
I_CustSalesPartnerFunc PartnerFunction inner

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_Customer _ShipToCustomer $projection.BPCustomerNumber = _ShipToCustomer.Customer

Annotations (11)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.sqlViewName CSUPPDFLTA view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
EndUserText.label Supplier Default Return to Address view

Fields (23)

KeyFieldSource TableSource FieldDescription
KEY Supplier Supplier Supplier Supplier
KEY SalesOrganization I_CustSalesPartnerFunc SalesOrganization Sales Organization
KEY DistributionChannel I_CustSalesPartnerFunc DistributionChannel RefDistCh-Cust/Mat.
KEY Division I_CustSalesPartnerFunc Division Internal Division ID
Customer Supplier Customer Sold-to Party
AddressID _ShipToCustomer AddressID Ship-to address
BPCustomerNumber I_CustSalesPartnerFunc BPCustomerNumber Customer
CityName111asSupplierAddress
AuthorizationGroup Supplier AuthorizationGroup AuthorizGroup
SupplierAccountGroup Supplier SupplierAccountGroup Account group
IsBusinessPurposeCompleted Supplier IsBusinessPurposeCompleted Purpose Completed
DataControllerSet Supplier DataControllerSet Data Ctrlr. Set
DataController1 Supplier DataController1 Data Controller
DataController2 Supplier DataController2 Data Controller
DataController3 Supplier DataController3 Data Controller
DataController4 Supplier DataController4 Data Controller
DataController5 Supplier DataController5 Data Controller
DataController6 Supplier DataController6 Data Controller
DataController7 Supplier DataController7 Data Controller
DataController8 Supplier DataController8 Data Controller
DataController9 Supplier DataController9 Data Controller
DataController10 Supplier DataController10 Data Controller
SupplyingPlant

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_SupplierDfltReturnToAddr.
-- 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: CSUPPDFLTA

CREATE VIEW C_SupplierDfltReturnToAddr AS
SELECT
  Supplier.Supplier AS Supplier,
  PartnerFunction.SalesOrganization AS SalesOrganization,
  PartnerFunction.DistributionChannel AS DistributionChannel,
  PartnerFunction.Division AS Division,
  Supplier.Customer AS Customer,
  _ShipToCustomer.AddressID AS AddressID,
  PartnerFunction.BPCustomerNumber AS BPCustomerNumber,
  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,
  cast( '' as abap.char( 4 )) AS SupplyingPlant
INNER JOIN I_CustSalesPartnerFunc AS PartnerFunction ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Customer AS _ShipToCustomer ON BPCustomerNumber = _ShipToCustomer.Customer  -- association [0..1]
;