Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all 6412 articles
Browse latest View live

SAP Hana Studio release 70 issues

$
0
0

CTRL-F keyboard shortcut for Find/Replace missing.  Not a huge issue obviously.

 

Perhaps others experiencing issues (and any relevant workarounds) with Hana Studio version 70 can log here?

 

 

ctrlf.PNG

 

 

Thanks.


HANA Authorization problem

$
0
0

Hello,

 

I have a hdbschema file which creates a schema. I  am working with the SYSTEM user and I add the schema in Object privilege. I see that the grantor is user _SYS_REPO. But the grantable checkbox is disabled for the SYSTEM user and hence when I run 'grant select on schema ... ' statement, I get authorization issue and I am not able to use objects in schema. When I use the objects in schema in a procedure I get again an insufficient authorization error.

 

Any thoughts?

 

-Regards,

Manjunath

Issues with ODATA service creation

$
0
0

Hi Gurus,

 

I am facing some issues with ODATA service creation. I have an analytic view which I want to consume via SAP UI5.

 

As per guides and blogs, I need to create 3 files, namely .xsaccess, .xsapp and .xsodata. I created these three files but at the same time .xsodata and .xsaccess got created at one more place. That place is my package which I checked out while creating the repository. Now when I try to activate my .xsaccess or .xsapp file, I get an error message - "The file name .xsaccess or .xsapp already exists and only 1 file is allowed per package"

 

for more info please revert.

 

Kindly help.

 

Best regards,

Chandan

Calling SQL stored procedure dynamically

$
0
0

Hallo,

 

could anybody tell me how to call HANA SQL stored procedure dynamically?

 

The coding looks like this:

v_ProcedureName := '"' || KpiNamespace || '::' || KpiName || '"';

v_SQL := 'CALL ' || :v_ProcedureName || '( lt_outKPI )';

EXEC :v_SQL;

 

For this call I get the error message:

"Transaction rolled back by an internal error: wrong number or types of parameters in call: Physical table is not allowed in OUT table variable position: LT_OUTKPI: line 1 col 55 (at pos 54)"

 

The procedure to be called dynamically has a table output parameter.

 

Thanks in advance,

Best Regards,

Alexey Romanov.

Missing data from SQL Console

$
0
0

Hello,


I have created a calculation view and it works completely fine.

Now I have a completely strange problem with selecting values from the created calculation view in the SQL console.

If I count the rows in view with normal select it gives 42023

 

 

But when I count the rows after selecting some columns it gives 1122 .which should actually be 42023, because I have not applied any grouping or condition.

This is happening because, while selecting from the view it’s skipping some values.

 

 

 

For better understanding

Now I select some columns which has ‘refid’=126869, the result has no values.

 

But when say “select * “ with same ‘refid’=126869 it gives me correct result.

 

 

Can anyone please help me understand where I have gone wrong?

 

For information i am using AWS SAP HANA Developer Edition Rev 68

 

Thank you!

Regards

Dharnesh

Calling an SP takes over 200% more time over the select statement

$
0
0

As part of my POC converting a SQL Server application over to SAP HANA, I'm find that CALL is taking over 200% more time than calling the SELECT statement directly. The result is that the application that uses ODBC against HANA with CALL statements is taking much more time than SQL Server. I'm finding this for all stored procedure calls in the application. Here is an example:

CREATE PROCEDURE dbo.usp_GetOrdersByCustomerID

(IN C_ID bigint)

LANGUAGE SQLSCRIPT DEFAULT SCHEMA "DBO" READS SQL DATA

AS BEGIN

SELECT  TOP 20

   C_F_NAME,

            C_L_NAME,

            C_EMAIL,

            O_ID,

            O_TOTAL,

            O_DTS,

            O_FM_DTS

FROM    dbo.Customer JOIN dbo.Orders ON C_ID = O_C_ID

WHERE   C_ID = :C_ID

    ORDER   BY O_ID DESC;

END;

 

When using the following CALL statement in SAP HANA Studio

CALL dbo.usp_GetOrdersByCustomerID(3429);

 

 

I get execution times that look like this:

 

Statement 'CALL dbo.usp_GetOrdersByCustomerID(3429)'

successfully executed in 9 ms 663 µs  (server processing time: 8 ms 115 µs)

Fetched 5 row(s) in 0 ms 69 µs (server processing time: 0 ms 0 µs)

  


Statement 'CALL dbo.usp_GetOrdersByCustomerID(3429)'

successfully executed in 11 ms 851 µs (server processing time: 8 ms 238 µs)

Fetched 5 row(s) in 0 ms 62 µs (server processing time: 0 ms 0 µs)

 

Statement 'CALL dbo.usp_GetOrdersByCustomerID(3429)'

successfully executed in 8 ms 522 µs  (server processing time: 6 ms 892 µs)

Fetched 5 row(s) in 0 ms 93 µs (server processing time: 0 ms 0 µs)

 

 

 

When I execute the select statement with the hard coded parameter value, I get much faster results:

 

Statement 'SELECT TOP 20 C_F_NAME, C_L_NAME, C_EMAIL, O_ID, O_TOTAL, O_DTS, O_FM_DTS FROM dbo.Customer JOIN ...'

successfully executed in 4 ms 430 µs  (server processing time: 2 ms 424 µs)

Fetched 5 row(s) in 0 ms 73 µs (server processing time: 0 ms 0 µs)

  


Statement 'SELECT TOP 20 C_F_NAME, C_L_NAME, C_EMAIL, O_ID, O_TOTAL, O_DTS, O_FM_DTS FROM dbo.Customer JOIN ...'

successfully executed in 4 ms 105 µs  (server processing time: 2 ms 210 µs)

Fetched 5 row(s) in 0 ms 69 µs (server processing time: 0 ms 0 µs)

 

Statement 'SELECT TOP 20 C_F_NAME, C_L_NAME, C_EMAIL, O_ID, O_TOTAL, O_DTS, O_FM_DTS FROM dbo.Customer JOIN ...'

successfully executed in 4 ms 694 µs  (server processing time: 2 ms 810 µs)

Fetched 5 row(s) in 0 ms 60 µs (server processing time: 0 ms 0 µs)

 

 

 

I have 500,000 rows in the Customers table and 2,500,000 rows in the Orders table. The tables are COLUMN tables.

 

Is there an optimization that I'm missing?

Regards,

Bill

Part of where condition ignored after upgrading to 72

$
0
0

Hi folks,

 

We have recently upgraded to 72 and in testing we have discovered that part of our SQL where condition is now ignored when using IS NULL in conjunction with OR operator.

 

For example;

 

If I have 10 records where ABC indicator = 'A' and 5 records where ABC indicator is null for a total of 15 records;

 

in 68 environment this below statement would return all 15 records:

 

select * from MSEG where BLDAT = '20140320' and (MAABC = 'A' or MAABC IS NULL)

 

in 72 this above statement is only returning the 5 null records.  Any other criteria within the parenthesis is completely ignored.

 

-Patrick

Tables dropped and re-created automatically in HANA

$
0
0

Hi,

 

Few of our tables in HANA QA system are been dropped and re-created automatically.Due to this we are having Grant issue & we need to reapply the Grants before we move the HANA Content.This has caused enormous impact with the testing team.

 

Can anyone suggest how to troubleshoot the issue or any remedy for this?


Upgrade to SP7 vs 72 broke SQLCC Anon user in XS app

$
0
0

We have an XS application set up to use an anonymous sql connection.  It worked before we upgraded to SP7 v. 72 but not after. We're being prompted for credentials now.  There are no errors in the xsengine log file and the user is still set in the XS admin tool.  Any thoughts?

Thanks,

Amy

Procedure editor slowdown after upgrading to 72

$
0
0

Hi folks,

 

I'm having a strange problem since upgrading to 72 a few days ago.  When I am in procedure editor I'm experiencing a major delay when typing.  For example I will type a character and then have to wait 5 or 6 seconds for the screen to catch up.  Finally it catches up, I can type a few words and then another freeze.  It keeps happening continuously making it almost impossible to do any real work.  Other team-mates have upgraded to 72 with no issues with same laptops, OS etc and even less memory on theirs.  I can't seem to isolate the problem.  Sometimes rebooting helps but only for about 5 minutes or so until the problem starts recurring.  I saw some other posts about old versions freezing and misbehaving.  Has anybody experienced this in 72? 

 

-Patrick

An internal Error: Widget is disposed HANA Studio rev 73

$
0
0

Hi guys,

I updated studio to rev 73 recently and noticed that during CSV file import it gives an error, have you seen something similar?

 

widget disposed.jpg

Input Parameter popup doesn't show up

$
0
0

Hi,

 

 

I'm trying to execute a Calculation View that contain an input parameter, unfortunatly after click the Data Preview button the calculation start the execution but it doesn't try to request any value for the input parameter, a popup windows to gather the values it doesn't show up, is missing.

 

 

And because of that I received an error, the only way to execute it succesfully is setting a default value but I would like to input/select this value in every execution, later on this CV is going to be the base of a data foundation in a BO Universe.

 

 

If you could help I'll appreciate

 

 

(When I set the input parameter into a derived table in the Data Foundation and I try to validate it, I receive an error, and I think this is related)

Is it possible to do POST (insert) on HANA using oData service from XS?

$
0
0

Hi Experts,

Can we do POST/PUT/DELETE on HANA using oData (XS engine)?

If Yes, can you please share some sample?

 

Regards

Rohith

Variable/Input Parametrs BETWEEN

$
0
0

Hi,

 

 

In the proposed operations Equal and IsNull  only.

How do BETWEEN and other operators?

,

empty resultset even though it shouldn't be empty (rev70; resultset is populated in rev68 though)

$
0
0

Dear experts,

today i did experience a behaviour of hana that i cannot understand.

In order to enable you to reenact the phenomenon i created the following demo code:

 

######################### PREPERATION

 

-- creating a copy of a sap demo content table

create column table "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses_TEST"

like "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses" with data;

 

-- set two columns to null

Update "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses_TEST"

set CITY = NULL;

 

Update "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses_TEST"

set POSTALCODE = NULL;

######################### / PREPERATION

 

 

 

 

 

######################### INITIAL

-- returns an empty resultset (initial version)

select col from (

select 'CITY' as col, count(*) i from "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses_TEST" where CITY is not NULL union all

select 'POSTALCODE', count(*) from "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses_TEST" where POSTALCODE is not NULL

) where i = 0;

######################### / INITIAL

 

 

 

 

 

 

######################### ALTERED VERSIONS

 

-- returns the expected resultset (outer select contains i)

select col, i from (

select 'CITY' as col, count(*) i from "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses_TEST" where CITY is not NULL union all

select 'POSTALCODE', count(*) from "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses_TEST" where POSTALCODE is not NULL

) where i = 0;

 

-- returns the expected resultset (check for "is null")

select col from (

select 'CITY' as col, count(*) i from "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses_TEST" where CITY is NULL union all

select 'POSTALCODE', count(*) from "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses_TEST" where POSTALCODE is NULL

) where i = (select count(*) from "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses_TEST");

 

-- returns the expected resultset (now without where)

select col from (

select 'CITY' as col, count(CITY) i from "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses_TEST" union all

select 'POSTALCODE', count(POSTALCODE) from "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses_TEST"

) where i = 0

 

######################### ALTERED VERSIONS

 

 

 

 

The question is why does the initial statement return an empty resultset?

And please consider that the initial version works just fine under rev68 (resultset is not empty), but returns an empty resultset when being executed on a rev70 system.

 

Many thanks in advance for your feedback.


Problems with Currency Conversion using CE_CONVERSION

$
0
0

Dear experts,

i'd like to use the mentioned Calculation Engine Plan Operator to fill a column "Converted_Monetary_Value" of a self-generated (not SAP standard) table. The currency unit as well as the monetary value are also in distinct columns of that table.

 

Since „in SAP ERP Tables there is a mandatory and explicit link between any monetary amount field and its currency“* and i don't know a way to create this "link" in the self-generated table (views aren't to be used for various reasons) i guess this is not possible.

 

If someone could confute my assumption and maybe even provide something like a guide on how to use CE_CONVERSION for the described purpose I'd be deeply grateful.

 

Sincerely,

Tobias Müller

 

 

* SAP Hana - an introduction (S.304)

HANA OData Service Filters

$
0
0

Exposing an OData service on HANA SP06 and attempting to filter records that have a null color results in a 400 Bad Request error. The filter built looks like this: $filter=COLOR+eq+null

 

The OData spec states that there isn't ISNULL support, but rather a null literal which can be used in comparisons such as the one I'm attempting.

 

Is the null literal not supported? Is there documentation on what filters the xsodata service exposes on HANA SP6?

 

Thanks!

SAP Hana Studio release 70 issues

$
0
0

CTRL-F keyboard shortcut for Find/Replace missing.  Not a huge issue obviously.

 

Perhaps others experiencing issues (and any relevant workarounds) with Hana Studio version 70 can log here?

 

 

ctrlf.PNG

 

 

Thanks.

Visualized Plan

$
0
0

Hello,

 

Is there any documentation to understand the Visualized Plan?

I've looked through the net and did not find anything which was very informative.

 

I'm trying to understand what exactly happens within each node in the Plan.

 

 

Thanks,

Varun

955295 - Using Survey Variables in HANA howto

$
0
0


There is a SAP Note 955295 - Using Survey Variables in SQL wich explains howto filter subqueries and send them to a variable defined with [%0] for example.

 

I tried in hana and I couldn't find the way to declare the variable did anyone tried that before.

 

Kind Regards,

Viewing all 6412 articles
Browse latest View live


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