I_TrdgContrFieldCatalogData
Trading Contract field catalog data
I_TrdgContrFieldCatalogData is a Basic CDS View that provides data about "Trading Contract field catalog data" in SAP S/4HANA. It reads from 5 data sources (wbhd, wbhi, wbgt, wbhk, mara) and exposes 17 fields with key fields ContractNum, TradingContractItem.
Data Sources (5)
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ICONTFLDCATALOG | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.type | #INHERITED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #BASIC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| EndUserText.label | Trading Contract field catalog data | view |
Fields (17)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ContractNum | wbhi | tkonn | |
| KEY | TradingContractItem | wbhi | tposn | |
| inco1_sdelseendasIncoterms | ||||
| CompanyCode | wbhk | company_code | ||
| ProfitCenter | wbhi | prctr | ||
| SalesOrganization | wbhk | vkorg | ||
| DistributionChannel | wbhk | vtweg | ||
| Division | wbhk | spart | ||
| PurchasingOrganization | wbhd | ekorg | ||
| PurchasingGroup | wbhd | ekgrp | ||
| ContractPlant | wbhi | werks | ||
| ContractMaterial | wbhi | matnr | ||
| TradingContractType | wbhk | tctyp | ||
| ModeOfTransport | nom_hdr | vktra | ||
| elifnelseendasCounterparty | ||||
| Commodity | mara | commodity | ||
| MaterialGroup | wbhi | matkl |
@AbapCatalog.sqlViewName: 'ICONTFLDCATALOG'
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.type: #INHERITED
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.viewType: #BASIC
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #L
@EndUserText.label: 'Trading Contract field catalog data'
define view I_TrdgContrFieldCatalogData
as select from wbhk as Header
inner join wbhi as ContractItem on Header.tkonn = ContractItem.tkonn
inner join wbgt as GenericDocInfo on ContractItem.tkonn = GenericDocInfo.vbeln
and ContractItem.tposn = GenericDocInfo.posnr
inner join wbhd as Business on ContractItem.tkonn = Business.tkonn
inner join mara as Material on ContractItem.matnr = Material.matnr
left outer to one join oijnomi as nom_itm on ContractItem.tkonn = nom_itm.tcnum
and ContractItem.tposn = nom_itm.tcitm
left outer to one join oijnomh as nom_hdr on nom_hdr.nomtk = nom_itm.nomtk
{
key ContractItem.tkonn as ContractNum,
key ContractItem.tposn as TradingContractItem,
case GenericDocInfo.side
when 'P' then Business.inco1_mm
when 'S' then Business.inco1_sd
else ''
end as Incoterms,
Header.company_code as CompanyCode,
ContractItem.prctr as ProfitCenter,
Header.vkorg as SalesOrganization,
Header.vtweg as DistributionChannel,
Header.spart as Division,
Business.ekorg as PurchasingOrganization,
Business.ekgrp as PurchasingGroup,
ContractItem.werks as ContractPlant,
ContractItem.matnr as ContractMaterial,
Header.tctyp as TradingContractType,
nom_hdr.vktra as ModeOfTransport,
case GenericDocInfo.side
when 'S' then Header.kunnr //CustomerName
when 'P' then Business.elifn //Supplier
else ''
end as Counterparty,
Material.commodity as Commodity,
ContractItem.matkl as MaterialGroup
}
where
Business.tposn = '000000';
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"MARA",
"OIJNOMH",
"OIJNOMI",
"WBGT",
"WBHD",
"WBHI",
"WBHK"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"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