P_REASON_CODE_TRACE
P_REASON_CODE_TRACE is a Basic CDS View in SAP S/4HANA. It reads from 6 data sources and exposes 22 fields.
Data Sources (6)
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PREASONCODETRACE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.type | #INHERITED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.private | true | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view |
Fields (22)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| tkonn | wbhi | tkonn | ||
| tposn | wbhi | tposn | ||
| tposn_sub | wbhi | tposn_sub | ||
| matnr | wbhi | matnr | ||
| company_code | wbhk | company_code | ||
| vkorg | wbhk | vkorg | ||
| spart | wbhk | spart | ||
| vtweg | wbhk | vtweg | ||
| ekorg | wbhd | ekorg | ||
| tctyp | wbhk | tctyp | ||
| user_name | /accgo/t_rc_trac | user_name | ||
| persnumber | usr21 | persnumber | ||
| name_text | adrp | name_text | ||
| termno | /accgo/t_rc_trac | termno | ||
| is_basis | /accgo/t_rc_trac | is_basis | ||
| reason_code | /accgo/t_rc_trac | reason_code | ||
| pp_amount | /accgo/t_rc_trac | pp_amount | ||
| pp_currency | /accgo/t_rc_trac | pp_currency | ||
| pp_quantity | /accgo/t_rc_trac | pp_quantity | ||
| pp_unit | /accgo/t_rc_trac | pp_unit | ||
| timestamp | /accgo/t_rc_trac | timestamp | ||
| event | /accgo/t_rc_trac | event |
@AbapCatalog.sqlViewName: 'PREASONCODETRACE'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@ClientHandling.type: #INHERITED
@ClientHandling.algorithm: #SESSION_VARIABLE
//@EndUserText.label: 'Fetching and Process of Reason Code Tracing'
@VDM.private: true
@VDM.viewType: #BASIC
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #L
define view P_REASON_CODE_TRACE as select from wbhk as tc_k
inner join wbhi as tc_i on tc_k.tkonn = tc_i.tkonn
inner join /accgo/t_rc_trac as rc_table on tc_i.tkonn = rc_table.trading_contract
and tc_i.tposn = rc_table.item_number
and tc_i.tposn_sub = rc_table.commodity_subitem_number
left outer join wbhd as tc_d on tc_k.tkonn = tc_d.tkonn
left outer join usr21 as usr21 on rc_table.user_name = usr21.bname
left outer join adrp as adrp on usr21.persnumber = adrp.persnumber
{ tc_i.tkonn,
tc_i.tposn,
tc_i.tposn_sub,
tc_i.matnr,
tc_k.company_code,
tc_k.vkorg,
tc_k.spart,
tc_k.vtweg,
tc_d.ekorg,
tc_k.tctyp,
rc_table.user_name,
usr21.persnumber,
adrp.name_text,
rc_table.termno,
rc_table.condition_type,
rc_table.is_basis,
rc_table.reason_code,
rc_table.fetched_value,
rc_table.fetched_market_currency,
rc_table.fetched_priced_quantity,
rc_table.fetched_priced_unit,
rc_table.pp_amount,
rc_table.pp_currency,
rc_table.pp_quantity,
rc_table.pp_unit,
rc_table.recorded_value,
rc_table.recorded_market_currency,
rc_table.recorded_priced_quantity,
rc_table.recorded_priced_unit,
rc_table.timestamp,
rc_table.event
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"/ACCGO/T_RC_TRAC",
"ADRP",
"USR21",
"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