I_PrvtExpnOrSpltRcptsProd
Prvt Expn or Splt Rcpt Product
I_PrvtExpnOrSpltRcptsProd is a Composite CDS View that provides data about "Prvt Expn or Splt Rcpt Product" in SAP S/4HANA. It reads from 1 data source (I_TrvlExpnRcptProductData) and exposes 21 fields with key fields PersonnelNumber, TravelTripNumber, PeriodNumberOfTrip, PeriodSequentialNumber, TravelExpenseDocument. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_TrvlExpnRcptProductData | I_TrvlExpnRcptProductData | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_TravelExpenseReceipt | _TravelExpenseReceipt | $projection.PersonnelNumber = _TravelExpenseReceipt.PersonnelNumber and $projection.TravelTripNumber = _TravelExpenseReceipt.TravelTripNumber and $projection.TravelExpenseDocument = _TravelExpenseReceipt.TravelExpenseDocument and $projection.TravelReqUUID = _TravelExpenseReceipt.TravelReqUUID and $projection.SeqReqUUID = _TravelExpenseReceipt.SeqReqUUID |
| [1..1] | I_TravelExpense | _TravelExpense | $projection.PersonnelNumber = _TravelExpense.PersonnelNumber and $projection.TravelTripNumber = _TravelExpense.TravelTripNumber and $projection.TravelReqUUID = _TravelExpense.TravelReqUUID |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Prvt Expn or Splt Rcpt Product | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view |
Fields (21)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PersonnelNumber | PersonnelNumber | Personnel No. | |
| KEY | TravelTripNumber | TravelTripNumber | Trip Number | |
| KEY | PeriodNumberOfTrip | PeriodNumberOfTrip | Period Number | |
| KEY | PeriodSequentialNumber | PeriodSequentialNumber | Sequence Number | |
| KEY | TravelExpenseDocument | TravelExpenseDocument | Document Number | |
| KEY | ParticipantSequenceNumber | ParticipantSequenceNumber | Tax sequence | |
| KEY | TravelReqUUID | |||
| KEY | SeqReqUUID | |||
| KEY | PrvtExpnOrSpltRcptsSeqReqUUID | |||
| KEY | TravelExpenseReceiptProdUUID | |||
| TravelExpenseProductIdentifier | TravelExpenseProductIdentifier | |||
| TravelExpenseProductName | TravelExpenseProductName | Product Name | ||
| TravelExpenseProductCategory | TravelExpenseProductCategory | Prod. Category | ||
| TravelExpenseProductDrugCode | TravelExpenseProductDrugCode | Nat. Drug Code | ||
| ProductValidStartDate | ProductValidStartDate | Valid From | ||
| ProductValidEndDate | ProductValidEndDate | Valid to | ||
| TravelExpenseProductIsObsolete | TravelExpenseProductIsObsolete | Obsolete | ||
| PrvtSpltProdLoclLastChgdDteTme | ||||
| _TrvlExpnPrvtExpnOrSpltRcpts | _TrvlExpnPrvtExpnOrSpltRcpts | |||
| _TravelExpenseReceipt | _TravelExpenseReceipt | |||
| _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_PrvtExpnOrSpltRcptsProd.
-- 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_PrvtExpnOrSpltRcptsProd AS
SELECT
PersonnelNumber,
TravelTripNumber,
PeriodNumberOfTrip,
PeriodSequentialNumber,
TravelExpenseDocument,
ParticipantSequenceNumber,
cast ( hextobin('00000000000000000000000000000000') as sysuuid_x16 preserving type ) AS TravelReqUUID,
cast ( hextobin('00000000000000000000000000000000') as sysuuid_x16 preserving type ) AS SeqReqUUID,
cast ( hextobin('00000000000000000000000000000000') as sysuuid_x16 preserving type ) AS PrvtExpnOrSpltRcptsSeqReqUUID,
cast ( hextobin('00000000000000000000000000000000') as sysuuid_x16 preserving type ) AS TravelExpenseReceiptProdUUID,
TravelExpenseProductIdentifier,
TravelExpenseProductName,
TravelExpenseProductCategory,
TravelExpenseProductDrugCode,
ProductValidStartDate,
ProductValidEndDate,
TravelExpenseProductIsObsolete,
cast(0.0000000 as abp_lastchange_tstmpl) AS PrvtSpltProdLoclLastChgdDteTme
FROM I_TrvlExpnRcptProductData
LEFT OUTER JOIN I_TravelExpenseReceipt AS _TravelExpenseReceipt ON PersonnelNumber = _TravelExpenseReceipt.PersonnelNumber AND TravelTripNumber = _TravelExpenseReceipt.TravelTripNumber AND TravelExpenseDocument = _TravelExpenseReceipt.TravelExpenseDocument AND TravelReqUUID = _TravelExpenseReceipt.TravelReqUUID AND SeqReqUUID = _TravelExpenseReceipt.SeqReqUUID -- association [1..1]
LEFT OUTER JOIN I_TravelExpense AS _TravelExpense ON PersonnelNumber = _TravelExpense.PersonnelNumber AND TravelTripNumber = _TravelExpense.TravelTripNumber AND TravelReqUUID = _TravelExpense.TravelReqUUID -- association [1..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