I_TravelAdvancesData
Travel Advances Data
I_TravelAdvancesData is a Basic CDS View that provides data about "Travel Advances Data" in SAP S/4HANA. It reads from 1 data source (trvs4_advance) and exposes 16 fields with key fields PersonnelNumber, TravelTripNumber, TravelExpnSequentialNumber, TravelRequestSequenceNumber. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| trvs4_advance | trvs4_advance | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | E_TravelAdvancesData | _ExtensionAdvance | $projection.PersonnelNumber = _ExtensionAdvance.PersonnelNumber and $projection.TravelTripNumber = _ExtensionAdvance.TravelTripNumber and $projection.TravelExpnSequentialNumber = _ExtensionAdvance.TravelExpnSequentialNumber and $projection.TravelRequestSequenceNumber = _ExtensionAdvance.TravelRequestSequenceNumber |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Travel Advances Data | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (16)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PersonnelNumber | pernr | Personnel no. | |
| KEY | TravelTripNumber | reinr | Trip Number | |
| KEY | TravelExpnSequentialNumber | hdvrs | Sequential no. | |
| KEY | TravelRequestSequenceNumber | adv_number | Sequence Number | |
| AdvanceIsDisplayOnly | display_only | Rcpt Display Only | ||
| TrvlAdvncAmtInAdvncCrcy | Amount | |||
| AdvanceCurrency | Currency | |||
| TravelRequestExchangeRate | Exchange Rate | |||
| CurrencyUnitFromRatio | s_factor | Ratio (from) | ||
| CurrencyUnitToRatio | t_factor | Ratio (to) | ||
| PaymentAmount | Max. Paymt Amt | |||
| PaymentCurrency | pay_curr | Accounting in | ||
| AdvanceIsInCash | Checkbox | |||
| PaymentDate | pay_date | Payment Date | ||
| AdvanceCurrencyName | adv_curr_name | Long Text | ||
| PaymentCurrencyName | pay_curr_name | Long Text |
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 I_TravelAdvancesData.
-- 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.
CREATE VIEW I_TravelAdvancesData AS
SELECT
pernr AS PersonnelNumber,
reinr AS TravelTripNumber,
hdvrs AS TravelExpnSequentialNumber,
adv_number AS TravelRequestSequenceNumber,
display_only AS AdvanceIsDisplayOnly,
cast ( adv_amount as vdm_advamt preserving type) AS TrvlAdvncAmtInAdvncCrcy,
cast ( adv_curr as vdm_advcrcy preserving type ) AS AdvanceCurrency,
cast ( exch_rate as vdm_ukurs_curr preserving type ) AS TravelRequestExchangeRate,
s_factor AS CurrencyUnitFromRatio,
t_factor AS CurrencyUnitToRatio,
cast ( pay_amount as vdm_pay_amount preserving type ) AS PaymentAmount,
pay_curr AS PaymentCurrency,
cast ( cash as vdm_cash preserving type ) AS AdvanceIsInCash,
pay_date AS PaymentDate,
adv_curr_name AS AdvanceCurrencyName,
pay_curr_name AS PaymentCurrencyName
FROM trvs4_advance
LEFT OUTER JOIN E_TravelAdvancesData AS _ExtensionAdvance ON PersonnelNumber = _ExtensionAdvance.PersonnelNumber AND TravelTripNumber = _ExtensionAdvance.TravelTripNumber AND TravelExpnSequentialNumber = _ExtensionAdvance.TravelExpnSequentialNumber AND TravelRequestSequenceNumber = _ExtensionAdvance.TravelRequestSequenceNumber -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA