I_TravelExpenseAdvance
Travel Advances
I_TravelExpenseAdvance is a Composite CDS View that provides data about "Travel Advances" in SAP S/4HANA. It reads from 1 data source (I_TravelAdvancesData) and exposes 21 fields with key fields PersonnelNumber, TravelTripNumber, TravelReqUUID, SeqReqUUID, TravelRequestSequenceNumber. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_TravelAdvancesData | I_TravelAdvancesData | 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 (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Travel Advances | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| AbapCatalog.extensibility.extensible | true | view | |
| AbapCatalog.extensibility.elementSuffix | TAD | view | |
| AbapCatalog.extensibility.allowNewDatasources | false | view | |
| AbapCatalog.extensibility.quota.maximumFields | 350 | view | |
| AbapCatalog.extensibility.quota.maximumBytes | 2240 | view |
Fields (21)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PersonnelNumber | PersonnelNumber | Personnel No. | |
| KEY | TravelTripNumber | TravelTripNumber | Trip Number | |
| KEY | TravelReqUUID | |||
| KEY | SeqReqUUID | |||
| KEY | TravelRequestSequenceNumber | TravelRequestSequenceNumber | Sequence Number | |
| TravelExpnSequentialNumber | TravelExpnSequentialNumber | Sequential Number | ||
| AdvanceIsDisplayOnly | AdvanceIsDisplayOnly | Advance Display Only | ||
| TrvlAdvncAmtInAdvncCrcy | TrvlAdvncAmtInAdvncCrcy | Amount | ||
| AdvanceCurrency | AdvanceCurrency | Advance Currency | ||
| TravelRequestExchangeRate | TravelRequestExchangeRate | Exchange Rate | ||
| CurrencyUnitFromRatio | CurrencyUnitFromRatio | Ratio (from) | ||
| CurrencyUnitToRatio | CurrencyUnitToRatio | Ratio (to) | ||
| PaymentAmount | PaymentAmount | Credit total | ||
| PaymentCurrency | PaymentCurrency | Payment Currency | ||
| AdvanceIsInCash | AdvanceIsInCash | Cash | ||
| PaymentDate | PaymentDate | Payment Date | ||
| AdvanceCurrencyName | AdvanceCurrencyName | Long Text | ||
| PaymentCurrencyName | PaymentCurrencyName | Long Text | ||
| LastChangeDateTime | ||||
| AdvncLoclLastChgdDteTme | ||||
| _TravelExpense | _TravelExpense |
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_TravelExpenseAdvance.
-- 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_TravelExpenseAdvance AS
SELECT
PersonnelNumber,
TravelTripNumber,
cast ( hextobin('00000000000000000000000000000000') as sysuuid_x16 preserving type ) AS TravelReqUUID,
cast ( hextobin('00000000000000000000000000000000') as sysuuid_x16 preserving type ) AS SeqReqUUID,
TravelRequestSequenceNumber,
TravelExpnSequentialNumber,
AdvanceIsDisplayOnly,
TrvlAdvncAmtInAdvncCrcy,
AdvanceCurrency,
TravelRequestExchangeRate,
CurrencyUnitFromRatio,
CurrencyUnitToRatio,
PaymentAmount,
PaymentCurrency,
AdvanceIsInCash,
PaymentDate,
AdvanceCurrencyName,
PaymentCurrencyName,
cast( tstmp_current_utctimestamp() as vdm_lastchangedon) AS LastChangeDateTime,
cast(0.0000000 as abp_lastchange_tstmpl) AS AdvncLoclLastChgdDteTme
FROM I_TravelAdvancesData
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