P_CounterPartyWithSide
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)
| Source | Alias | Join Type |
|---|---|---|
| I_ACMCustomerCounterparty | I_ACMCustomerCounterparty | from |
| lfa1 | lfa1 | union |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Counterparty | Counterparty | ||
| CustomerName | ||||
| CounterpartyFullName | CounterpartyFullName | |||
| Side | Side | |||
| Country | Country | |||
| Name1 | ACMCounterpartyLastName | |||
| Name2 | AdditionalName | |||
| City | ACMCounterpartyCity | |||
| PostalCode | PostalCode | |||
| Region | Region | |||
| IsBusinessPurposeCompleted | IsBusinessPurposeCompleted | |||
| CustomerName | ||||
| Side | ||||
| Country | land1 | |||
| Name1 | name1 | |||
| Name2 | name2 | |||
| City | ort01 | |||
| PostalCode | pstlz | |||
| Region | regio | |||
| IsBusinessPurposeCompleted | cvp_xblck | |||
| AuthorizationGroup | begru |
@AbapCatalog.sqlViewName: 'PCNTRPRTYWTSD'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #MANDATORY
@AccessControl.personalData.blocking: #REQUIRED
@AccessControl.personalData.blockingIndicator: 'IsBusinessPurposeCompleted'
@ClientHandling.type: #INHERITED
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.viewType: #COMPOSITE
@VDM.private: true
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #XL
define view P_CounterPartyWithSide
as select from I_ACMCustomerCounterparty
{
@ObjectModel.text.element: ['CustomerName']
key Counterparty,
@Semantics.text:true
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,
AuthorizationGroup
}
union
select from lfa1
{
key cast(lfa1.lifnr as lifnr preserving type) as Counterparty,
@Semantics.text: true
cast(substring(rtrim(replace(concat(name1, concat(' &@', name2)), '&@', ''),' '),1,80) as md_supplier_name) as CustomerName,
ltrim(cast(concat( concat(concat( concat(concat_with_space( anred, name1, 1 ), '/' ), stras ), '/'),
concat_with_space(concat_with_space(ort01,regio, 1 ), pstlz,1 ) ) as md_customer_full_name) , ' ' ) as CounterpartyFullName,
cast( 'M' as wlf_pr_side) as Side,
land1 as Country,
name1 as Name1,
name2 as Name2,
ort01 as City,
pstlz as PostalCode,
regio as Region,
cvp_xblck as IsBusinessPurposeCompleted,
begru as AuthorizationGroup
}
where
loevm is initial
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA