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_RABusRecnclnForPerfOblgn.
-- 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_RABusRecnclnForPerfOblgn AS
SELECT
_pob_biz.CompanyCode AS CompanyCode,
_pob_biz.AccountingPrinciple AS AccountingPrinciple,
_pob_biz.RevenueAccountingContract AS RevenueAccountingContract,
_pob_biz.PerformanceObligation AS PerformanceObligation,
_pob_biz._RAPerformanceObligation.PerformanceObligationClass AS PerformanceObligationClass,
_NumOfOperationalDocument.RANumberOfOperationalDocument AS RANumberOfOperationalDocument,
_pob_biz.RevnAcctgOperationalDocument AS RevnAcctgOperationalDocument,
_pob_biz.RevnAcctgSenderComponent AS RevnAcctgSenderComponent,
_pob_biz.SalesDocumentCurrency AS SalesDocumentCurrency,
_pob_biz.CompanyCodeCurrency AS CompanyCodeCurrency,
_pob_biz.AdditionalCurrency1 AS AdditionalCurrency1,
_pob_biz.AdditionalCurrency2 AS AdditionalCurrency2,
cast(_pob_biz.OplContractualPrcInSlsDocCrcy as farr_cds_op_cond_price preserving type) AS OplContractualPrcInSlsDocCrcy,
cast(_pob_biz.DeltaEffectiveAmtInSlsDocCrcy as farr_contractual_price_org preserving type) AS DeltaEffectiveAmtInSlsDocCrcy,
cast(_pob_biz.RAOplCostAmtInSlsDocCrcy as farr_cds_op_cond_cost preserving type) AS RAOplCostAmtInSlsDocCrcy,
cast(_pob_biz.TotalInvoicedAmtInSlsDocCrcy as farr_opl_invoiced_amt preserving type) AS TotalInvoicedAmtInSlsDocCrcy,
cast(_pob_biz.RAOplCostPriceAmtInSlsDocCrcy as farr_cds_cost_price preserving type) AS RAOplCostPriceAmtInSlsDocCrcy,
cast(_pob_biz.ContractualPrcInSlsDocCrcy as farr_transaction_price preserving type) AS ContractualPrcInSlsDocCrcy,
cast(_pob_biz.RAPerfOblgnCostAmtInSlsDocCrcy as farr_cost_total preserving type) AS RAPerfOblgnCostAmtInSlsDocCrcy,
cast(_pob_biz.SSPriceInSalesDocCrcy as farr_cds_standalone_price preserving type) AS SSPriceInSalesDocCrcy,
cast(_pob_biz.RADeltaRecgdCostInSlsDocCrcy as farr_actual_cost preserving type) AS RADeltaRecgdCostInSlsDocCrcy,
cast(_pob_biz.RARecognizedRevnInSlsDocCrcy as farr_recog_amt preserving type) AS RARecognizedRevnInSlsDocCrcy,
cast(_pob_biz.RARecgdCostAmountInSlsDocCrcy as farr_recog_cost preserving type) AS RARecgdCostAmountInSlsDocCrcy,
cast(_pob_biz.PerPerdInvoicedAmtInSlsDocCrcy as farr_invoiced_amt preserving type) AS PerPerdInvoicedAmtInSlsDocCrcy,
cast(_pob_biz.PostedRevnInSlsDocCrcy as farr_cds_posted_rv preserving type) AS PostedRevnInSlsDocCrcy,
cast(_pob_biz.PostedInvoiceAmtInSlsDocCrcy as farr_cds_posted_ic preserving type) AS PostedInvoiceAmtInSlsDocCrcy,
cast(_pob_biz.RAPostedCostInSlsDocCrcy as farr_cds_posted_co preserving type) AS RAPostedCostInSlsDocCrcy,
cast(_pob_biz.RAPostedUnbilldRblsAmount as farr_cds_posted_ur preserving type) AS RAPostedUnbilldRblsAmount,
cast(_pob_biz.RADeferredRevenueInSlsDocCrcy as farr_cds_posted_dr preserving type) AS RADeferredRevenueInSlsDocCrcy,
cast(_pob_biz.RAContractAssetsAmount as farr_cds_posted_ca preserving type) AS RAContractAssetsAmount,
cast(_pob_biz.RAContrLiabilitiesAmount as farr_cds_posted_cl preserving type) AS RAContrLiabilitiesAmount,
cast(_pob_biz.PostdDfrrdCostAmtInSlsDocCrcy as farr_cds_posted_cj preserving type) AS PostdDfrrdCostAmtInSlsDocCrcy,
cast(_pob_biz.RAPostedRevenueAmtInCoCodeCrcy as farr_cds_posted_rv_lc1 preserving type) AS RAPostedRevenueAmtInCoCodeCrcy,
cast(_pob_biz.RAPostedInvoiceAmtInCoCodeCrcy as farr_cds_posted_ic_lc1 preserving type) AS RAPostedInvoiceAmtInCoCodeCrcy,
cast(_pob_biz.RAPostedCostAmountInCoCodeCrcy as farr_cds_posted_co_lc1 preserving type) AS RAPostedCostAmountInCoCodeCrcy,
cast(_pob_biz.PostdUnbilldRblAmtInCoCodeCrcy as farr_cds_posted_ur_lc1 preserving type) AS PostdUnbilldRblAmtInCoCodeCrcy,
cast(_pob_biz.PostedDfrrdRevnAmtInCoCodeCrcy as farr_cds_posted_dr_lc1 preserving type) AS PostedDfrrdRevnAmtInCoCodeCrcy,
cast(_pob_biz.RAPostdContrAstAmtInCoCodeCrcy as farr_cds_posted_ca_lc1 preserving type) AS RAPostdContrAstAmtInCoCodeCrcy,
cast(_pob_biz.PostdContrLbltyAmtInCoCodeCrcy as farr_cds_posted_cl_lc1 preserving type) AS PostdContrLbltyAmtInCoCodeCrcy,
cast(_pob_biz.PostdDfrrdCostAmtInCoCodeCrcy as farr_cds_posted_cj_lc1 preserving type) AS PostdDfrrdCostAmtInCoCodeCrcy,
cast(_pob_biz.RAPostedRevenueAmtInAddlCrcy1 as farr_cds_posted_rv_lc2 preserving type) AS RAPostedRevenueAmtInAddlCrcy1,
cast(_pob_biz.RAPostedInvoiceAmtInAddlCrcy1 as farr_cds_posted_ic_lc2 preserving type) AS RAPostedInvoiceAmtInAddlCrcy1,
cast(_pob_biz.RAPostedCostAmountInAddlCrcy1 as farr_cds_posted_co_lc2 preserving type) AS RAPostedCostAmountInAddlCrcy1,
cast(_pob_biz.PostedUnbilldRblAmtInAddlCrcy1 as farr_cds_posted_ur_lc2 preserving type) AS PostedUnbilldRblAmtInAddlCrcy1,
cast(_pob_biz.RAPostdDfrrdRevnAmtInAddlCrcy1 as farr_cds_posted_dr_lc2 preserving type) AS RAPostdDfrrdRevnAmtInAddlCrcy1,
cast(_pob_biz.RAPostedContrAstAmtInAddlCrcy1 as farr_cds_posted_ca_lc2 preserving type) AS RAPostedContrAstAmtInAddlCrcy1,
cast(_pob_biz.PostedContrLbltyAmtInAddlCrcy1 as farr_cds_posted_cl_lc2 preserving type) AS PostedContrLbltyAmtInAddlCrcy1,
cast(_pob_biz.RAPostdDfrrdCostAmtInAddlCrcy1 as farr_cds_posted_cj_lc2 preserving type) AS RAPostdDfrrdCostAmtInAddlCrcy1,
cast(_pob_biz.RAPostedRevenueAmtInAddlCrcy2 as farr_cds_posted_rv_lc3 preserving type) AS RAPostedRevenueAmtInAddlCrcy2,
cast(_pob_biz.RAPostedInvoiceAmtInAddlCrcy2 as farr_cds_posted_ic_lc3 preserving type) AS RAPostedInvoiceAmtInAddlCrcy2,
cast(_pob_biz.RAPostedCostAmountInAddlCrcy2 as farr_cds_posted_co_lc3 preserving type) AS RAPostedCostAmountInAddlCrcy2,
cast(_pob_biz.PostedUnbilldRblAmtInAddlCrcy2 as farr_cds_posted_ur_lc3 preserving type) AS PostedUnbilldRblAmtInAddlCrcy2,
cast(_pob_biz.RAPostdDfrrdRevnAmtInAddlCrcy2 as farr_cds_posted_dr_lc3 preserving type) AS RAPostdDfrrdRevnAmtInAddlCrcy2,
cast(_pob_biz.RAPostedContrAstAmtInAddlCrcy2 as farr_cds_posted_ca_lc3 preserving type) AS RAPostedContrAstAmtInAddlCrcy2,
cast(_pob_biz.PostedContrLbltyAmtInAddlCrcy2 as farr_cds_posted_cl_lc3 preserving type) AS PostedContrLbltyAmtInAddlCrcy2,
cast(_pob_biz.RAPostdDfrrdCostAmtInAddlCrcy2 as farr_cds_posted_cj_lc3 preserving type) AS RAPostdDfrrdCostAmtInAddlCrcy2,
cast(_pob_biz.SrceRecgdRevnAmtInSlsDocCrcy as farr_sched_rv_cumltv preserving type) AS SrceRecgdRevnAmtInSlsDocCrcy,
cast(_pob_biz.SrceRecgdCostAmtInSlsDocCrcy as farr_sched_co_cumltv preserving type) AS SrceRecgdCostAmtInSlsDocCrcy,
cast(_pob_biz.SrceRecgdInvcAmtInSlsDocCrcy as farr_sched_ic_cumltv preserving type) AS SrceRecgdInvcAmtInSlsDocCrcy,
_DataValidationPOB.DataValidationHasError AS DataValidationHasError,
_DataValidationPOB.ValidationDateTime AS ValidationDateTime,
_pob_biz._RAPerformanceObligation.RAPerformanceObligationType AS RAPerformanceObligationType,
_pob_biz._RAPerformanceObligation.BusinessPartner AS BusinessPartner,
_pob_biz._RAPerformanceObligation._BusinessPartner.BusinessPartnerName AS BusinessPartnerName,
_pob_biz._RAPerformanceObligation.Customer AS Customer,
_pob_biz._RAPerformanceObligation._Customer.CustomerName AS CustomerName,
_pob_biz._RAPerformanceObligation.FunctionalArea AS FunctionalArea,
_pob_biz._RAPerformanceObligation.BusinessArea AS BusinessArea,
_pob_biz._RAPerformanceObligation.Segment AS Segment,
_pob_biz._RAPerformanceObligation.ProfitCenter AS ProfitCenter,
_pob_biz._RAPerformanceObligation.ProfitabilitySegment_2 AS ProfitabilitySegment,
_pob_biz._RAPerformanceObligation.CostCenter AS CostCenter,
_pob_biz._RAPerformanceObligation.OrderID AS OrderID,
_pob_biz._RAPerformanceObligation.SalesOrder AS SalesOrder,
_pob_biz._RAPerformanceObligation.SalesOrderItem AS SalesOrderItem,
_pob_biz._RAPerformanceObligation.WBSElementExternalID AS WBSElementExternalID,
cast(_pob_biz.OperationalDocItemQty as farr_operational_quantity preserving type) AS OperationalDocItemQty,
cast(_pob_biz.PerfOblgnContractualQuantity as farr_order_quantity preserving type) AS PerfOblgnContractualQuantity,
_pob_biz.CARevnRecgnQtyUnit AS CARevnRecgnQtyUnit,
_pob_biz.Material AS Material,
_pob_biz.MaterialName AS MaterialName,
_pob_biz._RAPerformanceObligation.RevnAcctgPerfOblgnStatus AS RevnAcctgPerfOblgnStatus,
_pob_biz.ContractualPriceCriticality AS ContractualPriceCriticality,
_pob_biz.TotalCostCriticality AS TotalCostCriticality,
_pob_biz.InvoicedAmountCriticality AS InvoicedAmountCriticality,
_pob_biz.OrderQuantityCriticality AS OrderQuantityCriticality,
_pob_biz.ActualCostCriticality AS ActualCostCriticality,
cast(_pob_biz.RAContractIsInconsistent as farr_inconsistency_error preserving type) AS RAContractIsInconsistent,
cast(_pob_biz._RAPerformanceObligation.AllocatedPriceInSalesDocCrcy as farr_alloc_amt preserving type) AS AllocatedPriceInSalesDocCrcy,
_pob_biz._RAPerformanceObligation.PerfOblgnEventType AS PerfOblgnEventType,
_pob_biz._Mapping AS _Mapping
FROM P_RABusRecnclnForPerfOblgn AS _pob_biz
LEFT OUTER JOIN P_RAPerfOblgnIsFrozen AS _IsFrozen ON PerformanceObligation = _IsFrozen.PerformanceObligation -- association [0..1]
;