P_ActlSemTagMarginMultiCrcy

DDL: P_ACTLSEMTAGMARGINMULTICRCY Type: view_entity COMPOSITE Package: FINS_COPA_REPORTING

Actl SemTag Margin with Multi Crcy

P_ActlSemTagMarginMultiCrcy is a Composite CDS View that provides data about "Actl SemTag Margin with Multi Crcy" in SAP S/4HANA. It reads from 2 data sources (I_GLAccountLineItemSemTag, I_PrjMargAnlysRptCrcyFld) and exposes 134 fields with key fields Ledger, SourceLedger, CompanyCode, FiscalYear, AccountingDocument. Part of development package FINS_COPA_REPORTING.

Data Sources (2)

SourceAliasJoin Type
I_GLAccountLineItemSemTag ActlLineItemSegTag from
I_PrjMargAnlysRptCrcyFld CurrencyField inner

Annotations (4)

NameValueLevelField
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
Metadata.ignorePropagatedAnnotations true view

Fields (134)

KeyFieldSource TableSource FieldDescription
KEY Ledger I_GLAccountLineItemSemTag Ledger Ledger
KEY SourceLedger I_GLAccountLineItemSemTag SourceLedger Source Ledger
KEY CompanyCode I_GLAccountLineItemSemTag CompanyCode Receiver Company Code
KEY FiscalYear I_GLAccountLineItemSemTag FiscalYear G/L Fiscal Year
KEY AccountingDocument I_GLAccountLineItemSemTag AccountingDocument Journal Entry
KEY LedgerGLLineItem I_GLAccountLineItemSemTag LedgerGLLineItem Journal Entry Item
KEY SemanticTag I_GLAccountLineItemSemTag SemanticTag Semantic Tag
KEY CurrencyField I_PrjMargAnlysRptCrcyFld CurrencyField
GLAccountHierarchy I_GLAccountLineItemSemTag GLAccountHierarchy
LedgerFiscalYear I_GLAccountLineItemSemTag LedgerFiscalYear
FiscalPeriod I_GLAccountLineItemSemTag FiscalPeriod Tax period
PostingDate I_GLAccountLineItemSemTag PostingDate Posting Date for GR
ProfitCenter I_GLAccountLineItemSemTag ProfitCenter Profit Center
OriginProfitCenter I_GLAccountLineItemSemTag OriginProfitCenter
SoldProduct I_GLAccountLineItemSemTag SoldProduct Product Sold
SoldProductGroup I_GLAccountLineItemSemTag SoldProductGroup Product Sold Group
Customer I_GLAccountLineItemSemTag Customer Sold-to Party
CustomerGroup I_GLAccountLineItemSemTag CustomerGroup Customer Group
PurchasingDocument I_GLAccountLineItemSemTag PurchasingDocument Purchasing Document
SalesOrder I_GLAccountLineItemSemTag SalesOrder SD Document
SalesOrderItem I_GLAccountLineItemSemTag SalesOrderItem Sales Order Item
SalesDocument I_GLAccountLineItemSemTag SalesDocument SD Document
SalesDocumentItem I_GLAccountLineItemSemTag SalesDocumentItem Sales Document Item
OrderID I_GLAccountLineItemSemTag OrderID Order ID
OrderCategory I_GLAccountLineItemSemTag OrderCategory Order Category
ConditionContract I_GLAccountLineItemSemTag ConditionContract Condition Contract
FiscalYearPeriod I_GLAccountLineItemSemTag FiscalYearPeriod Period/Year
ChartOfAccounts I_GLAccountLineItemSemTag ChartOfAccounts Node Class
GLAccount I_GLAccountLineItemSemTag GLAccount General Ledger
SalesOrganization I_GLAccountLineItemSemTag SalesOrganization Sales Organization
CustomerSupplierCountry I_GLAccountLineItemSemTag CustomerSupplierCountry Customer or Supplier Country/Region
CustomerSupplierIndustry I_GLAccountLineItemSemTag CustomerSupplierIndustry Industry
SalesDistrict I_GLAccountLineItemSemTag SalesDistrict Sales District
ShipToParty I_GLAccountLineItemSemTag ShipToParty Ship-To Party (obsolete)
BillToParty I_GLAccountLineItemSemTag BillToParty Inv. Recipient
ControllingArea I_GLAccountLineItemSemTag ControllingArea Controlling Area
CostSourceUnit I_GLAccountLineItemSemTag CostSourceUnit
BusinessTransactionType I_GLAccountLineItemSemTag BusinessTransactionType Bus.transaction
SubLedgerAcctLineItemType I_GLAccountLineItemSemTag SubLedgerAcctLineItemType SLALineItemType
DistributionChannel I_GLAccountLineItemSemTag DistributionChannel RefDistCh-Cust/Mat.
OrganizationDivision I_GLAccountLineItemSemTag OrganizationDivision Org. Division
BaseUnit I_GLAccountLineItemSemTag BaseUnit Unit of Measure
OrderType I_GLAccountLineItemSemTag OrderType Order Type
Segment I_GLAccountLineItemSemTag Segment Segment number
WBSElement I_GLAccountLineItemSemTag WBSElement WBS Internal ID
WBSElementInternalID I_GLAccountLineItemSemTag WBSElementInternalID WBS Internal ID
ProjectNetwork I_GLAccountLineItemSemTag ProjectNetwork Order
FunctionalArea I_GLAccountLineItemSemTag FunctionalArea Sendr Fctl Area
Plant I_GLAccountLineItemSemTag Plant Valuation Area
FiscalYearVariant I_GLAccountLineItemSemTag FiscalYearVariant FY Variant
ServiceContract I_GLAccountLineItemSemTag ServiceContract Transaction ID
ServiceContractItem I_GLAccountLineItemSemTag ServiceContractItem Item Number in Doc.
BusinessSolutionOrder I_GLAccountLineItemSemTag BusinessSolutionOrder Solution Order
BusinessSolutionOrderItem I_GLAccountLineItemSemTag BusinessSolutionOrderItem Solution Order Item
ProviderContract I_GLAccountLineItemSemTag ProviderContract Contract
ProviderContractItem I_GLAccountLineItemSemTag ProviderContractItem Contract Item
ServiceContractType I_GLAccountLineItemSemTag ServiceContractType
AccountAssignmentType I_GLAccountLineItemSemTag AccountAssignmentType Sndr AcctAssgmt Type
ServiceDocument I_GLAccountLineItemSemTag ServiceDocument Transaction ID
ServiceDocumentItem I_GLAccountLineItemSemTag ServiceDocumentItem Service Document
ServiceDocumentType I_GLAccountLineItemSemTag ServiceDocumentType Transaction Type
Project I_GLAccountLineItemSemTag Project WBS Element
ProjectInternalID I_GLAccountLineItemSemTag ProjectInternalID Project Def.
ProjectExternalID
Supplier I_GLAccountLineItemSemTag Supplier Supplier
AccountingDocumentType I_GLAccountLineItemSemTag AccountingDocumentType Journal Entry Type
FinancialAccountType I_GLAccountLineItemSemTag FinancialAccountType Fin. Account Type
CostCenter I_GLAccountLineItemSemTag CostCenter Cost Center
AssetClass I_GLAccountLineItemSemTag AssetClass Asset Class
ValuationArea I_GLAccountLineItemSemTag ValuationArea Valuation Area
BillableControl I_GLAccountLineItemSemTag BillableControl Billable Control
ServicesRenderedDate I_GLAccountLineItemSemTag ServicesRenderedDate Services Rendered Date
Material I_GLAccountLineItemSemTag Material Vehicle Model
WorkPackage I_GLAccountLineItemSemTag WorkPackage Plan Item
WorkItem I_GLAccountLineItemSemTag WorkItem Work Item ID
CostAnalysisResource I_GLAccountLineItemSemTag CostAnalysisResource
TimeSheetOvertimeCategory I_GLAccountLineItemSemTag TimeSheetOvertimeCategory
PersonnelNumber I_GLAccountLineItemSemTag PersonnelNumber Personnel No.
OriginCostCtrActivityType I_GLAccountLineItemSemTag OriginCostCtrActivityType
PartnerCostCtrActivityType I_GLAccountLineItemSemTag PartnerCostCtrActivityType Partner Cost Center Activity Type
IsCommitment I_GLAccountLineItemSemTag IsCommitment
ControllingDebitCreditCode I_GLAccountLineItemSemTag ControllingDebitCreditCode Dr/Cr ind. CO
DocumentItemText I_GLAccountLineItemSemTag DocumentItemText Text
dec232asAmountInDisplayCurrency
dec232asFixedAmountInDspCrcy
Quantity
_Supplier I_GLAccountLineItemSemTag _Supplier
_AccountingDocumentType I_GLAccountLineItemSemTag _AccountingDocumentType
_CurrentProfitCenter I_GLAccountLineItemSemTag _CurrentProfitCenter
_CurrentCostCenter I_GLAccountLineItemSemTag _CurrentCostCenter
_ServiceDocument I_GLAccountLineItemSemTag _ServiceDocument
_PartnerCostCtrActivityType I_GLAccountLineItemSemTag _PartnerCostCtrActivityType
_Project I_GLAccountLineItemSemTag _Project
_ProjectBasicData I_GLAccountLineItemSemTag _ProjectBasicData
_Ledger I_GLAccountLineItemSemTag _Ledger
_SourceLedger I_GLAccountLineItemSemTag _SourceLedger
_CompanyCode I_GLAccountLineItemSemTag _CompanyCode
_SemanticTag I_GLAccountLineItemSemTag _SemanticTag
_FiscalYear I_GLAccountLineItemSemTag _FiscalYear
_Customer I_GLAccountLineItemSemTag _Customer
_CustomerGroup I_GLAccountLineItemSemTag _CustomerGroup
_PurchasingDocument I_GLAccountLineItemSemTag _PurchasingDocument
_SoldProduct I_GLAccountLineItemSemTag _SoldProduct
_SoldProductGroup I_GLAccountLineItemSemTag _SoldProductGroup
_ProfitCenter I_GLAccountLineItemSemTag _ProfitCenter
_OriginProfitCenter I_GLAccountLineItemSemTag _OriginProfitCenter
_ControllingArea I_GLAccountLineItemSemTag _ControllingArea
_CostSourceUnit I_GLAccountLineItemSemTag _CostSourceUnit
_SalesDocument I_GLAccountLineItemSemTag _SalesDocument
_SalesOrder I_GLAccountLineItemSemTag _SalesOrder
_SalesOrderItem I_GLAccountLineItemSemTag _SalesOrderItem
_Order I_GLAccountLineItemSemTag _Order
_DistributionChannel I_GLAccountLineItemSemTag _DistributionChannel
_BaseUnit I_GLAccountLineItemSemTag _BaseUnit
_Segment I_GLAccountLineItemSemTag _Segment
_ChartOfAccounts I_GLAccountLineItemSemTag _ChartOfAccounts
_GLAccountInChartOfAccounts I_GLAccountLineItemSemTag _GLAccountInChartOfAccounts
_WBSElement I_GLAccountLineItemSemTag _WBSElement
_FunctionalArea I_GLAccountLineItemSemTag _FunctionalArea
_Plant I_GLAccountLineItemSemTag _Plant
_SalesOrganization I_GLAccountLineItemSemTag _SalesOrganization
_SalesDistrict I_GLAccountLineItemSemTag _SalesDistrict
_CustomerSupplierCountry I_GLAccountLineItemSemTag _CustomerSupplierCountry
_CustomerSupplierIndustry I_GLAccountLineItemSemTag _CustomerSupplierIndustry
_ShipToParty I_GLAccountLineItemSemTag _ShipToParty
_BillToParty I_GLAccountLineItemSemTag _BillToParty
_FiscalYearVariant I_GLAccountLineItemSemTag _FiscalYearVariant
_WBSElementBasicData I_GLAccountLineItemSemTag _WBSElementBasicData
_Material I_GLAccountLineItemSemTag _Material
_WorkPackage I_GLAccountLineItemSemTag _WorkPackage
_WorkPackageWorkItem I_GLAccountLineItemSemTag _WorkPackageWorkItem
_CostAnalysisResource I_GLAccountLineItemSemTag _CostAnalysisResource
_Employment I_GLAccountLineItemSemTag _Employment
_OriginCostCtrActivityType I_GLAccountLineItemSemTag _OriginCostCtrActivityType

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_ActlSemTagMarginMultiCrcy.
-- 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_ActlSemTagMarginMultiCrcy AS
SELECT
  ActlLineItemSegTag.Ledger AS Ledger,
  ActlLineItemSegTag.SourceLedger AS SourceLedger,
  ActlLineItemSegTag.CompanyCode AS CompanyCode,
  ActlLineItemSegTag.FiscalYear AS FiscalYear,
  ActlLineItemSegTag.AccountingDocument AS AccountingDocument,
  ActlLineItemSegTag.LedgerGLLineItem AS LedgerGLLineItem,
  ActlLineItemSegTag.SemanticTag AS SemanticTag,
  CurrencyField.CurrencyField AS CurrencyField,
  ActlLineItemSegTag.GLAccountHierarchy AS GLAccountHierarchy,
  ActlLineItemSegTag.LedgerFiscalYear AS LedgerFiscalYear,
  ActlLineItemSegTag.FiscalPeriod AS FiscalPeriod,
  ActlLineItemSegTag.PostingDate AS PostingDate,
  ActlLineItemSegTag.ProfitCenter AS ProfitCenter,
  ActlLineItemSegTag.OriginProfitCenter AS OriginProfitCenter,
  ActlLineItemSegTag.SoldProduct AS SoldProduct,
  ActlLineItemSegTag.SoldProductGroup AS SoldProductGroup,
  ActlLineItemSegTag.Customer AS Customer,
  ActlLineItemSegTag.CustomerGroup AS CustomerGroup,
  ActlLineItemSegTag.PurchasingDocument AS PurchasingDocument,
  ActlLineItemSegTag.SalesOrder AS SalesOrder,
  ActlLineItemSegTag.SalesOrderItem AS SalesOrderItem,
  ActlLineItemSegTag.SalesDocument AS SalesDocument,
  ActlLineItemSegTag.SalesDocumentItem AS SalesDocumentItem,
  ActlLineItemSegTag.OrderID AS OrderID,
  ActlLineItemSegTag.OrderCategory AS OrderCategory,
  ActlLineItemSegTag.ConditionContract AS ConditionContract,
  ActlLineItemSegTag.FiscalYearPeriod AS FiscalYearPeriod,
  ActlLineItemSegTag.ChartOfAccounts AS ChartOfAccounts,
  ActlLineItemSegTag.GLAccount AS GLAccount,
  ActlLineItemSegTag.SalesOrganization AS SalesOrganization,
  ActlLineItemSegTag.CustomerSupplierCountry AS CustomerSupplierCountry,
  ActlLineItemSegTag.CustomerSupplierIndustry AS CustomerSupplierIndustry,
  ActlLineItemSegTag.SalesDistrict AS SalesDistrict,
  ActlLineItemSegTag.ShipToParty AS ShipToParty,
  ActlLineItemSegTag.BillToParty AS BillToParty,
  ActlLineItemSegTag.ControllingArea AS ControllingArea,
  ActlLineItemSegTag.CostSourceUnit AS CostSourceUnit,
  ActlLineItemSegTag.BusinessTransactionType AS BusinessTransactionType,
  ActlLineItemSegTag.SubLedgerAcctLineItemType AS SubLedgerAcctLineItemType,
  ActlLineItemSegTag.DistributionChannel AS DistributionChannel,
  ActlLineItemSegTag.OrganizationDivision AS OrganizationDivision,
  ActlLineItemSegTag.BaseUnit AS BaseUnit,
  ActlLineItemSegTag.OrderType AS OrderType,
  ActlLineItemSegTag.Segment AS Segment,
  ActlLineItemSegTag.WBSElement AS WBSElement,
  ActlLineItemSegTag.WBSElementInternalID AS WBSElementInternalID,
  ActlLineItemSegTag.ProjectNetwork AS ProjectNetwork,
  ActlLineItemSegTag.FunctionalArea AS FunctionalArea,
  ActlLineItemSegTag.Plant AS Plant,
  ActlLineItemSegTag.FiscalYearVariant AS FiscalYearVariant,
  ActlLineItemSegTag.ServiceContract AS ServiceContract,
  ActlLineItemSegTag.ServiceContractItem AS ServiceContractItem,
  ActlLineItemSegTag.BusinessSolutionOrder AS BusinessSolutionOrder,
  ActlLineItemSegTag.BusinessSolutionOrderItem AS BusinessSolutionOrderItem,
  ActlLineItemSegTag.ProviderContract AS ProviderContract,
  ActlLineItemSegTag.ProviderContractItem AS ProviderContractItem,
  ActlLineItemSegTag.ServiceContractType AS ServiceContractType,
  ActlLineItemSegTag.AccountAssignmentType AS AccountAssignmentType,
  ActlLineItemSegTag.ServiceDocument AS ServiceDocument,
  ActlLineItemSegTag.ServiceDocumentItem AS ServiceDocumentItem,
  ActlLineItemSegTag.ServiceDocumentType AS ServiceDocumentType,
  ActlLineItemSegTag.Project AS Project,
  ActlLineItemSegTag.ProjectInternalID AS ProjectInternalID,
  ActlLineItemSegTag._ProjectBasicData.ProjectExternalID AS ProjectExternalID,
  ActlLineItemSegTag.Supplier AS Supplier,
  ActlLineItemSegTag.AccountingDocumentType AS AccountingDocumentType,
  ActlLineItemSegTag.FinancialAccountType AS FinancialAccountType,
  ActlLineItemSegTag.CostCenter AS CostCenter,
  ActlLineItemSegTag.AssetClass AS AssetClass,
  ActlLineItemSegTag.ValuationArea AS ValuationArea,
  ActlLineItemSegTag.BillableControl AS BillableControl,
  ActlLineItemSegTag.ServicesRenderedDate AS ServicesRenderedDate,
  ActlLineItemSegTag.Material AS Material,
  ActlLineItemSegTag.WorkPackage AS WorkPackage,
  ActlLineItemSegTag.WorkItem AS WorkItem,
  ActlLineItemSegTag.CostAnalysisResource AS CostAnalysisResource,
  ActlLineItemSegTag.TimeSheetOvertimeCategory AS TimeSheetOvertimeCategory,
  ActlLineItemSegTag.PersonnelNumber AS PersonnelNumber,
  ActlLineItemSegTag.OriginCostCtrActivityType AS OriginCostCtrActivityType,
  ActlLineItemSegTag.PartnerCostCtrActivityType AS PartnerCostCtrActivityType,
  ActlLineItemSegTag.IsCommitment AS IsCommitment,
  ActlLineItemSegTag.ControllingDebitCreditCode AS ControllingDebitCreditCode,
  ActlLineItemSegTag.DocumentItemText AS DocumentItemText,
  cast( case CurrencyField.CurrencyField when 'CCC ' then ActlLineItemSegTag.AmountInCompanyCodeCurrency when 'GC ' then ActlLineItemSegTag.AmountInGlobalCurrency when 'FDC1' then ActlLineItemSegTag.AmountInFreeDefinedCurrency1 when 'OC' then ActlLineItemSegTag.AmountInObjectCurrency when 'FC' then ActlLineItemSegTag.AmountInFunctionalCurrency when ' ' then ActlLineItemSegTag.AmountInTransactionCurrency else cast ( 0 as abap.curr( 23, 2 ) ) end as abap.dec( 23, 2 ) ) as AmountInDisplayCurrency AS dec232asAmountInDisplayCurrency,
  cast( case CurrencyField.CurrencyField when 'CCC ' then ActlLineItemSegTag.FixedAmountInCoCodeCrcy when 'GC ' then ActlLineItemSegTag.FixedAmountInGlobalCrcy when ' ' then ActlLineItemSegTag.FixedAmountInCoCodeCrcy else cast ( 0 as abap.curr( 23, 2 ) ) end as abap.dec( 23, 2 ) ) as FixedAmountInDspCrcy AS dec232asFixedAmountInDspCrcy,
  cast ( case 1 when 2 then 0 else null end as quan1_12 ) AS Quantity,
  ActlLineItemSegTag._Supplier AS _Supplier,
  ActlLineItemSegTag._AccountingDocumentType AS _AccountingDocumentType,
  ActlLineItemSegTag._CurrentProfitCenter AS _CurrentProfitCenter,
  ActlLineItemSegTag._CurrentCostCenter AS _CurrentCostCenter,
  ActlLineItemSegTag._ServiceDocument AS _ServiceDocument,
  ActlLineItemSegTag._PartnerCostCtrActivityType AS _PartnerCostCtrActivityType,
  ActlLineItemSegTag._Project AS _Project,
  ActlLineItemSegTag._ProjectBasicData AS _ProjectBasicData,
  ActlLineItemSegTag._Ledger AS _Ledger,
  ActlLineItemSegTag._SourceLedger AS _SourceLedger,
  ActlLineItemSegTag._CompanyCode AS _CompanyCode,
  ActlLineItemSegTag._SemanticTag AS _SemanticTag,
  ActlLineItemSegTag._FiscalYear AS _FiscalYear,
  ActlLineItemSegTag._Customer AS _Customer,
  ActlLineItemSegTag._CustomerGroup AS _CustomerGroup,
  ActlLineItemSegTag._PurchasingDocument AS _PurchasingDocument,
  ActlLineItemSegTag._SoldProduct AS _SoldProduct,
  ActlLineItemSegTag._SoldProductGroup AS _SoldProductGroup,
  ActlLineItemSegTag._ProfitCenter AS _ProfitCenter,
  ActlLineItemSegTag._OriginProfitCenter AS _OriginProfitCenter,
  ActlLineItemSegTag._ControllingArea AS _ControllingArea,
  ActlLineItemSegTag._CostSourceUnit AS _CostSourceUnit,
  ActlLineItemSegTag._SalesDocument AS _SalesDocument,
  ActlLineItemSegTag._SalesOrder AS _SalesOrder,
  ActlLineItemSegTag._SalesOrderItem AS _SalesOrderItem,
  ActlLineItemSegTag._Order AS _Order,
  ActlLineItemSegTag._DistributionChannel AS _DistributionChannel,
  ActlLineItemSegTag._BaseUnit AS _BaseUnit,
  ActlLineItemSegTag._Segment AS _Segment,
  ActlLineItemSegTag._ChartOfAccounts AS _ChartOfAccounts,
  ActlLineItemSegTag._GLAccountInChartOfAccounts AS _GLAccountInChartOfAccounts,
  ActlLineItemSegTag._WBSElement AS _WBSElement,
  ActlLineItemSegTag._FunctionalArea AS _FunctionalArea,
  ActlLineItemSegTag._Plant AS _Plant,
  ActlLineItemSegTag._SalesOrganization AS _SalesOrganization,
  ActlLineItemSegTag._SalesDistrict AS _SalesDistrict,
  ActlLineItemSegTag._CustomerSupplierCountry AS _CustomerSupplierCountry,
  ActlLineItemSegTag._CustomerSupplierIndustry AS _CustomerSupplierIndustry,
  ActlLineItemSegTag._ShipToParty AS _ShipToParty,
  ActlLineItemSegTag._BillToParty AS _BillToParty,
  ActlLineItemSegTag._FiscalYearVariant AS _FiscalYearVariant,
  ActlLineItemSegTag._WBSElementBasicData AS _WBSElementBasicData,
  ActlLineItemSegTag._Material AS _Material,
  ActlLineItemSegTag._WorkPackage AS _WorkPackage,
  ActlLineItemSegTag._WorkPackageWorkItem AS _WorkPackageWorkItem,
  ActlLineItemSegTag._CostAnalysisResource AS _CostAnalysisResource,
  ActlLineItemSegTag._Employment AS _Employment,
  ActlLineItemSegTag._OriginCostCtrActivityType AS _OriginCostCtrActivityType
FROM I_GLAccountLineItemSemTag AS ActlLineItemSegTag
INNER JOIN I_PrjMargAnlysRptCrcyFld AS CurrencyField ON /* join condition not captured in parsed metadata */
;