C_InquiryRelatedDocsFFS
Related Documents for Inquiry Factsheet
C_InquiryRelatedDocsFFS is a Consumption CDS View that provides data about "Related Documents for Inquiry Factsheet" in SAP S/4HANA. It reads from 1 data source (I_SDDocumentProcessFlow) and exposes 15 fields with key fields SubsequentDocument, PrecedingDocument, DocRelationshipUUID. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_SDDocumentProcessFlow | SO | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_SalesDocument | _RelatedSalesDoc | $projection.SubsequentDocument = _RelatedSalesDoc.SalesDocument |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CINQYRLTDOCS | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Related Documents for Inquiry Factsheet | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Search.searchable | true | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| UI.headerInfo.typeName | Related Sales Document | view | |
| UI.headerInfo.typeNamePlural | Related Sales Documents | view | |
| UI.headerInfo.title.type | #STANDARD | view | |
| UI.headerInfo.title.value | SalesDocument | view |
Fields (15)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SubsequentDocument | I_SDDocumentProcessFlow | SubsequentDocument | |
| KEY | PrecedingDocument | I_SDDocumentProcessFlow | PrecedingDocument | SD Document |
| KEY | DocRelationshipUUID | I_SDDocumentProcessFlow | DocRelationshipUUID | |
| SalesDocument | I_SDDocumentProcessFlow | SubsequentDocument | ||
| SDDocumentCategory | _RelatedSalesDoc | SDDocumentCategory | Document Cat. | |
| SalesDocumentType | _RelatedSalesDoc | SalesDocumentType | Sales Doc. Type | |
| SalesDocumentDate | _RelatedSalesDoc | SalesDocumentDate | Document Date | |
| Status | ||||
| TotalNetAmount | _RelatedSalesDoc | TotalNetAmount | Total Net Amount | |
| TransactionCurrency | _RelatedSalesDoc | TransactionCurrency | Transaction Currency | |
| _SDDocumentCategory | _RelatedSalesDoc | _SDDocumentCategory | ||
| _SalesDocumentType | _RelatedSalesDoc | _SalesDocumentType | ||
| DistributionChannel | _RelatedSalesDoc | DistributionChannel | RefDistCh-Cust/Mat. | |
| SalesOrganization | _RelatedSalesDoc | SalesOrganization | Sales Organization | |
| OrganizationDivision | _RelatedSalesDoc | OrganizationDivision | Org. Division |
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 C_InquiryRelatedDocsFFS.
-- 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.
-- SQL view name: CINQYRLTDOCS
CREATE VIEW C_InquiryRelatedDocsFFS AS
SELECT
SO.SubsequentDocument AS SubsequentDocument,
SO.PrecedingDocument AS PrecedingDocument,
SO.DocRelationshipUUID AS DocRelationshipUUID,
SO.SubsequentDocument AS SalesDocument,
_RelatedSalesDoc.SDDocumentCategory AS SDDocumentCategory,
_RelatedSalesDoc.SalesDocumentType AS SalesDocumentType,
_RelatedSalesDoc.SalesDocumentDate AS SalesDocumentDate,
_RelatedSalesDoc._OverallSDProcessStatus._Text[1: Language=$session.system_language ].OverallSDProcessStatusDesc AS Status,
_RelatedSalesDoc.TotalNetAmount AS TotalNetAmount,
_RelatedSalesDoc.TransactionCurrency AS TransactionCurrency,
_RelatedSalesDoc._SDDocumentCategory AS _SDDocumentCategory,
_RelatedSalesDoc._SalesDocumentType AS _SalesDocumentType,
_RelatedSalesDoc.DistributionChannel AS DistributionChannel,
_RelatedSalesDoc.SalesOrganization AS SalesOrganization,
_RelatedSalesDoc.OrganizationDivision AS OrganizationDivision
FROM I_SDDocumentProcessFlow AS SO
LEFT OUTER JOIN I_SalesDocument AS _RelatedSalesDoc ON SubsequentDocument = _RelatedSalesDoc.SalesDocument -- 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