Quantcast
Channel: SCN : Unanswered Discussions - SAP HANA and In-Memory Computing
Viewing all 4343 articles
Browse latest View live

Error in grant the authorizations

$
0
0

Hai Experts ,

i am trying to provide the grant authorizations but i am unable to provide kindly help out in this .


Multiple parameters in Calculation script view

$
0
0

Hi All,

We just upgraded to SPS 11.

I created an input parameters with Multiple entries. I used the Parameter IP_MATNR in the select query

 

var_out = select matnr,werks from XYZ.MARC where matnr = :IP_MATNR

 

When i run the data preview and gave the value for IP_MATNR = 'PART123' , I get error like shown below

 

Error: SAP DBTech JDBC: [2048]: column store error: search table error:  [34023] Instantiation of calculation model failed;exception 306106: Undefined variable: $$ip_matnr$$. Variable is marked as required but not set in the query

 

This worked fine when i removed multiple parameter option.

 

Please let me know if i am passing the parameter right or am i missing something ?

 

Thanks,

Gokul

In sufficient privilege calling procedure in calc view

$
0
0

Hi All,

 

I have created a stored procedure which uses select query on analytical view.  But when i call that procedure inside calculation view, it says in sufficient privilege even after executing GRANT SELECT ON <SCHEMA NAME> TO "_SYS_REPO" WITH GRANT OPTION. Please help on this.

 

Thanks,

Rithika

SAP HANA Administration for BO ADMIN

$
0
0

Hi Dear Experts,

 

I am currently working as BO Admin. I am interested in learning HANA Administration as well.

In this case i am confused with below

  • How different is HANA Admin vs BASIS admin?
  • Most of the places i see HANA with BASIS admin. Not HANA with BO Admin.
  • Is it mandatory to know SAP BASIS as prerequisite to learn HANA ADMIN?

 

Regards,

Bhavanam.

How to kill a session

$
0
0

I want to kill a session in HANA version 80.  Through HANA Studio, I found the session and kill the session by 'Cancel session...'. The session status was changed to 'RUNNING(CANCEL REQUESTED)', but it never be killed.  Instead of rebooting the HANA, is there any way to real kill the session?

Thanks,

Scott

HANA Live

$
0
0

Hi,

 

 

We are working on the HANA live views and wanted to know some basics.

 

 

1) What is the process for HANA live views implementation? Do we install all the HANA live views in Dev and then move only views needed to the production or just install all of the views in production directly and no need to move any HANA live views across transport?

 

Thanks in Advance,

Prasad

WITH CLAUSE for sub-query

$
0
0

Hi folks,

 

Recently I've been performance tuning some calculation views written by another developer and I've consistently found examples where they are using WITH CLAUSE similar to this;

 

VAR_OUT = WITH<alias_name_A>AS(sql_subquery_statement),
<alias_name_B>AS(sql_subquery_statement_from_alias_name_A
or sql_subquery_statement )
SELECT<column_list>
FROM<alias_name_A>,<alias_name_B>,[tablenames]
[WHERE<join_condition
>]


In several cases I've re-written to be something like this;


LT_ALIAS_A = select * from ABC;

LT_ALIAS_B = select * from XYZ;

VAR_OUT = select * from :LT_ALIAS_A JOIN :LT_ALIAS_B ON whatever


Now both ways work and give results but I'm finding performance seems to be worse with the WITH CLAUSE.  Does anybody know for certain that this is consistently the case or perhaps I've just gotten lucky thus far as my examples are somewhat over simplified and in reality these are fairly complex queries however it SEEMS i'm consistently seeing degradation with the WITH clause.  I'm not finding much on this clause in SQL guide so I'm wondering if anybody has any thoughts on this or actually does their local tables this way.


Thanks,

-Patrick

How to convert Column Store Table to Shapefile

$
0
0

Hi,

 

I have a column store table with Lat/Long information in it. I ALTERED this table and added a column with data type ST_POINT and then populated this table using below SQL.

 

Insert into Schema.Table1 values(

Select Col1, Col2,.....,NEW ST_POINT(TO_DECIMAL(LATITUDE, 5, 5), TO_DECIMAL(LONGITUDE, 5, 5)) from Table2)

 

I created a calculation view using above table(Table1) and a spatial table(States) containing all US states with column SHAPE having data type ST_GEOMETRY.

 

Although both these tables have column with spatial data type but still HANA does not allow Spatial join.

 

In another test, I created 2 tables(States and County) by importing Spatial files from File --> Import --> SAP HANA --> ESRI Shapefiles and created a calculation view on it. This time spatial join worked.

 

Based on the above analysis it seems Calculation view with Spatial join works only on Tables imported from Shapefiles.

 

My requirement is to add column with Spatial data type in existing Column Store Table and make use of Spatial join.

 

Is there a way to convert column store table in HANA to Shape file? OR

Possibly other ways to use Spatial Join without converting the existing tables to Shapefile ?

 

I have read about ArcMap, is that the only option?

 

 

Regards

Randhir Jha


Delta Merge failing during data conversion.

$
0
0

We are doing a mock data conversion test of our legacy data, to our SAP PRE-PROD ECC system. I'm noticing a lot of HANA alert 88. Delta merge is failing while the data load is happening. I have a couple of questions.

 

1. Is it possible to turn off the delta merge system wide during the load? In our mock test it is taking 4 days to complete. The system will be up and available to the business during the load. I have concerns about turning it off for that long.

 

2. What are the best practices around delta merge during a large data load?

What's the usage of HANA parameter "native_mixed_join_enable"?

$
0
0

Hi dear all,

 

Do you know the HANA parameter "native_mixed_join_enable" this one?

I have met the question that the customer has a problem that big usage of BitVector Memory, so the developer advice change this parameter into false.

Then how the parameter influence the system? If i change it to false, what the result or disadvantage?

 

I have searched in the system about this parameter, but get nothing. So i think this parameter is added manually.

So could anyone help explain about this? Or have some doc or website for referring?

2016-07-12_14-57-04.png

 

Thanks in advance.

Have a nice day.

New Calculated column for field ARBEH ( Unit for work )

$
0
0

Hi All,

 

In transaction data ,value for field # ARBEH varies such as MIN,DAY,SEC,HR . My requirement is to create a calculated column(eg. ARBEH_HOUR)  which will be always in HR . How can I write this expression ? Eg.( if ARBEH is MIN then ARBEH_HOUR should be equal to ARBEH/60 or if ARBEH is SEC then ARBEH_HOUR should be equal to ARBEH/3600 ) . Pleas let me know how can I write this logic on HANA Studio . Thanks in advance .

 

Best Regards,

Pranjal

UDF Return-Table Based On Repository Table

$
0
0

I have tried the following:

 

FUNCTION "mySchema"."myFunction" ( )

  RETURNS TABLE ( "SAPR3"."TCURR" )

  LANGUAGE SQLSCRIPT

  SQL SECURITY INVOKER AS

BEGIN

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

  Write your function logic

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

END;

 

and various derivations thereof, but activation fails with the syntax error "Syntax error in table function object: incorrect syntax near ".": line 13 col 26 (at pos 475)" and I cannot find anything which works.

 

Any suggestions out there?

Not able to see the text for Units

$
0
0

Hello all,

 

I am new to hana i need help in one our requirements.

 

The requirement is as below:

 

I want to show quantity and units in the reports.

 

For this i have created an attribute view with T006,T006T and i have joind DIMID in both the tables and given join as text join and language as spras.

 

for out put i have selected MSEHI(Unit of measurement),DimId from T006 table and TXDIM(Dimension text) from the T006T table.

But when ran the view and when use data preview it is showing blanks.

 

But if i executed the same with the query i am getting the output, PFB query

 

select "HANA_POC"."T006"."DIMID","HANA_POC"."T006"."MSEHI","HANA_POC"."T006T"."TXDIM"

from "HANA_POC"."T006","HANA_POC"."T006T"

where "HANA_POC"."T006"."DIMID" = "HANA_POC"."T006T"."DIMID" and "HANA_POC"."T006T"."SPRAS"='E';

 

Please correct me what i am doing wrong in the GUI..

 

Thanks,

 

Mahesh

SQL Script Calc. view: sql to get row with min. value

$
0
0

Hi,

I am developing a SQL calc. view. I reach to a level where I have my data like:

 

customer country month     cost
c001          US        
201506   -100
c001          DK         201506   -100
c001          DE         201506    -50
c001          FR         201507   -200
c001          UK         201507    -50

 

out of above dataset, I need to get below results:

customer country month     cost

c001     DK      201506   -100

c001     FR      201507   -200

 

that is 'within each month', taking 'lowest cost' generating 'country' for each customer.

CATCH: in this example, we can see that in 201506, cost -100 is same for US and DK. In this case only taking either one, not both.

 

WHAT I've tried so far:

 

SELECT "customer" as "custM", "month" as "monthM", "country" as "countryM", "cost" as "costM"

FROM "mytable" as "M"

INNER JOIN

     (

          SELECT "customer" as "custS", "month" as "monthS", MIN("costSUM") AS "costMIN"

          FROM

                    (SELECT distinct "customer", "country", "month", sum("cost") as "costSUM" FROM "mytable"

                    GROUP BY "customer", "country", "month")

 

          GROUP BY "customer","month"

     ) as "S"

ON "M"."customer" = "S"."custS" AND "M"."month" = "S"."monthS" AND "M"."cost"= "S"."costMIN"

 

the above SQL gives me result like:

c001     US      201506   -100
c001     DK      201506   -100
c001     FR      201507   -200

 

 

but i need either like:

c001     DK      201506   -100
c001     FR      201507   -200

 

OR like:

c001     US      201506   -100
c001     FR      201507   -200


I much appreciate your help how to write SQL to solve this issue.

best regards

Ahmad

ABAP call HANA procedure has with version validation hint

$
0
0

Hi all,

 

I've checked HANA performance trace and found each call statement sent from ECC has the hint "with version validation".

 

validation.png

I'd like to disable the check. Could you please give some tips on this?

 

Thanks,

Leon


SAP HANA replay online logs on other host

$
0
0

Dear experts,

 

Is it possible to replay the online log volumes of one HANA instance on another host. So let's say I dide a complete Data Backup from HANA onst Host1 on monday and did following log backups until wednesday, 12:00 am. Then at Wednesday 3 p. m. the whole host crashes, but I manage to save the content of /hana/log/<DBSID>.

 

I rebuild a new host, play in the complete database backup from monday + all log backups until wednesday, 12:00 am. How can I roll forward to Wednesday 3 p. m.? Can i just copy the content of /hana/log/<DBSID> in there after applying all backups beforehand and then start HANA database?

 

Best regards

 

Andreas Loibl

CDS view: How to SELECT from HANA schema table

$
0
0

Hello,

 

I want to create a cds view and would like to know how I can select from a HANA schema table?

Is it a way to solve it?

 

Many Thanks!

Sylvain

Row based security using hierarchies

$
0
0

Hi,

      I am working on designing a calculation view that requires row based security using hierarchical relations. Here is the scenario...

 

CV1: Is a calculation view of type CUBE that has all the facts/measures and has Cost Center.

CV2: Is a DIMENSION calculation view that has a flat structure of the Cost Center hierarchy i.e. it has a column for CostCenter (child) and Parent_CostCenter(parent). The Cost Center hierarchy reflects the hierarchy in SAP, where one or more cost centers roll up in to higher level Cost Centers. The hierarchy has multiple levels.

CV3: Join CV1 and CV2 on CostCenter

 

Each reporting user is assigned a Cost Center.

 

The CV3 is a reporting calculation view that requires row based security on Cost Center i.e. The analytical privileges should pick the CostCenter of the user logged in and show only that data which belongs the user's CostCenter and the child CostCenters based on the hierarchy.

 

I thought of defining a parent-child hierarchy and enable the SQL access. But this works only for the CVs with a Star join which will join only the DIMENSION calculation views. But my CV1 is a CUBE calculation view, so I cannot go about using the SQL access for the hierarchy.

 

Any thoughts?

AIX operating system for SAP HANA database

$
0
0

Hello Experts,

 

We know that supporting OS for Hana is SUSE (SLES) and Red hat (RHEL).

But currently our client is running application on OS AIX as  of now and we have to do implementation on their system.
Is there any way we can install HANA on AIX OS or may be in future SAP is planning to bring AIX as a certified OS for HANA.

 

Please guide us on this topic.

 

Thanks in Advance,

Arpan

How to upgrade SAP HANA PL3 from PL0

$
0
0

Any one have proper documents related to SAP HANA Upgrade from PL0 to PL3...??????

Viewing all 4343 articles
Browse latest View live