I_ACMDetDefaultContractType
Interface view for determining default contract type
I_ACMDetDefaultContractType is a Basic CDS View that provides data about "Interface view for determining default contract type" in SAP S/4HANA. It reads from 2 data sources (tb2be, /accgo/t_cak_typ) and exposes 5 fields with key field TradingContractType. It has 1 association to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| tb2be | Contract | inner |
| /accgo/t_cak_typ | ContractType | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | P_TradingContractTypeDesc | _ContractTypeText | ContractType.tctyp = _ContractTypeText.tctyp |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IDETCNTRTYPE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ClientHandling.type | #INHERITED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Interface view for determining default contract type | view |
Fields (5)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | TradingContractType | /accgo/t_cak_typ | tctyp | |
| ACMTrdgContrTypeDesc | ||||
| TradingContractCategory | /accgo/t_cak_typ | contract_type | ||
| ACMIsTrdgContrTypeDefaultUsage | /accgo/t_cak_typ | default_usage_ind | ||
| ACMIsTrdgContrTypeBlock | tb2be | tc_type_block |
@AbapCatalog.sqlViewName: 'IDETCNTRTYPE'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@VDM.viewType: #BASIC
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ObjectModel.usageType.sizeCategory: #S
@ClientHandling.type: #INHERITED
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Interface view for determining default contract type'
define view I_ACMDetDefaultContractType
as select from /accgo/t_cak_typ as ContractType
inner join tb2be as Contract on ContractType.tctyp = Contract.tctyp
association [0..*] to P_TradingContractTypeDesc as _ContractTypeText on ContractType.tctyp = _ContractTypeText.tctyp
{
// Contract Type
key ContractType.tctyp as TradingContractType,
// Contract type text
_ContractTypeText[1: spras = $session.system_language ].bezei as ACMTrdgContrTypeDesc, //TradingContractDescription,
// Contract Category
ContractType.contract_type as TradingContractCategory,
// Contract Subcategory
case when ContractType.contract_sub_type = 'V'
then cast( 'X' as boole_d preserving type )
else cast( '' as boole_d preserving type )
end as ACMIsTrdgContrVehicleContract, //isVechileContract,
// Side
cast(case Contract.tdtpv
when ''
then 'V'
else 'M' end as wlf_pr_side) as Side,
// Contract Default indicator
ContractType.default_usage_ind as ACMIsTrdgContrTypeDefaultUsage,
// Contract Blocking Status
Contract.tc_type_block as ACMIsTrdgContrTypeBlock
}
where
Contract.tc_type_block = ''
and ContractType.default_usage_ind = 'X'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"P_TRADINGCONTRACTTYPEDESC",
"/ACCGO/T_CAK_TYP",
"TB2BE"
],
"ASSOCIATED":
[
"P_TRADINGCONTRACTTYPEDESC"
],
"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