P_TradingContractType
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)
| Source | Alias | Join Type |
|---|---|---|
| tb2be | Contract | inner |
| /accgo/t_cak_typ | ContractType | from |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | tctyp | /accgo/t_cak_typ | tctyp | |
| tdtpvwhenthenSelsePendasSide |
@AbapCatalog.sqlViewName: 'PTRDGCTRTYPE'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey:true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.type: #INHERITED
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.viewType: #BASIC
@VDM.private: true
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #L
define view P_TradingContractType
as select from /accgo/t_cak_typ as ContractType
inner join tb2be as Contract on ContractType.tctyp = Contract.tctyp and
Contract.tc_type_block = ' '
{
key ContractType.tctyp,
ContractType.contract_type,
ContractType.contract_sub_type,
ContractType.default_usage_ind,
Contract.tc_type_block,
case Contract.tdtpv
when ''
then 'S'
else 'P' end as Side
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"/ACCGO/T_CAK_TYP",
"TB2BE"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
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