I_TravelConcurDocToCmtmtDoc
Concur Travel Document to FGM Document
I_TravelConcurDocToCmtmtDoc is a Basic CDS View that provides data about "Concur Travel Document to FGM Document" in SAP S/4HANA. It reads from 1 data source (cte_d_fgm_p_attr) and exposes 13 fields with key fields ConcurSystemKey, ConcurDocumentType, ConcurDocumentID, ConcurDocumentRevisionNumber, CompanyCode. It has 3 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| cte_d_fgm_p_attr | attr | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_ConcurDocumentType | _ConcurDocumentType | $projection.ConcurDocumentType = _ConcurDocumentType.ConcurDocumentType |
| [0..*] | I_GLAccountLineItem | _CommitmentDocument | '0E' = _CommitmentDocument.SourceLedger and $projection.CompanyCode = _CommitmentDocument.CompanyCode and $projection.JournalEntry = _CommitmentDocument.AccountingDocument and $projection.FiscalYear = _CommitmentDocument.FiscalYear |
| [0..*] | I_FundsMgmtCommitmentEntryItem | _CommitmentEntryItem | $projection.ConcurDocumentKey = _CommitmentEntryItem.ReferenceDocument and $projection.ReferenceDocumentLogicalSystem = _CommitmentEntryItem.ReferenceDocumentLogicalSystem and '040' = _CommitmentEntryItem.FundsMgmtRefDocumentCategory and ( ( $projection.ConcurDocumentType = 'EO' and '53' = _CommitmentEntryItem.FundsMgmtValueType and 'CERO' = _CommitmentEntryItem.ReferenceDocumentType ) or( $projection.ConcurDocumentType = 'TR' and '52' = _CommitmentEntryItem.FundsMgmtValueType and 'CTR' = _CommitmentEntryItem.ReferenceDocumentType ) ) |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Concur Travel Document to FGM Document | 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 | #SAP_INTERNAL_API | view |
Fields (13)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ConcurSystemKey | cte_d_fgm_p_attr | system_key | System Key |
| KEY | ConcurDocumentType | cte_d_fgm_p_attr | document_type | Unit |
| KEY | ConcurDocumentID | cte_d_fgm_p_attr | document_id | Snapshot ID |
| KEY | ConcurDocumentRevisionNumber | cte_d_fgm_p_attr | revision_id | Revision ID |
| KEY | CompanyCode | cte_d_fgm_p_attr | bukrs | Value |
| KEY | JournalEntry | cte_d_fgm_p_attr | belnr | SD Document |
| KEY | FiscalYear | cte_d_fgm_p_attr | gjahr | Settlement Year |
| PostingDate | cte_d_fgm_p_attr | posting_date | Posting Date | |
| ConcurDocumentKey | doc | document_key | Doc. Key | |
| ReferenceDocumentLogicalSystem | ||||
| _ConcurDocumentType | _ConcurDocumentType | |||
| _CommitmentDocument | _CommitmentDocument | |||
| _CommitmentEntryItem | _CommitmentEntryItem |
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_TravelConcurDocToCmtmtDoc.
-- 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_TravelConcurDocToCmtmtDoc AS
SELECT
attr.system_key AS ConcurSystemKey,
attr.document_type AS ConcurDocumentType,
attr.document_id AS ConcurDocumentID,
attr.revision_id AS ConcurDocumentRevisionNumber,
attr.bukrs AS CompanyCode,
attr.belnr AS JournalEntry,
attr.gjahr AS FiscalYear,
attr.posting_date AS PostingDate,
doc.document_key AS ConcurDocumentKey,
cast( attr.system_key as abap.char(10) ) AS ReferenceDocumentLogicalSystem
FROM cte_d_fgm_p_attr AS attr
LEFT OUTER JOIN I_ConcurDocumentType AS _ConcurDocumentType ON ConcurDocumentType = _ConcurDocumentType.ConcurDocumentType -- association [1..1]
LEFT OUTER JOIN I_GLAccountLineItem AS _CommitmentDocument ON '0E' = _CommitmentDocument.SourceLedger AND CompanyCode = _CommitmentDocument.CompanyCode AND JournalEntry = _CommitmentDocument.AccountingDocument AND FiscalYear = _CommitmentDocument.FiscalYear -- association [0..*]
LEFT OUTER JOIN I_FundsMgmtCommitmentEntryItem AS _CommitmentEntryItem ON ConcurDocumentKey = _CommitmentEntryItem.ReferenceDocument AND ReferenceDocumentLogicalSystem = _CommitmentEntryItem.ReferenceDocumentLogicalSystem AND '040' = _CommitmentEntryItem.FundsMgmtRefDocumentCategory AND ( ( ConcurDocumentType = 'EO' AND '53' = _CommitmentEntryItem.FundsMgmtValueType AND 'CERO' = _CommitmentEntryItem.ReferenceDocumentType ) OR( ConcurDocumentType = 'TR' AND '52' = _CommitmentEntryItem.FundsMgmtValueType AND 'CTR' = _CommitmentEntryItem.ReferenceDocumentType ) ) -- association [0..*]
;
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