Skip to Content

CONVERT_CURRENCY IN SELECT NOT EXECUTING

I am trying to execute the following query.

select productid, category,
  CONVERT_CURRENCY("AMOUNT"=> price,
  "SOURCE_UNIT_COLUMN"=> currency,
  "SCHEMA" => 'SAP_HANA_DEMO',
  "TARGET_UNIT_COLUMN"=> currency,
  "REFERENCE_DATE"=> '2013-09-23',
  "CLIENT"=>'000'
  ) as "afterconver"
from "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Products";

I am getting the below error.


SAP DBTech JDBC: [2048]: column store error: # required attributes: 5, # attributes in itab: 5, requested column index: 5 at function __copy_trex_field_NString__()

Appreciate all the help.

Thanks.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jun 10, 2014 at 04:17 AM

    Hi,

    Do you really want the SOURCE_UNIT_COLUMN same as the TARGET_UNIT_COLUMN? One does not get the error you report if they are different or if you specify one as a constant using SOURCE_UNIT or TARGET_UNIT.

    Regards,

    Dinu

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.