I_TrvlExpnRcptProductData
Travel Expense Receipt Product
I_TrvlExpnRcptProductData is a Basic CDS View that provides data about "Travel Expense Receipt Product" in SAP S/4HANA. It reads from 2 data sources (ptrv_recproduct, ptrv_product) and exposes 13 fields with key fields PersonnelNumber, TravelTripNumber, PeriodNumberOfTrip, PeriodSequentialNumber, TravelExpenseDocument.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| ptrv_recproduct | TrvlExpnProduct | from |
| ptrv_product | TrvlExpnProductDetail | inner |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Travel Expense Receipt Product | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view |
Fields (13)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PersonnelNumber | ptrv_recproduct | pernr | Personnel no. |
| KEY | TravelTripNumber | ptrv_recproduct | reinr | Trip Number |
| KEY | PeriodNumberOfTrip | ptrv_recproduct | perio | Time unit |
| KEY | PeriodSequentialNumber | ptrv_recproduct | pdvrs | Sequence Number |
| KEY | TravelExpenseDocument | ptrv_recproduct | belnr | SD Document |
| KEY | ParticipantSequenceNumber | ptrv_recproduct | lfdnr | Tax sequence |
| TravelExpenseProductIdentifier | ||||
| TravelExpenseProductName | ptrv_product | product_name | Product Name | |
| TravelExpenseProductCategory | ptrv_product | product_cat | Prod. Category | |
| TravelExpenseProductDrugCode | ptrv_product | prd_drug_code | Nat. Drug Code | |
| ProductValidStartDate | ||||
| ProductValidEndDate | ||||
| TravelExpenseProductIsObsolete | ptrv_product | prd_obsolete_flag | Obsolete |
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_TrvlExpnRcptProductData.
-- 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_TrvlExpnRcptProductData AS
SELECT
TrvlExpnProduct.pernr AS PersonnelNumber,
TrvlExpnProduct.reinr AS TravelTripNumber,
TrvlExpnProduct.perio AS PeriodNumberOfTrip,
TrvlExpnProduct.pdvrs AS PeriodSequentialNumber,
TrvlExpnProduct.belnr AS TravelExpenseDocument,
TrvlExpnProduct.lfdnr AS ParticipantSequenceNumber,
cast( TrvlExpnProductDetail.product_id as vdm_trvlexpnprodidfr preserving type ) AS TravelExpenseProductIdentifier,
TrvlExpnProductDetail.product_name AS TravelExpenseProductName,
TrvlExpnProductDetail.product_cat AS TravelExpenseProductCategory,
TrvlExpnProductDetail.prd_drug_code AS TravelExpenseProductDrugCode,
cast( TrvlExpnProductDetail.date_origin as vdm_prodvalidstartdate preserving type ) AS ProductValidStartDate,
cast( TrvlExpnProductDetail.date_expiration as vdm_prodvalidenddate preserving type ) AS ProductValidEndDate,
TrvlExpnProductDetail.prd_obsolete_flag AS TravelExpenseProductIsObsolete
FROM ptrv_recproduct AS TrvlExpnProduct
INNER JOIN ptrv_product AS TrvlExpnProductDetail ON /* join condition not captured in parsed metadata */
;
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