P_ACTPLNSTATKEYFIGITEMSEMTAG
P_ACTPLNSTATKEYFIGITEMSEMTAG is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_ActlPlnLineItemSemTagGLAcct, I_FinStatisticalKeyFigureItem) and exposes 138 fields with key fields Ledger, SourceLedger, CompanyCode, FiscalYear, FiscalPeriod.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_ActlPlnLineItemSemTagGLAcct | I_ActlPlnLineItemSemTagGLAcct | union_all |
| I_FinStatisticalKeyFigureItem | I_FinStatisticalKeyFigureItem | from |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PFIACTPLNSEMUN | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (138)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Ledger | Ledger | Ledger | |
| KEY | SourceLedger | Source Ledger | ||
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | FiscalYear | FiscalYear | G/L Fiscal Year | |
| KEY | FiscalPeriod | FiscalPeriod | Tax period | |
| KEY | StatisticalKeyFigureItem | StatisticalKeyFigureItem | Statistical Key Figure Item | |
| KEY | AccountingDocument | Journal Entry | ||
| KEY | LedgerGLLineItem | Journal Entry Item | ||
| KEY | FinancialPlanningReqTransSqnc | Request TSN | ||
| KEY | FinancialPlanningDataPacket | Data packet number | ||
| KEY | FinancialPlanningEntryItem | |||
| KEY | GLAccountHierarchy | |||
| KEY | SemanticTag | Semantic Tag | ||
| KEY | ValidityStartDate | Validity Start Date | ||
| KEY | ValidityEndDate | ValidTo | ||
| KEY | StatisticalKeyFigure | StatisticalKeyFigure | Statistical Key Figure | |
| LedgerFiscalYear | ||||
| StatisticalKeyFigureCategory | StatisticalKeyFigureCategory | Stat. Key Fig. Cat. | ||
| CostCenter | CostCenter | Cost Center | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| FunctionalArea | FunctionalArea | Sendr Fctl Area | ||
| PartnerFunctionalArea | Rec. Fntcl Area | |||
| PostingDate | Posting Date for GR | |||
| FiscalYearPeriod | FiscalYearPeriod | Period/Year | ||
| FiscalYearVariant | FiscalYearVariant | FY Variant | ||
| StatisticalKeyFigQtyUnit | StatisticalKeyFigQtyUnit | Unit/Area | ||
| StatisticalKeyFigureQuantity | StatisticalKeyFigureQuantity | |||
| PlanningCategory | Plan Category | |||
| CompanyCodeCurrency | Local Currency | |||
| AmountInCompanyCodeCurrency | Local Crcy Amt | |||
| InvertedAmtInCoCodeCurrency | ||||
| GlobalCurrency | GM Billing Element: Global Currency | |||
| AmountInGlobalCurrency | Amount in Global Currency | |||
| InvertedAmountInGlobalCurrency | ||||
| FreeDefinedCurrency1 | Freely Defined Currency 1 | |||
| AmountInFreeDefinedCurrency1 | Amount in Freely Defined Currency 1 | |||
| ActualPlanStatKeyFigureCode | ||||
| ProjectProfileCode | Project Profile | |||
| PartnerProjectProfileCode | Project Profile | |||
| PartnerAccountAssignment | Partner Account Assignment | |||
| PartnerAccountAssignmentType | Partner Account Assignment Type | |||
| AccountingDocumentHeaderText | Doc.Header Text | |||
| SemanticTagGroup | ||||
| CreationTime | Time of Change | |||
| CreationDate | Journal Entry Date | |||
| AccountingDocCreatedByUser | User which created overhead document | |||
| PersonnelNumber | Personnel No. | |||
| ChartOfAccounts | Node Class | |||
| GLAccount | General Ledger | |||
| AccountAssignment | Sender Acct Assgmt | |||
| AccountAssignmentType | AccountAssignmentType | Sndr AcctAssgmt Type | ||
| BusinessArea | BusinessArea | Business Area | ||
| Segment | Segment | Segment number | ||
| OrderID | OrderID | Order ID | ||
| SalesDocument | SalesOrder | SD Document | ||
| ServiceDocument | ServiceDocument | Transaction ID | ||
| ServiceDocumentType | ServiceDocumentType | Transaction Type | ||
| ControllingBusTransacType | ControllingBusTransacType | CO Bus. Transaction | ||
| Supplier | Supplier | |||
| Customer | Sold-to Party | |||
| AccountingDocumentType | Journal Entry Type | |||
| FinancialAccountType | Fin. Account Type | |||
| SalesOrganization | Sales Organization | |||
| DistributionChannel | RefDistCh-Cust/Mat. | |||
| OrganizationDivision | Org. Division | |||
| Plant | Valuation Area | |||
| AssetClass | Asset Class | |||
| KEY | SourceLedger | SourceLedger | Source Ledger | |
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | FiscalYear | FiscalYear | G/L Fiscal Year | |
| KEY | FiscalPeriod | FiscalPeriod | Tax period | |
| KEY | StatisticalKeyFigureItem | Statistical Key Figure Item | ||
| KEY | AccountingDocument | AccountingDocument | Journal Entry | |
| KEY | LedgerGLLineItem | LedgerGLLineItem | Journal Entry Item | |
| KEY | FinancialPlanningReqTransSqnc | FinancialPlanningReqTransSqnc | Request TSN | |
| KEY | FinancialPlanningDataPacket | FinancialPlanningDataPacket | Data packet number | |
| KEY | FinancialPlanningEntryItem | FinancialPlanningEntryItem | ||
| KEY | GLAccountHierarchy | GLAccountHierarchy | ||
| KEY | SemanticTag | SemanticTag | Semantic Tag | |
| KEY | ValidityStartDate | ValidityStartDate | Validity Start Date | |
| KEY | ValidityEndDate | ValidityEndDate | ValidTo | |
| KEY | StatisticalKeyFigure | Statistical Key Figure | ||
| LedgerFiscalYear | LedgerFiscalYear | |||
| StatisticalKeyFigureCategory | Stat. Key Fig. Cat. | |||
| CostCenter | CostCenter | Cost Center | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| FunctionalArea | FunctionalArea | Sendr Fctl Area | ||
| PartnerFunctionalArea | PartnerFunctionalArea | Rec. Fntcl Area | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| SKFPlanningCategory | ||||
| FiscalYearPeriod | FiscalYearPeriod | Period/Year | ||
| FiscalYearVariant | FiscalYearVariant | FY Variant | ||
| StatisticalKeyFigQtyUnit | Unit/Area | |||
| StatisticalKeyFigureQuantity | ||||
| PlanningCategory | PlanningCategory | Plan Category | ||
| ActualPlanCode | ActualPlanCode | |||
| CompanyCodeCurrency | CompanyCodeCurrency | Local Currency | ||
| AmountInCompanyCodeCurrency | AmountInCompanyCodeCurrency | Local Crcy Amt | ||
| InvertedAmtInCoCodeCurrency | ||||
| GlobalCurrency | GlobalCurrency | GM Billing Element: Global Currency | ||
| AmountInGlobalCurrency | AmountInGlobalCurrency | Amount in Global Currency | ||
| InvertedAmountInGlobalCurrency | ||||
| FreeDefinedCurrency1 | FreeDefinedCurrency1 | Freely Defined Currency 1 | ||
| AmountInFreeDefinedCurrency1 | AmountInFreeDefinedCurrency1 | Amount in Freely Defined Currency 1 | ||
| ActualPlanStatKeyFigureCode | ||||
| ProjectProfileCode | _ProjectBasicData | ProjectProfileCode | Project Profile | |
| PartnerProjectProfileCode | _PartnerProjectBasicData | ProjectProfileCode | Project Profile | |
| PartnerAccountAssignment | PartnerAccountAssignment | Partner Account Assignment | ||
| PartnerAccountAssignmentType | PartnerAccountAssignmentType | Partner Account Assignment Type | ||
| AccountingDocumentHeaderText | _JournalEntry | AccountingDocumentHeaderText | Doc.Header Text | |
| SemanticTagGroup | _SemanticTag | SemanticTagGroup | ||
| CreationTime | _JournalEntry | CreationTime | Time of Change | |
| CreationDate | _JournalEntry | AccountingDocumentCreationDate | Journal Entry Date | |
| AccountingDocCreatedByUser | _JournalEntry | AccountingDocCreatedByUser | User which created overhead document | |
| PersonnelNumber | PersonnelNumber | Personnel No. | ||
| ChartOfAccounts | ChartOfAccounts | Node Class | ||
| GLAccount | GLAccount | General Ledger | ||
| AccountAssignment | AccountAssignment | Sender Acct Assgmt | ||
| AccountAssignmentType | AccountAssignmentType | Sndr AcctAssgmt Type | ||
| BusinessArea | BusinessArea | Business Area | ||
| Segment | Segment | Segment number | ||
| OrderID | OrderID | Order ID | ||
| SalesDocument | SalesDocument | SD Document | ||
| ServiceDocument | ServiceDocument | Transaction ID | ||
| ServiceDocumentType | ServiceDocumentType | Transaction Type | ||
| ControllingBusTransacType | CO Bus. Transaction | |||
| Supplier | Supplier | Supplier | ||
| Customer | Customer | Sold-to Party | ||
| AccountingDocumentType | AccountingDocumentType | Journal Entry Type | ||
| FinancialAccountType | FinancialAccountType | Fin. Account Type | ||
| SalesOrganization | SalesOrganization | Sales Organization | ||
| DistributionChannel | DistributionChannel | RefDistCh-Cust/Mat. | ||
| OrganizationDivision | OrganizationDivision | Org. Division | ||
| Plant | Plant | Valuation Area | ||
| AssetClass | AssetClass | Asset Class | ||
| ValuationArea | ValuationArea | Valuation Area |
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_ACTPLNSTATKEYFIGITEMSEMTAG.
-- 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: PFIACTPLNSEMUN
CREATE VIEW P_ACTPLNSTATKEYFIGITEMSEMTAG AS
SELECT
Ledger,
cast('' as fins_ledger_pers) AS SourceLedger,
CompanyCode,
FiscalYear,
FiscalPeriod,
StatisticalKeyFigureItem,
cast('' as fis_belnr ) AS AccountingDocument,
cast('' as fis_docln) AS LedgerGLLineItem,
cast('' as fis_fp_request_tsn ) AS FinancialPlanningReqTransSqnc,
cast('' as fis_fp_data_packet) AS FinancialPlanningDataPacket,
cast(0 as fis_fp_entry_item) AS FinancialPlanningEntryItem,
cast ('' as fins_sem_tag_hryid) AS GLAccountHierarchy,
cast('' as fins_sem_tag) AS SemanticTag,
cast('' as datab ) AS ValidityStartDate,
cast('' as datab) AS ValidityEndDate,
StatisticalKeyFigure,
cast( FiscalYear as fis_ryear ) AS LedgerFiscalYear,
StatisticalKeyFigureCategory,
CostCenter,
ProfitCenter,
ControllingArea,
FunctionalArea,
cast('' as fis_sfkber) AS PartnerFunctionalArea,
cast('' as fis_budat) AS PostingDate,
FiscalYearPeriod,
FiscalYearVariant,
StatisticalKeyFigQtyUnit,
StatisticalKeyFigureQuantity,
cast('' as fcom_category) AS PlanningCategory,
cast('' as fis_hwaer) AS CompanyCodeCurrency,
cast(0 as fis_hsl) AS AmountInCompanyCodeCurrency,
cast(0 as fis_hsl_inverted) AS InvertedAmtInCoCodeCurrency,
cast('' as fis_rkcur) AS GlobalCurrency,
cast(0 as fis_ksl) AS AmountInGlobalCurrency,
cast(0 as fis_ksl_inverted) AS InvertedAmountInGlobalCurrency,
cast('' as fis_rocur) AS FreeDefinedCurrency1,
cast(0 as fis_osl) AS AmountInFreeDefinedCurrency1,
cast(cast( 'SK' as abap.char (2)) as fis_actlpln_skf_code) AS ActualPlanStatKeyFigureCode,
cast('' as profidproj) AS ProjectProfileCode,
cast('' as profidproj) AS PartnerProjectProfileCode,
cast('' as fis_paccas) AS PartnerAccountAssignment,
cast('' as fis_paccasty) AS PartnerAccountAssignmentType,
cast('' as bktxt) AS AccountingDocumentHeaderText,
cast('' as fins_sem_tag_group) AS SemanticTagGroup,
cast('' as ttet_dt_cr_time) AS CreationTime,
cast('' as fis_cpdat) AS CreationDate,
cast('' as fis_usnam) AS AccountingDocCreatedByUser,
cast('' as pernr_d) AS PersonnelNumber,
cast('' as fis_ktopl) AS ChartOfAccounts,
cast('' as fis_racct) AS GLAccount,
cast('' as accas) AS AccountAssignment,
AccountAssignmentType,
BusinessArea,
Segment,
OrderID,
SalesOrder AS SalesDocument,
ServiceDocument,
ServiceDocumentType,
ControllingBusTransacType,
cast('' as md_supplier) AS Supplier,
cast('' as kunnr) AS Customer,
cast('' as fis_blart) AS AccountingDocumentType,
cast('' as farp_koart) AS FinancialAccountType,
cast('' as vkorg ) AS SalesOrganization,
cast('' as vtweg) AS DistributionChannel,
cast('' as fis_spart) AS OrganizationDivision,
cast('' as werks_d) AS Plant,
cast('' as anlkl) AS AssetClass,
cast('' as fcom_category) AS SKFPlanningCategory,
ActualPlanCode,
ValuationArea
FROM I_FinStatisticalKeyFigureItem
-- UNION ALL with additional select branch(es): I_ActlPlnLineItemSemTagGLAcct
;
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