P_CounterPartyWithSide

DDL: P_COUNTERPARTYWITHSIDE SQL: PCNTRPRTYWTSD Type: view COMPOSITE

P_CounterPartyWithSide is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_ACMCustomerCounterparty, lfa1) and exposes 21 fields with key field Counterparty.

Data Sources (2)

SourceAliasJoin Type
I_ACMCustomerCounterparty I_ACMCustomerCounterparty from
lfa1 lfa1 union

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName PCNTRPRTYWTSD view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #REQUIRED view
AccessControl.personalData.blockingIndicator IsBusinessPurposeCompleted view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
VDM.private true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view

Fields (21)

KeyFieldSource TableSource FieldDescription
KEY Counterparty Counterparty Supplier
CustomerName
CounterpartyFullName CounterpartyFullName
Side Side Side
Country Country Trip Ctry/Reg
Name1 ACMCounterpartyLastName PA text
Name2 AdditionalName Name2/First nme
City ACMCounterpartyCity Province
PostalCode PostalCode Postal Code
Region Region Resident Region
IsBusinessPurposeCompleted IsBusinessPurposeCompleted Purpose Completed
CustomerName
Side Side
Country land1 Trip Ctry/Reg
Name1 name1 PA text
Name2 name2 Name2/First nme
City ort01 Province
PostalCode pstlz Postal Code
Region regio Resident Region
IsBusinessPurposeCompleted cvp_xblck Purpose Completed
AuthorizationGroup begru AuthorizGroup

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 P_CounterPartyWithSide.
-- 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: PCNTRPRTYWTSD

CREATE VIEW P_CounterPartyWithSide AS
SELECT
  Counterparty,
  cast(substring(rtrim(replace(concat(ACMCounterpartyLastName, concat(' &', AdditionalName)), '&', ''),' '),1,80) as md_customer_name) AS CustomerName,
  CounterpartyFullName,
  Side,
  Country,
  ACMCounterpartyLastName AS Name1,
  AdditionalName AS Name2,
  ACMCounterpartyCity AS City,
  PostalCode,
  Region,
  IsBusinessPurposeCompleted,
  begru AS AuthorizationGroup
FROM I_ACMCustomerCounterparty
-- UNION with additional select branch(es): lfa1
;