Re-using Table Variable in Procedure
Hi, I need to clear content of a table variable (which had data from database table TABLE1) an resue it later in my procedure to select data from different database table say TABLE 2. How do I do this....
View ArticleAlter Command in SQLScript SAP HANA
Hello Everyone, I am trying the execute Alter command using SQL Console to change the Column type from NVARCHAR to SMALLINT in SAP HANA but i am getting the below error - ALTER TABLE "TEST_TAB" ALTER...
View ArticleRe: Re-using Table Variable in Procedure
Hello Anoop, you cannot use var1 for the second select too (if the structure of the tables are different). The SQLScript compiler determines the type of var1 during the first execution of the first...
View ArticleRe: Alter Command in SQLScript SAP HANA
Hello Shivam, in general altering the table column type from nvarchar to smallint is possible in case the values of the column can be converted to smallint (e.g. no characters, integers in smallint...
View ArticleRe: Hana Xs Engine Odata Service doesn' let me Create/Update/Delete
Hello, Have you set the allowed methods in XS ADMIN CORS for the package which contains your OData? ThanksRamees
View ArticleRe: Hana Xs Engine Odata Service doesn' let me Create/Update/Delete
Yannick, even though you can run these sql statements on the db side, please make sure you have those permissions attached to the package and also that you are able to expose the odata service as per...
View ArticleRe: Re-using Table Variable in Procedure
Anoop,as you cannot reuse the table variable, why don't you just create another variable v1 = select * from t1;v2 = select * from t2; shouldnt be too big of a deal, is it ?
View ArticleParameter in OData modification xs exit
Hello experts, I have 2 generic tables (tbl1, tbl2) and a couple of Calculation Views (calcview1, calcview2...) over those 2 tables. These calculation views are exposed on OData with XS exit for...
View ArticleRe: Calculation view exposed on OData with CUD operations
POST worked after removing keys generate local "AutoGeneratedId" and adding key ("ID") where ID is a unique key in the underlying table of the CalcView1 . Also from XS admin...
View ArticleRe: Re-using Table Variable in Procedure
Thanks Florian and Serigo, Actually my logic goes as below:var1 = SELECT * FROM table1;var2 = SELECT * FROM table2;join1 = FULL JOIN between var1 and var2-- hereon I do not need contents of var1 and...
View ArticleSAP HANA Analytical View Restricted Key FIgure
Hello Experts, If I want to create a Restricted Field in Analytical view for example for a text field which starts with Monitor. Do I have the option to use any wild card character ? Regards
View ArticleProblem when inserting BLOB object in $.hdb API
Hi, I am trying to insert an object (file) into BLOB column in HANA through $.hdb API (new XSJS API). The code is as follows: case "UPLOAD":var conn=$.hdb.getConnection();...
View ArticleRe: HANA DU Import and Schema Mapping Error
Hi Archana, Actually I also tried DEV--> PROD also but it was the same issue.Anyways Thanks.
View ArticleRe: HANA Input Stored Procedure with string XML format
Massoud, if you had that xml as json object then the stored procedure would work just fine also the stored procedure will return a json object as json becomes the standard for web communication, I...
View ArticleRe: HANA Input Stored Procedure with string XML format
... if you had that xml as json object then the stored procedure would work just fine also the stored procedure will return a json object ... I think we have to add here that the stored procedure...
View ArticleRe: Does system volume encryption apply to BLOBs?
SAP HANA and the documentation are in an ongoing development. Nothing here seems "final" if you ask me. But since help.sap.com is our official documentation channel, I'd say it doesn't get more...
View ArticleRe: Does system volume encryption apply to BLOBs?
Lars, thanks for confirming! Much obliged
View ArticleRe: Handling of Null as output in Scripted views
Thanks Lars. Is there any way I could make sure that the Scripted View always gives me zero instead of NULL. Any work arounds. Thanks,Murali.
View ArticleRe: Handling of Null as output in Scripted views
Well, you're stacking an exception aggregation (a measure that is made up for every record on the fly) and a SUM aggregation on top of each other and work with filters that yield an empty result set....
View Article