P_TradingContractType

DDL: P_TRADINGCONTRACTTYPE SQL: PTRDGCTRTYPE Type: view BASIC

P_TradingContractType is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (tb2be, /accgo/t_cak_typ) and exposes 2 fields with key field tctyp.

Data Sources (2)

SourceAliasJoin Type
tb2be Contract inner
/accgo/t_cak_typ ContractType from

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PTRDGCTRTYPE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #BASIC view
VDM.private true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY tctyp /accgo/t_cak_typ tctyp Contract Type
tdtpvwhenthenSelsePendasSide

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_TradingContractType.
-- 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: PTRDGCTRTYPE

CREATE VIEW P_TradingContractType AS
SELECT
  ContractType.tctyp AS tctyp,
  case Contract.tdtpv when '' then 'S' else 'P' end as Side AS tdtpvwhenthenSelsePendasSide
FROM /accgo/t_cak_typ AS ContractType
INNER JOIN tb2be AS Contract ON /* join condition not captured in parsed metadata */
;