Quantcast
Channel: SCN : Discussion List - SAP HANA and In-Memory Computing
Viewing all 5653 articles
Browse latest View live

search without aggregation, grouping by expression error

$
0
0

Hi All,

We are on HANA SP8 version.

I am aware that we cannot select directly from analytical view with out grouping by.

 

My requirement was to join the analytical view with a temp table to filter some records and then do aggregation .

 

Below query is failing with

feature not supported: not allowed over OLAP VIEW : search without aggregation, grouping by expression other than view column or user defined function with string type

ALERT_NEW - analytical view

TMP_SELECTION_FILTER - physical temp table

 

Query: 

SELECT

A.DDDD_ID, A.PRODUCT_ID, A.CAPTURE_DATE ,

COUNT(DISTINCT (A.CAPTURE_DATE)) AS PINDAYS

 

FROM "ALERT_NEW"as A

 

inner

join"TMP_SELECTION_FILTER"AS SF

ON SF.EPH_ID = A.SELECTION_ID

AND

A.VALID_ALERT = 'Y'

GROUP

BYA.DDDD_ID, A.PRODUCT_ID, A.CAPTURE_DATE;


But if I remove the distinct in the count , query is working

Query:

SELECT

A.DDDD_ID, A.PRODUCT_ID, A.CAPTURE_DATE ,

COUNT(A.CAPTURE_DATE) AS PINDAYS

 

FROM "ALERT_NEW"as A

 

inner

join"TMP_SELECTION_FILTER"AS SF

ON SF.EPH_ID = A.SELECTION_ID

AND

A.VALID_ALERT = 'Y'

GROUP

BYA.DDDD_ID, A.PRODUCT_ID, A.CAPTURE_DATE;



Any idea why distinct is causing the issue. I still need to get the distinct count .


Regards,

Suman.


How do I should use Input Parameters with multiple values on a scripted CalcView?

$
0
0

Hi,

 

I need to make some projections on a scripted Calculation View with several values in the where clause of a CE Function using multiple values from an Input Parameter. I found the way to set intervals or single values but nothing like what I'm looking for.

In SQL it should be something like:

 

SELECT ATTR1, sum(MEASURE1) FROM "<calc_view>" PLACEHOLDER ( "$$MONTH$$", ['val1','val2','val3','val4']) GROUP BY ATTR1;

 

Or like SELECT-OPTIONS in ABAP.

 

Does scripted calculation views have a way to filter a table by a field with several values using Input Parameters?

How do I set the Input Parameters to reach that?

How is the syntax to call that calculation view and set several values in the place holders?

 

Thanks!

Performance problems with GeoSpatial function as a filter

$
0
0

Hi, colleagues

 

I am facing performance problems with GeoSpatial functions in SPS9.

I populated a Column Table with over 1 million of records with latitude and longitude fields and made a Calculation View with that.

Now, I want to filter records of this view with a square that has the bounds of a map in the client-side.

I'm filtering the results because it is too much data to display in the client side at once.

 

The where clause look like this one:

 

(NEW ST_Polygon( 'Polygon(( -34.58284565085074 -58.42738261914063, -34.5714747472561 -58.42738261914063, -34.5714747472561 -58.4441114552002, -34.58284565085074 -58.4441114552002, -34.58284565085074 -58.42738261914063 ))').ST_Contains(NEW ST_Point( "GEO_X", "GEO_Y" )) = 1) 

 

The whole query execution lasts 9 seconds, and the filter step takes 3,5 seconds:

 

performance_!.png

 

The most worrying thing is that the query needs 21,1 GB of memory:

performance_3.png

versus 2,1 GB without the where clause:

performance_2.png

 

If we execute the query several times the hana server starts having memory and execution planning errors.

 

Is there a way to optimize this case? Or another way to do this?

 

Thanks!

Scripted Calculation View - Issues

$
0
0

Hi All,

 

I have created a calculation view and is being used for reports. However the performance isnot where I  like it to be. I also have a sql bult inside the universe because the nature of the application and some complexities. I am trying to move all the codes into HANA. I am trying to creatate ae Scripted view so I can eliminate all the SQL Codes I am mixing with my graphical model.

 

The final model against which I built my universe has a projection, union and aggregation before I created input parameters to it. The projection itself is built on a scripted calc view and this works fine.

 

Now I want to use a CE_PROJECTION very similar to my graphical model but I am having issues. My question is can I create a CE_PROJECTION on a calculation view ?

 

The code I put in is like below....

 

olap1 = CE_OLAP_VIEW("_SYS_BIC"."ZCVS_CALVIEW",["OBJNR", "BUDAT", "MEGBTR"]);

var_out = CE_PROJECTION(:olap1,["OBJNR","BUDAT","MEGBTR"]);

 

I also tried

 

var_out = CE_PROJECTION("_SYS_BIC"."ZCVS_CALCVIEW",["OBJNR","BUDAT","MEGBTR"]);

 

Any ideas?

 

Thank you,

Arthur.

SAP HANA Backup Strategy

$
0
0

Hi All,

 

I need to design the Backup & Recovery strategy for one of my customer. They are migrating their non-SAP (Oracle) application to HANA and it is a scale-out. They are currently backing up their oracle database using Linux script and then to the storage using 3rd party tool.

 

Can I opt the same method for HANA backups using Suse Linux crontab (schedule the script to the local file system) and then use the 3rd party tool for storing it to tape. As per my understanding this method backs up the data and log is automatically backed up, but I am just wondering about the configuration files. Is there anyway to automate this as well. Kindly suggest any other strategies.

 

The db size after the compression is 6TB and so how can I calculate the backup destination disk size.

 

How much time it might take for 6 TB db backup.

 

Rgds,

Ernest

Cannot create in HANA SBOCOMMON (SAP B1 Cloud Control Center)

$
0
0

Hello!

Cannot create in HANA SBOCOMMON in SAP B1 Cloud Control Center.

 

 

Maybe someone faced with this problem?

I'am not install SLD agent on Linux HANA Server, because I don't know the distribution agent for the SLD Linux, and where to download it

Somebody know or have instructions how to connect to SAP B1 Cloud Control Center System Land Scape Directory from Linux Suse Server HANA?

Please Help!

 

ERROR CREATION DB SBO_COMMON in SAP Business One Cloud Control Center

Error Code:    2103common database upgrade or creation failed

Comparing NVARCHAR with INT in hana

$
0
0

Hi,

 

A strange observation. Can anyone pls explain. I am trying to create a procedure in hana something like this:

create procedure abc(

IN UserID int,

in EventID int)

LANGUAGE SQLSCRIPT  

AS       

BEGIN

DECLARE cnt INT := 0;

 

SELECT COUNT(*) INTO cnt FROM SCHEMA."ABCD" 

  WHERE "EventID" = :EventID AND "UserID" = :UserID AND "RoleID"=(SELECT "RoleID" FROM SCHEMA."aa" WHERE "ggg"= 'XYZ'); 

 

  select :cnt,:EventID, :UserID from dummy;

END;

 

In Table ABCD the EventID column is NVARCHAR(100) and UserID is INT type. When i execute this procedure using

call abc(1,2)

it does not give me correct result. It returns cnt as 0 whereas actually output should be 1. I tried playing with the query somewhat and found that if i replace the part "EventID" = :EventID with "EventID" = 2 then it gives correct output. I finally tried replacing this clause with "EventID" = TO_INT(:EventID) and it gives correct output. The question is why is it behaving in such a manner ?  Why do i need to use TO_INT function for my EventID input ?

 

TIA.

Insufficient free space in the HANA database

$
0
0

Hello,

 

While epatching one of my EHP7 System on HANA (Single DB) we are getting below error.Is there a way to add container or extend datafile in HANA DB?How to get rid of this?

 

ERROR: Insufficient free space in the database as follows. Please refer to file D:\SAP_SFIN2\SUM\abap\log\DBFPLUSD.RES for more details and additional information about the results of the free space check.

You need additional free space of 8200 MB on your database

Expand the data area by at least the mentioned size.

You must fulfill these requirements first before you continue with the procedure!

Free space recommendation

In some scenarios there might be more space required, which was not part of the calculation. Therefore we recommend to have up to 20% more free space than overall required:

Additional 14040 MB

 

Thanks,

Mofizur


Database View on Hana

$
0
0

Hi,

 

i would like to create a database view on Hana Studio. The Hana view editor supports just analytic, attribute and calculate views.

Any suggestions? Can i do it in Standard SQL on Hana?

 

Thank you

 

Regards

 

Hamid

Cube Virtual - HANA View - Exception Aggregation Issue

$
0
0

Dear All,

 

I have created a HANA View based on left outer join between 2 tables.

On BW we have a virtual cube based on the HANA view.

 

On Top of this virtual cube - we have a query created with exception aggregation KF weight ( ExcepAgg : Mat ) and KF Price ( ExcepAgg : Plant )

We notice that the exception of aggregation does not work, in a relation 1 - N, the weight is multiple by N

 

Did you already face this issue?

Do you know how we could solve it ?

 

Exemple

Table Contents in red the key field

 

MatWeight
M15

 

PlantMatPrice
P1M15
P2M17
P3M19

 

Query Result - in red the expected result

 

PlantMatWeightPrice
P1M155
P2M157
P3M159

 

M1WeightPrice
M115 ( excepted result is 5 )X

Two BW system/application/landscape on single HANA Box

$
0
0

Hello Experts,

 

We have two BW landscape 1 for US and  1 for UK. Our UK BW landscape is migrated to SAP HANA. Now we want to migration for US BW landscape.

 

Can we use the same HANA server for US BW? If yes, is it possible to do HANA modelling containing data for US and UK in a single model without using Smart Data Access.

 

Thanks in advance.

 

-Rakesh

Error in calculated column if condition in analytical view

$
0
0

Hi,

 

I am having issue in calculating with condition in HANA. I am creating  calculated column in which my condition is

if ("OTYPE = "ZMTS", Netvalue * 10, Netvalue * 5 )

 

For testing purpose I even tried if ("OTYPE = "ZMTS",50,75) but still error.

 

my calculated column data type is "Decimal" and column type is measure.

 

When i try this with key figure like if(Netvalue >1000,10,5) this works fine.

Is there any different way when we are dealing with non key figures in condition.

Thanks
Sri

HANA Live Query : CostcenterActualCostItemQuery

$
0
0

Hi,

 

I want to make a custom query based on the standard query CostCenterActualCostItemQuery which I copied.  Without doing any modifications, I get an error message when I check and save the view : "Exception Occurred : element SPRAS IS no longer available".

 

This is the cause of the issue : 

2015-04-23 10_46_03-ZCOSTCENTER.. - Message (HTML).png

Does anyone know how to resolve this ?

 

Kind Regards,

Els

What are the values and the meaning of OBJECT_STATUS in table _SYS_REPO.ACTIVE_OBJECT?

$
0
0

Hello,

 

What are the values and the meaning of OBJECT_STATUS in table _SYS_REPO.ACTIVE_OBJECT?

I guessed two of them, but not sure about others. Please correct and complete my understanding below:

 

'0' - Object is Active

'1' - Object is Active but broken (inconsistent)

'2' - ???

Others ???

 

I appreciate your help.

 

Best regards,

Cosmin

Questions on HANA System Replication

$
0
0

Hi All,

 

I would like to seek your input/advise, if I setup HA=DR (between 2 datacenters) using system replication from PRD (primary) to DEV/QAS (secondary) utilizing shadow operation i.e like the following diagram.

SystemReplication.PNG

My questions are:

1. Do the HANA System Replication sync. real time?

2. May I know what is the minimum number/minute that I can set to replicate both data disk and log disk from primary host to secondary host?

3. How long do you think the transition period from primary host to secondary host? any chance for un-interrupted/instant takeover? if not, how long do you think it will be?

4. I read once the secondary host takes over the primary, the existing non-prod operation will be ended. is it done automatically or we need to do it manually?

5. How do we switch back again to the primary host (from secondary host)? I'm assuming in here we need to do it via HANA Studio.

 

Thank you,

 

Regards,

Ura


logical index creation error: [2442] view over temporary table not supported

$
0
0

Hi Team,

 

I'm getting the below error when I make use of normal join with global temporary column table in the scripted calculation view?

 

Internal deployment of object failed;Repository: Encountered an error in repository runtime extension;Internal Error:Unable to create hierarchy view:

transaction rolled back by an internal error: column store error: logical index creation error:  [2442] view over temporary table not supported;hierarchy view over temporary table not allowed

 

I'm using HANA revision 82.

 

Thanks for your help in Advance!

 

Thanks

Sathish

Connecting HANA to SAP ECC via adapter: Could not get tables

$
0
0

Hi,

 

I am trying to connect a SAP ERP IDES system running on MS SQL Server 2012 using the new functionality DP Agent and MssqlECCAdapter by following the guide

http://help.sap.com/download/multimedia/hana_options_eim/SAP_HANA_EIM_Administration_Guide_en.pdf

 

I have implemented the necessary configuration on SAP ERP IDES (MS SQL Server 2012) host described in sections 6.6.1.2 in the EIM admin guide, and also got connected to the underlying MS SQL Server 2012 using adapter MssqlLogReaderAdapter. However, when I try connecting using MssqlECCAdapter adapter to leverage the ECC data dictionary, I get the following error:

 

SAP DBTech JDBC: [403]: internal error: Cannot get remote source objects: Could not get tables

 

Here is the setup of the remote connection in SAP HANA Studio, and I try to connect both with "sa" and "erp" (owner of SAP ERP schema in SQL Server).

Capture01.PNG

 

On the SAP ERP IDES host, where the DP agent is running, I have noticed that the agent throws an error "Invalid object name 'ERP.DM41S'"

Capture02.PNG

 

Has anyone succeeded with connecting SAP HANA to SAP ERP using MssqlECCAdapter and see what I am doing wrong?

Thanks in advance.

Debugger not showing output in SP09

$
0
0


Hi,

 

I have written a test procedure using development perspective. (I think only procedures created via development perspective can be debugged, kindly correct if I am wrong).

 

Procedure is as below -

 

 

 

PROCEDURE"A"."A::get_product_sales_price_st"

 

 

(INproductidNVARCHAR(10),

 

 

OUTout_tttable (prodidnvarchar(10), pricedecimal(15,2))

 

 

)

 

 

       LANGUAGESQLSCRIPT

 

 

       SQLSECURITYINVOKER

 

 

       --DEFAULT SCHEMA
<default_schema_name>

 

 

       READSSQLDATAAS

 

 

BEGIN

 

 

/*****************************

 

 

       Write
your procedure logic

 

 

*****************************/

 

 

declarev_l1nvarchar(2) := :productid;

 

 

 

 

 

out_tt = select :v_l1asprodid, 1.5 aspricefromdummy;

 

 

 

 

 

END;

 

 

When I call this procedure in SQL console, I can see the output.

 

 

call "A"."A::get_product_sales_price_st"('A',?)

 

Capture.JPG

 

But when I debug procedure in debug perspective, it shows me values of input parameters, but NOT of Output.

 

Capture.JPG

 

Capture.JPG

 

Any idea, why debugger not showing value of out_tt and why it is terminating at the end?

 

Thanks for the reply.

 

Best Regards,

Saurabh

unable to install tuned-profiles-sap-hana for red hat linux before installation

$
0
0

Hi,

 

According to RHEL 6.5 configuration guide for SAP HANA, I am trying to install a pre requisite package tuned-profiles-sap-hana, but i am unable to do so.

 

The step for the same from the guide is below:

 

Install and configure the package tuned-profiles-sap-hana from the RHEL for SAP HANA channel:

# yum -y install tuned-profiles-sap-hana

 

 

The error message is : No package available. Nothing to do. Screenshot is attached.

 

Help appreciated.

 

Thanks,

CPU usage history

$
0
0

How do we get the CPU usage history for the HANA database? Our HANA systems are on SPS08. I can collect the memory stats from the table _SYS_STATISTICS.HOST_SERVICE_MEMORY

 

Also if i click on Dashboard monitoring in HANA studio & click on CPU usage, it shows no data.

 

Some queries are going to be run tomorrow & we need to collect the CPU/memory stats during that time. What is the best way to do this?

Viewing all 5653 articles
Browse latest View live


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