Skip to Content

Call a calculation view from another calculation view with parameters issue.

In HANA calculation view I have the following part of code:

select "SPCode",.....

from ....

inner join ( SELECT "SalespersonCode" FROM "_SYS_BIC"."sap.test/IDMS_BI_ISVALIDSALESPERSON" ('PLACEHOLDER' = ('$managerUserCode$',:managerUserCode),'PLACEHOLDER' = ('$userCode$', :userCode)) ) as isvalid on isvalid."SalespersonCode" = "SPCode"

During activation I get the following error:

Repository: Encountered an error in repository runtime extension;Model inconsistency. Deploy Calculation View: SQL: sql syntax error: incorrect syntax near ":managerUserCode": line 129 col 41 (at pos 5070)

How can I solve this issue?

Regards,

Dimitris

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Oct 23, 2019 at 03:35 PM

    Hi Dimitris,

    Please try with below statement:

    inner join ( SELECT "SalespersonCode" FROM "_SYS_BIC"."sap.test/IDMS_BI_ISVALIDSALESPERSON"
    (PLACEHOLDER."$managerUserCode$"=>:managerUserCode, PLACEHOLDER."$userCode$"=>:userCode)
    )
    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.