P_TRADINGCONTRACTCOUNTERPARTY

CDS View

P_TRADINGCONTRACTCOUNTERPARTY is a CDS View in S/4HANA. It contains 2 fields. 5 CDS views read from this table.

CDS Views using this table (5)

ViewTypeJoinVDMDescription
I_ACMTrdgContrCounterparty view from COMPOSITE Interface for Contract Counterparty
I_ACMTrdgContrMnlSelection view inner COMPOSITE Interface layer of Trading Contracts for manual selection
I_CounterPartyVH view from BASIC
P_Counter_Party_VH view from BASIC
P_TradingContractOverview view left_outer COMPOSITE

Fields (2)

KeyField CDS FieldsUsed in Views
Counterparty Counterparty 1
CustomerName CustomerName 1
@AbapCatalog.sqlViewName: 'PCOUNTERPARTY'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@ClientHandling.type: #INHERITED
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.viewType: #BASIC
@VDM.private: true
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ObjectModel.usageType.serviceQuality: #A // Changed from #C

@ObjectModel.usageType.sizeCategory: #XL
//define view P_TradingContractCounterparty as select from I_Customer {

//    key Customer as Counterparty,

//    CustomerName,

//    CustomerFullName as CounterpartyFullName

//} where DeletionIndicator is initial

//

//union

//

//select from I_Supplier {

//   key Supplier as Counterparty,

//   SupplierName as CustomerName,

//   SupplierFullName as CounterpartyFullName

//} where DeletionIndicator is initial


define view P_TradingContractCounterparty
  as select from kna1
{

      @ObjectModel.text.element: ['CustomerName']
  key kunnr                                                                                                            as Counterparty,
      @Semantics.text:true
      cast(substring(rtrim(replace(concat(name1, concat(' &@', name2)), '&@', ''),' '),1,80) as md_customer_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, //KF: different with S4


      name1                                                                                                            as ACMCounterpartyFirstName,  //+Free Text Search

      name2                                                                                                            as ACMCounterpartyLastName,   //+Free Text Search

      cvp_xblck                                                                                                        as IsBusinessPurposeCompleted
}
where
  loevm is initial

union

select from lfa1
{

  key lifnr                                                                                                             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_supplier_full_name) , ' ' ) as CounterpartyFullName,
      name1                                                                                                             as ACMCounterpartyFirstName, //+Free Text Search

      name2                                                                                                             as ACMCounterpartyLastName,  //+Free Text Search

      cvp_xblck                                                                                                         as IsBusinessPurposeCompleted
}
where
  loevm is initial
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"KNA1",
"LFA1"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/