Quantcast
Channel: SCN : Unanswered Discussions - SAP Crystal Reports
Viewing all articles
Browse latest Browse all 4814

CrystalReport HANA SQL Expression Error

$
0
0

I have converted my MSSQL query to HANA syntax and tried it out in HANA Studio where it runs correctly i.e(SELECT "U_DataVal" FROM "MYCOMPANYDB@PPSONE_BASICDATA" WHERE "U_DataKey"='EnumProductionOrderTimeBaseType'). The challenge is when I deploy this report to a customer the  DatabaseName i.e MYCOMPANYDB has to change to match that of the customer. If I leave out the DatabaseName I get the DatabaseConnector Error as seen in the attached file. How can I get the SBO CompanyDatabase that the customer is connected to in HANA crystal reports? Is there a way to dynamically change the DatabaseName to match that of customer?

FYI the above SQL Expression works fine in MSSQL Database.

If I run {fn DATABASE()} function I get SYSTEM instead of MYCOMPANYDB.


Viewing all articles
Browse latest Browse all 4814

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>