SAP Knowledge Base Article - Preview

2588590 - Error 'Variable xxx could not be replaced' in a CDS Query (BRAIN 641)


  • A CDS query uses @Consumption.derivation to fill a variable/parameter value
  • Run this query, hit error:
  • Variable XXX could not be replaced.
    BRAIN 641
  • Sample Queries/Variables this is happening for:
    • BRAIN 641 for Query C_SALESORDERQ2301 with variable !CDS_P_P_LEDGER
    • BRAIN 641 for Query C_PROFITANDLOSSQ2901 with variable !CDS_P_P_LEDGER
    • BRAIN 641 for Query C_PROFITCENTERQ2701 with variable  !CDS_P_P_LEDGE
    • BRAIN 641 for Query C_COSTCENTERQ2001 with variable !CDS_P_P_LEDGER
    • ...



SAP NetWeaver 750 SP4 and above



SAP NetWeaver 7.5 ; SAP S/4HANA 1610 ; SAP S/4HANA 1709 ; SAP S/4HANA 1809 ; SAP S/4HANA 1909 ; SAP S/4HANA, on-premise edition 1511


BRAIN641, BRAIN 641, C_SALESORDERQ2301, variable, cds, !CDS_P_P_LEDGER, BRAIN629, C_PROFITANDLOSSQ2901, C_PROFITCENTERQ2701 , KBA , BW-BEX-OT-ODP , Query Runtime for Operational Data Provisioning , CO-FIO , Fiori UI for Overhead Cost Controlling , BW-BEX-OT-OLAP-VAR , Using Variables , How To

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.