I_Businesspartnersalesarea

DDL: I_BUSINESSPARTNERSALESAREA SQL: IBUPASALESAREA Type: view COMPOSITE

Partner Sales area core view

I_Businesspartnersalesarea is a Composite CDS View that provides data about "Partner Sales area core view" in SAP S/4HANA. It reads from 1 data source (I_CustomerSalesArea) and exposes 90 fields with key fields SalesOrganization, DistributionChannel, Division, BusinessPartner. It has 23 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_CustomerSalesArea I_CustomerSalesArea from

Associations (23)

CardinalityTargetAliasCondition
[1..1] I_Customer_to_BusinessPartner _CustomerToBusinessPartner $projection.Customer = _CustomerToBusinessPartner.Customer
[0..1] E_BPSALESAREA_D _SalesAreaExt $projection.SalesOrganization = _SalesAreaExt.SalesOrganization and $projection.DistributionChannel = _SalesAreaExt.DistributionChannel and $projection.Division = _SalesAreaExt.Division and $projection.Customer = _SalesAreaExt.Customer
[0..1] I_DeliveryBlockReason _DelivBlkRsnValueHelp $projection.DeliveryIsBlockedForCustomer = _DelivBlkRsnValueHelp.DeliveryBlockReason
[0..*] I_DeliveryBlockReasonText _DeliveryBlockReasonText $projection.DeliveryIsBlockedForCustomer = _DeliveryBlockReasonText.DeliveryBlockReason
[0..1] I_BillingBlockReason _BillingBlockReasonValueHelp $projection.BillingIsBlockedForCustomer = _BillingBlockReasonValueHelp.BillingBlockReason
[0..*] I_BillingBlockReasonText _BillingBlockReasonText $projection.BillingIsBlockedForCustomer = _BillingBlockReasonText.BillingBlockReason
[0..1] I_SalesDistrict _SalesDistrictValueHelp $projection.SalesDistrict = _SalesDistrictValueHelp.SalesDistrict
[0..*] I_SalesDistrictText _SalesDistrictText $projection.SalesDistrict = _SalesDistrictText.SalesDistrict
[0..1] I_CustomerGroup _CustomerGroupValueHelp $projection.CustomerGroup = _CustomerGroupValueHelp.CustomerGroup
[0..*] I_CustomerGroupText _CustomerGroupText $projection.CustomerGroup = _CustomerGroupText.CustomerGroup
[0..1] I_CustomerStatisticsGroupVH _CustStatisticsGroupValueHelp $projection.CustomerStatisticsGroup = _CustStatisticsGroupValueHelp.CustomerStatisticsGroup
[0..*] I_CustomerStatisticsGroupText _CustStatisticsGroupText $projection.CustomerStatisticsGroup = _CustStatisticsGroupText.CustomerStatisticsGroup
[0..1] I_ShippingCondition _ShippingConditionValueHelp $projection.ShippingCondition = _ShippingConditionValueHelp.ShippingCondition
[0..*] I_ShippingConditionText _ShippingConditionText $projection.ShippingCondition = _ShippingConditionText.ShippingCondition
[0..1] I_CustomerAccountAssgmtGroup _AccountAssgmtGroupValueHelp $projection.CustomerAccountAssignmentGroup = _AccountAssgmtGroupValueHelp.CustomerAccountAssignmentGroup
[0..*] I_CustomerAccountAssgmtGroupT _CustAccountAssgmtGroupText $projection.CustomerAccountAssignmentGroup = _CustAccountAssgmtGroupText.CustomerAccountAssignmentGroup
[0..1] I_CustomerPriceGroup _CustomerPriceGroupValueHelp $projection.CustomerPriceGroup = _CustomerPriceGroupValueHelp.CustomerPriceGroup
[0..*] I_CustomerPriceGroupText _CustomerPriceGroupText $projection.CustomerPriceGroup = _CustomerPriceGroupText.CustomerPriceGroup
[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
[0..1] I_DeliveryPriority _DeliveryPriorityValueHelp $projection.DeliveryPriority = _DeliveryPriorityValueHelp.DeliveryPriority
[0..*] I_DeliveryPriorityText _DeliveryPriorityText $projection.DeliveryPriority = _DeliveryPriorityText.DeliveryPriority

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IBUPASALESAREA view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
VDM.viewType #COMPOSITE view
EndUserText.label Partner Sales area core view view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MASTER view

Fields (90)

KeyFieldSource TableSource FieldDescription
KEY SalesOrganization SalesOrganization Sales Organization
KEY DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
KEY Division Division Internal Division ID
KEY BusinessPartner
BusinessPartnerUUID _CustomerToBusinessPartner BusinessPartnerUUID UUID
Customer Customer Sold-to Party
CustomerGroup CustomerGroup Customer Group
SalesOffice SalesOffice Sales Office
SalesGroup SalesGroup Sales Group
AccountByCustomer AccountByCustomer Acct at cust.
CustomerABCClassification CustomerABCClassification ABC class
Currency Currency Valuation Crcy
CustomerPriceGroup CustomerPriceGroup CustPrice Group
CustomerPricingProcedure CustomerPricingProcedure CustPrcgProc.
DeliveryPriority DeliveryPriority Delivery Prior.
OrderCombinationIsAllowed OrderCombinationIsAllowed Order Combinat.
ShippingCondition ShippingCondition Shipping Conditions
SupplyingPlant SupplyingPlant Supplying Plant
DeliveryIsBlockedForCustomer DeliveryIsBlockedForCustomer Delivery block
BillingIsBlockedForCustomer BillingIsBlockedForCustomer Billing block
CompleteDeliveryIsDefined CompleteDeliveryIsDefined Complete Dlv.
PartialDeliveryIsAllowed PartialDeliveryIsAllowed Partial Deliv.
InvoiceDate InvoiceDate Run On
IncotermsClassification IncotermsClassification Incoterms
IncotermsTransferLocation IncotermsTransferLocation Incoterms 2
CustomerPaymentTerms CustomerPaymentTerms Pyt Terms
CustomerAccountAssignmentGroup CustomerAccountAssignmentGroup AccAssmtGrpCust
SalesDistrict SalesDistrict Sales District
OrderIsBlockedForCustomer OrderIsBlockedForCustomer Order block
PriceListType PriceListType Price List Tp.
IncotermsVersion IncotermsVersion Inco. Version
IncotermsLocation1 IncotermsLocation1 Inco. Location1
IncotermsLocation2 IncotermsLocation2 Inco. Location2
AuthorizationGroup AuthorizationGroup AuthorizGroup
PaymentGuaranteeProcedure PaymentGuaranteeProcedure Paym.guar.proc.
CustomerStatisticsGroup CustomerStatisticsGroup Matl stats grp
IsActiveEntity
IsBusinessPurposeCompleted IsBusinessPurposeCompleted Purpose Completed
InvoiceListSchedule InvoiceListSchedule Inv.List Sched.
ExchangeRateType ExchangeRateType Exch. Rate Type
ItemOrderProbabilityInPercent ItemOrderProbabilityInPercent Order Probab.
AdditionalCustomerGroup1 AdditionalCustomerGroup1 Customer Grp 1
AdditionalCustomerGroup2 AdditionalCustomerGroup2 Customer Grp 2
AdditionalCustomerGroup3 AdditionalCustomerGroup3 Customer Grp 3
AdditionalCustomerGroup4 AdditionalCustomerGroup4 Customer Grp 4
AdditionalCustomerGroup5 AdditionalCustomerGroup5 Customer Grp 5
UnderdelivTolrtdLmtRatioInPct UnderdelivTolrtdLmtRatioInPct Underdel. Tol.
OverdelivTolrtdLmtRatioInPct OverdelivTolrtdLmtRatioInPct Overdeliv. Tol.
MaxNmbrOfPartialDelivery MaxNmbrOfPartialDelivery Max.Part.Deliv.
SuplrIsRlvtForSettlmtMgmt SuplrIsRlvtForSettlmtMgmt Settlem. Mgmt.
ProductUnitGroup ProductUnitGroup UoM Group
SlsDocIsRlvtForProofOfDeliv SlsDocIsRlvtForProofOfDeliv POD-relevant
SlsUnlmtdOvrdelivIsAllwd SlsUnlmtdOvrdelivIsAllwd Unlimited Tol.
CreditControlArea CreditControlArea Credit Control Area
CustomerIsRebateRelevant CustomerIsRebateRelevant Rebate
InspSbstHasNoTimeOrQuantity InspSbstHasNoTimeOrQuantity Price determin.
ManualInvoiceMaintIsRelevant ManualInvoiceMaintIsRelevant Man.Inv.Maint.
SalesItemProposal SalesItemProposal Item proposal
CustProdProposalProcedure CustProdProposalProcedure PP cust. proc.
ProofOfDeliveryTime ProofOfDeliveryTime
ProofOfDeliveryTimeValue ProofOfDeliveryTimeValue POD timeframe
IncotermsSupChnLoc2AddlUUID IncotermsSupChnLoc2AddlUUID Location UUID
IncotermsSupChnLoc1AddlUUID IncotermsSupChnLoc1AddlUUID Location UUID
IncotermsSupChnDvtgLocAddlUUID IncotermsSupChnDvtgLocAddlUUID Location UUID
SalesBlockForCustomer SalesBlockForCustomer Sales Block
_DelivBlkRsnValueHelp _DelivBlkRsnValueHelp
_DeliveryBlockReasonText _DeliveryBlockReasonText
_BillingBlockReasonValueHelp _BillingBlockReasonValueHelp
_BillingBlockReasonText _BillingBlockReasonText
_SalesDistrictValueHelp _SalesDistrictValueHelp
_SalesDistrictText _SalesDistrictText
_CustomerGroupValueHelp _CustomerGroupValueHelp
_CustomerGroupText _CustomerGroupText
_ShippingConditionValueHelp _ShippingConditionValueHelp
_ShippingConditionText _ShippingConditionText
_AccountAssgmtGroupValueHelp _AccountAssgmtGroupValueHelp
_CustAccountAssgmtGroupText _CustAccountAssgmtGroupText
_CustomerPriceGroupValueHelp _CustomerPriceGroupValueHelp
_CustomerPriceGroupText _CustomerPriceGroupText
_CustStatisticsGroupValueHelp _CustStatisticsGroupValueHelp
_CustStatisticsGroupText _CustStatisticsGroupText
_FactoryCalendar _FactoryCalendar
_ExchangeRateType _ExchangeRateType
_CustomerToBusinessPartner _CustomerToBusinessPartner
_PaytGuarProcedVH _PaytGuarProcedVH
_IncotermsSupChnDvtgLoc _IncotermsSupChnDvtgLoc
_IncotermsSupChnLoc1 _IncotermsSupChnLoc1
_IncotermsSupChnLoc2 _IncotermsSupChnLoc2
_DeliveryPriorityValueHelp _DeliveryPriorityValueHelp
_DeliveryPriorityText _DeliveryPriorityText

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_Businesspartnersalesarea.
-- 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: IBUPASALESAREA

CREATE VIEW I_Businesspartnersalesarea AS
SELECT
  SalesOrganization,
  DistributionChannel,
  Division,
  _CustomerToBusinessPartner._BusinessPartner.BusinessPartner AS BusinessPartner,
  _CustomerToBusinessPartner.BusinessPartnerUUID AS BusinessPartnerUUID,
  Customer,
  CustomerGroup,
  SalesOffice,
  SalesGroup,
  AccountByCustomer,
  CustomerABCClassification,
  Currency,
  CustomerPriceGroup,
  CustomerPricingProcedure,
  DeliveryPriority,
  OrderCombinationIsAllowed,
  ShippingCondition,
  SupplyingPlant,
  DeliveryIsBlockedForCustomer,
  BillingIsBlockedForCustomer,
  CompleteDeliveryIsDefined,
  PartialDeliveryIsAllowed,
  InvoiceDate,
  IncotermsClassification,
  IncotermsTransferLocation,
  CustomerPaymentTerms,
  CustomerAccountAssignmentGroup,
  SalesDistrict,
  OrderIsBlockedForCustomer,
  PriceListType,
  IncotermsVersion,
  IncotermsLocation1,
  IncotermsLocation2,
  AuthorizationGroup,
  PaymentGuaranteeProcedure,
  CustomerStatisticsGroup,
  cast( 'X' as sdraft_is_active preserving type ) AS IsActiveEntity,
  IsBusinessPurposeCompleted,
  InvoiceListSchedule,
  ExchangeRateType,
  ItemOrderProbabilityInPercent,
  AdditionalCustomerGroup1,
  AdditionalCustomerGroup2,
  AdditionalCustomerGroup3,
  AdditionalCustomerGroup4,
  AdditionalCustomerGroup5,
  UnderdelivTolrtdLmtRatioInPct,
  OverdelivTolrtdLmtRatioInPct,
  MaxNmbrOfPartialDelivery,
  SuplrIsRlvtForSettlmtMgmt,
  ProductUnitGroup,
  SlsDocIsRlvtForProofOfDeliv,
  SlsUnlmtdOvrdelivIsAllwd,
  CreditControlArea,
  CustomerIsRebateRelevant,
  InspSbstHasNoTimeOrQuantity,
  ManualInvoiceMaintIsRelevant,
  SalesItemProposal,
  CustProdProposalProcedure,
  ProofOfDeliveryTime,
  ProofOfDeliveryTimeValue,
  IncotermsSupChnLoc2AddlUUID,
  IncotermsSupChnLoc1AddlUUID,
  IncotermsSupChnDvtgLocAddlUUID,
  SalesBlockForCustomer
FROM I_CustomerSalesArea
LEFT OUTER JOIN I_Customer_to_BusinessPartner AS _CustomerToBusinessPartner ON Customer = _CustomerToBusinessPartner.Customer  -- association [1..1]
LEFT OUTER JOIN E_BPSALESAREA_D AS _SalesAreaExt ON SalesOrganization = _SalesAreaExt.SalesOrganization AND DistributionChannel = _SalesAreaExt.DistributionChannel AND Division = _SalesAreaExt.Division AND Customer = _SalesAreaExt.Customer  -- association [0..1]
LEFT OUTER JOIN I_DeliveryBlockReason AS _DelivBlkRsnValueHelp ON DeliveryIsBlockedForCustomer = _DelivBlkRsnValueHelp.DeliveryBlockReason  -- association [0..1]
LEFT OUTER JOIN I_DeliveryBlockReasonText AS _DeliveryBlockReasonText ON DeliveryIsBlockedForCustomer = _DeliveryBlockReasonText.DeliveryBlockReason  -- association [0..*]
LEFT OUTER JOIN I_BillingBlockReason AS _BillingBlockReasonValueHelp ON BillingIsBlockedForCustomer = _BillingBlockReasonValueHelp.BillingBlockReason  -- association [0..1]
LEFT OUTER JOIN I_BillingBlockReasonText AS _BillingBlockReasonText ON BillingIsBlockedForCustomer = _BillingBlockReasonText.BillingBlockReason  -- association [0..*]
LEFT OUTER JOIN I_SalesDistrict AS _SalesDistrictValueHelp ON SalesDistrict = _SalesDistrictValueHelp.SalesDistrict  -- association [0..1]
LEFT OUTER JOIN I_SalesDistrictText AS _SalesDistrictText ON SalesDistrict = _SalesDistrictText.SalesDistrict  -- association [0..*]
LEFT OUTER JOIN I_CustomerGroup AS _CustomerGroupValueHelp ON CustomerGroup = _CustomerGroupValueHelp.CustomerGroup  -- association [0..1]
LEFT OUTER JOIN I_CustomerGroupText AS _CustomerGroupText ON CustomerGroup = _CustomerGroupText.CustomerGroup  -- association [0..*]
LEFT OUTER JOIN I_CustomerStatisticsGroupVH AS _CustStatisticsGroupValueHelp ON CustomerStatisticsGroup = _CustStatisticsGroupValueHelp.CustomerStatisticsGroup  -- association [0..1]
LEFT OUTER JOIN I_CustomerStatisticsGroupText AS _CustStatisticsGroupText ON CustomerStatisticsGroup = _CustStatisticsGroupText.CustomerStatisticsGroup  -- association [0..*]
LEFT OUTER JOIN I_ShippingCondition AS _ShippingConditionValueHelp ON ShippingCondition = _ShippingConditionValueHelp.ShippingCondition  -- association [0..1]
LEFT OUTER JOIN I_ShippingConditionText AS _ShippingConditionText ON ShippingCondition = _ShippingConditionText.ShippingCondition  -- association [0..*]
LEFT OUTER JOIN I_CustomerAccountAssgmtGroup AS _AccountAssgmtGroupValueHelp ON CustomerAccountAssignmentGroup = _AccountAssgmtGroupValueHelp.CustomerAccountAssignmentGroup  -- association [0..1]
LEFT OUTER JOIN I_CustomerAccountAssgmtGroupT AS _CustAccountAssgmtGroupText ON CustomerAccountAssignmentGroup = _CustAccountAssgmtGroupText.CustomerAccountAssignmentGroup  -- association [0..*]
LEFT OUTER JOIN I_CustomerPriceGroup AS _CustomerPriceGroupValueHelp ON CustomerPriceGroup = _CustomerPriceGroupValueHelp.CustomerPriceGroup  -- association [0..1]
LEFT OUTER JOIN I_CustomerPriceGroupText AS _CustomerPriceGroupText ON CustomerPriceGroup = _CustomerPriceGroupText.CustomerPriceGroup  -- association [0..*]
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]
LEFT OUTER JOIN I_DeliveryPriority AS _DeliveryPriorityValueHelp ON DeliveryPriority = _DeliveryPriorityValueHelp.DeliveryPriority  -- association [0..1]
LEFT OUTER JOIN I_DeliveryPriorityText AS _DeliveryPriorityText ON DeliveryPriority = _DeliveryPriorityText.DeliveryPriority  -- association [0..*]
;