P_SrvcDocIntOrdFinData
Service Document Internal Order Finance Data
P_SrvcDocIntOrdFinData is a Composite CDS View that provides data about "Service Document Internal Order Finance Data" in SAP S/4HANA. It reads from 2 data sources (I_GLAccountLineItemSemTag, I_UserSetGetParamForCtrlgArea) and exposes 41 fields with key fields Ledger, SourceLedger, CompanyCode, FiscalYear, AccountingDocument. It has 2 associations to related views. Part of development package CRMS4_ANALYTICS_COMMON.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_GLAccountLineItemSemTag | I_GLAccountLineItemSemTag | from |
| I_UserSetGetParamForCtrlgArea | I_UserSetGetParamForCtrlgArea | inner |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_SrvcDocFUPInternalOrder | _SrvcDocIntOrdData | $projection.OrderID = _SrvcDocIntOrdData.InternalOrder |
| [0..1] | P_Calendar | _YTDCalendar | _YTDCalendar.CalendarDate = $session.system_date |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.sqlViewName | PSRVCINTORDDAT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (41)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Ledger | Ledger | Ledger | |
| KEY | SourceLedger | SourceLedger | Source Ledger | |
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | FiscalYear | FiscalYear | G/L Fiscal Year | |
| KEY | AccountingDocument | AccountingDocument | Journal Entry | |
| KEY | LedgerGLLineItem | LedgerGLLineItem | Journal Entry Item | |
| KEY | GLAccountHierarchy | GLAccountHierarchy | ||
| KEY | SemanticTag | SemanticTag | Semantic Tag | |
| KEY | ValidityStartDate | ValidityStartDate | Validity Start Date | |
| KEY | ValidityEndDate | ValidityEndDate | ValidTo | |
| KEY | OrderID | OrderID | Order ID | |
| KEY | OrderItem | OrderItem | ||
| AccountAssignment | AccountAssignment | Sender Acct Assgmt | ||
| AccountAssignmentType | AccountAssignmentType | Sndr AcctAssgmt Type | ||
| ServiceDocument | _SrvcDocIntOrdData | ServiceDocument | Transaction ID | |
| ServiceDocumentType | _SrvcDocIntOrdData | ServiceDocumentType | Transaction Type | |
| CompanyCodeCurrency | CompanyCodeCurrency | Local Currency | ||
| RevenueAmountInCompanyCodeCrcy | RevenueAmountInCompanyCodeCrcy | |||
| CostAmountInCompanyCodeCrcy | CostAmountInCompanyCodeCrcy | |||
| RecognizedMarginAmtInCCCrcy | RecognizedMarginAmtInCCCrcy | |||
| CreationDate | CreationDate | Time Stamp | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| DocumentDate | DocumentDate | Journal Entry Date | ||
| FiscalYearVariant | I_GLAccountLineItemSemTag | FiscalYearVariant | FY Variant | |
| FiscalPeriod | FiscalPeriod | Tax period | ||
| FiscalQuarter | FiscalQuarter | |||
| SalesOrganization | SalesOrganization | Sales Organization | ||
| DistributionChannel | DistributionChannel | RefDistCh-Cust/Mat. | ||
| OrganizationDivision | OrganizationDivision | Org. Division | ||
| _Ledger | _Ledger | |||
| _SourceLedger | _SourceLedger | |||
| _CompanyCode | _CompanyCode | |||
| _FiscalYear | _FiscalYear | |||
| _JournalEntry | _JournalEntry | |||
| _Hierarchy | _Hierarchy | |||
| _SemanticTag | _SemanticTag | |||
| _CompanyCodeCurrency | _CompanyCodeCurrency | |||
| _FiscalYearVariant | _FiscalYearVariant | |||
| _SalesOrganization | _SalesOrganization | |||
| _DistributionChannel | _DistributionChannel | |||
| _Order | _Order |
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 P_SrvcDocIntOrdFinData.
-- 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 P_SrvcDocIntOrdFinData AS
SELECT
Ledger,
SourceLedger,
CompanyCode,
FiscalYear,
AccountingDocument,
LedgerGLLineItem,
GLAccountHierarchy,
SemanticTag,
ValidityStartDate,
ValidityEndDate,
OrderID,
OrderItem,
AccountAssignment,
AccountAssignmentType,
_SrvcDocIntOrdData.ServiceDocument AS ServiceDocument,
_SrvcDocIntOrdData.ServiceDocumentType AS ServiceDocumentType,
CompanyCodeCurrency,
RevenueAmountInCompanyCodeCrcy,
CostAmountInCompanyCodeCrcy,
RecognizedMarginAmtInCCCrcy,
CreationDate,
PostingDate,
DocumentDate,
I_GLAccountLineItemSemTag.FiscalYearVariant AS FiscalYearVariant,
FiscalPeriod,
FiscalQuarter,
SalesOrganization,
DistributionChannel,
OrganizationDivision
FROM I_GLAccountLineItemSemTag
INNER JOIN I_UserSetGetParamForCtrlgArea ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_SrvcDocFUPInternalOrder AS _SrvcDocIntOrdData ON OrderID = _SrvcDocIntOrdData.InternalOrder -- association [1..1]
LEFT OUTER JOIN P_Calendar AS _YTDCalendar ON _YTDCalendar.CalendarDate = $session.system_date -- 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