cancel
Showing results for 
Search instead for 
Did you mean: 

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

0 Kudos
370

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

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

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)
)
0 Kudos

One correction in the answer:

(PLACEHOLDER."$$managerUserCode$$"=>:managerUserCode, PLACEHOLDER."$$userCode$$"=>:userCode))
0 Kudos

Thank you!

Answers (0)