Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to call dynamic SQL inside Calculation View


     I have created one catalog procedure with dynamic sql commands. Now i need to use the procedure inside sap ui5 so i need to place the dynamic sql inside the calculation or i need to call the created procedure inside view. I have tried with this call syntax.


     Call procedurename(arguments,:var_out);

But i got dynamic sql can not be used inside calculation view error so can't able to call.

Is there anyway to use dynamic sql statements inside the .hdbprocedure or read only procedure?

Can anyone help me with this issue, to find out how to call the dynamic sql procedure inside calculation view. 

Former Member

Hi Sujitha,

Calculation Views are "READ" only and hence you cannot consume dynamic sql procedure inside a calculation view.

You can set sqlscript_mode to UNSECURE to write a dynamic sql statements inside a .hdbprocedure.

Also have a look on this thread : Create local temporary table in procedure


Krishna Tangudu

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question