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

SAP HANA for SAP MM support Consultant

$
0
0

Hi everyone,

I am into SAP MM Support (Trouble shooting, Small Developments,etc.) since last two years & now want to rescale my career thru SAP HANA.

 

Kindly help me on how can I move into SAP HANA, as I dont have any knowledge of BI or BW or SQL or Database :-

 

1. Should I take SAP Functional Training of 5 days from SAP Authorized Training Center ?

2. Someone suggested me for getting Trained in Suite on HANA (SOH) as I am into SAP MM Support.

3. Also where will I get the Training for Suite on HANA (SOH), i tried at SAP Bangalore, its not there.

4. Should I take some other Courses/Training before I move into SAP HANA.

 

Kindly help me on above questions. Thanks.


Memory consumption by HANA processes

$
0
0

Hi

 

I'm playing with HANA SPS6 Developer Edition on Cloudshare. While about 19.5 GB RAM is available from the OS point of view, as can be seen in "free -m" output, most of this memory is allocated by HANA processes themselves. Actually, I see that less than 3GB is available for user data and it is very tight restriction, especially given the in-memory nature of HANA.

 

I wonder if it is possible to decrease the memory allocation by some HANA processes, except hdbindexserver of course. How can I check if the memory allocation by various HANA processes is adequate? Is it possible to change it?

 

Thanks in advance

Building a SAP HANA Server

$
0
0

Hi everyone,

 

My name is Stephen and I'll be building a HANA server with my company soon.  I came across this CRM on HANA cookbook >> https://cookbook.experiencesaphana.com/crm/deploying-crm-on-hana/

 

And I am wondering, can I use this as a general setup guide for building my company's HANA server, even if I don't use it for CRM purposes.

 

My plan is to use that guide for it's pre-installation, installation and post installation up till the part about "Activating the SAP CRM web client" portion. Then I plan to add SAP Business Suite 4.0 instead of SAP CRM. 

 

Looking for some advice on installation of HANA server.  If anyone know of a common checklist that I should perform that would be great too.

 

Thanks! Looking forward to everyone's answers/suggestions.

Index usage in HANA

$
0
0

Hi

 

I'm learning HANA and I have a question about the usage of indexes and query plans. I use HANA SPS6 Developer Edition VM on Cloudshare for my tests.

 

I populated a column table with 15,000,000 of rows and I'm trying to test some queries. A simple example:

 

select * from "LEONID"."CDRs" where NUM_ORIG = '9054052020680';

 

This query returns one row, even though values in NUM_ORIG column (defined as VARCHAR(15)) doesn't have to be unique. The query consistently takes 15 ms. to finish.

 

Then, I create an index on NUM_ORIG column:

create index idx_CDRs_NUM_ORIG on "LEONID"."CDRs"(NUM_ORIG);

 

From INDEXES view, I can see that HANA chooses "INVERTED VALUE" index type for the index. Then, I run my query again, and it consistently returns in 1 ms. Apparently, the index get used because it is the only change that made between the tests. If I drop the index, the query response time returns to 15 ms.

 

To my great surprise, I don't find any mention of index usage in the query plan. Actually, the query plans for the query with and without indexes looks exactly the same. Is it an expected behavior? Should I monitor the index usage in other place? See the output from EXPLAIN_PLAN_TABLE below, I omitted some obvious information to make it slightly more compact:

 

OPERATOR_NAME,OPERATOR_DETAILS,TABLE_SIZE,OUTPUT_SIZE,SUBTREE_COST,OPERATOR_ID,PARENT_OPERATOR_ID,LEVEL,POSITION

"COLUMN SEARCH","CDRs.CDR_ID, CDRs.CC_ORIG, CDRs.AC_ORIG, CDRs.NUM_ORIG, CDRs.CC_DEST, CDRs.AC_DEST, CDRs.NUM_DEST, CDRs.STARTTIME, CDRs.ENDTIME, CDRs.DURATION (LATE MATERIALIZATION)",?,1,0.000008691042685,1,?,1,1

"  COLUMN TABLE","FILTER CONDITION: CDRs.NUM_ORIG = '9054052020680'",15000000,1,?,2,1,2,1

 

I tried to examine the query plan also using SAP HANA Studio, but still see the same plan with and without index and there is no mention of index usage in the plan.

 

Another related question: is there any best practices for indexing in HANA? I'm asking about it because in other SAP column-based RDBMS, Sybase IQ, the approach for indexing is quite different from traditional row-based RDBMSs, such as Sybase ASE, Oracle or SQL Server.

 

Thanks in advance

CE syntax with Placeholders and parameters

$
0
0

Hello Experts,

 

a) How can we convert a SQL syntax like:

 

SELECT .......FROM CV1

(

            PLACEHOLDER."$$ZIP_CV_DAT_GYTD_FROM$$" => :V_GYTDfrom )

WITH PARAMETERS ( 'PLACEHOLDER'=('$$ZV_CV_ATT_VENDOR$$', 'XXX') );

 

b) how to pass a Variable prompt from BO to HANA within the above syntax? with what do we need to replace XXX

 

 

Thanks & regards,

Jomy

Scalability and progress of data import into HANA

$
0
0

Hi

 

I'm playing with importing and merging of data to a single table on HANA SPS6 Developer Edition VM on Cloudshare. My control file for the IMPORT looks like this:

 

import data

into table "LEONID"."CDRs"

from 'CDRs_01.gz_15000000_b.out'

    record delimited by '\n'

    field delimited by '|'

error log 'LEONID_CDRs.err'

 

Unfortunately, I see that at most 1.5 out of 4 virtual CPU cores available on the VM are active during the IMPORT, while MERGE is executed in a much more parallel way. In other words, the scalability of IMPORT seems to be quite limited. What can be done to overcome the problem? Is it an expected behavior?

 

My another question is about logging of progress of the IMPORT operation. So far, the only way I have found to watch the progress of the IMPORT and MERGE is to monitor M_CS_TABLES view. Is it possible to see the progress in a textual log, or something like that?

 

Also, does somebody succeeded to use M_IMPORT_BINARY_STATUS view? On my environment it is always empty. Given the the view description in documentation "status information for current session", I probably just don't understand how to use it correctly, please help.

 

Thanks in advance

Leonid Gvirtz

Manual Maintenance of Output Cols in Script Based Calculation View

$
0
0

Hello Experts,

We've a scenario, wherein we are having a script based Calculation view wherein we are calling a graphical calculation view.

We would like to keep the same output cols in Script based CV as well.

 

In that case, do we need to manually add may be 200 fields in the output columns of Script based calculation view, assuming we've around 200 fields in graphical calculation view?

 

In this case, are we not increasing the maintenance work.

 

Waiting for your expert opinions.

 

Thanks & regards,

Jomy

Percentage field in SAP HANA

$
0
0

Hi Everyone,

 

We have amount field in SAP HANA and we want percentage of amount in Analytic View. When I try to create Calculate measure we don't have SUM function available.

 

We need this in Analytic View it self as SAP HANA Info Access app can only access Analytic Views from SAP HANA.

 

Can anyone help me on this.

 

Regards,

Venkat


Connecting to HANA DB on AWS using local HANA Studio

$
0
0

I have an account with AWS, have two instances - one a Windows Server (running HANA Studio) and a Linux server running HANA DB. I would like to connect to the HANA DB on AWS locally on my machine from within my local copy of HANA Studio. I can't seem to get to the aws server, and ping seems to fail. Is this possible at all? Or is the DB on AWS only accessible from another AWS server?

 

I checked my firewall settings to make sure it was not blocking traffic to AWS....

 

Thanks...

Insert into table fails Using XSJS

$
0
0

Hello Experts,

 

I am using following code to to insert data in an table. But this gives error. 

 

var conn = $.db.getConnection();  
var pstmt = conn.prepareStatement('insert into \"SCHEMANAME.TABLENAME\" values(\'XXX\',\'20121006\',\'185712\', 12.0)');  

var rs = pstmt.execute(); 

 

 

Same insert statement works fine from SQL console.

Question1: How can I fix this error?

Question2: How can I capture the exception ?

 

Please help.

 

Regards,

Atanu

Tableau vs. Lumira

Viewing Visualize Plan for variables vs. WHERE clause

$
0
0

Hi all, stumbled upon this and was wondering if anyone had seen something similar. This all came up in trying different ways to implement filters across the different BO tools (Analysis, Universe, Explorer, Lumira).

 

The core observation is that there seems to be a difference in the Explain plan for a given Analytic View when using a WHERE clause vs. using a variable (with the PLACEHOLDER technique). However, I am not seeing a performance difference in the query results.

 

What I was expecting to see was a BwPopSearch operation to filter out records a given attribute occurring in both of these. I only observed it in the WHERE clause statement.

 

Do variables/parameters not appear as visible within the Visualize plan? Again, these have the same runtimes, so I have to believe there is a filter pushdown/search happening somehow.

 

PARAMETER Example

SELECT

  Table__1."KUNNR",

  Table__1."KUKLA",

  Table__1."MATNR_T",

  sum(Table__1."SALES")

FROM

  "_SYS_BIC"."Main.Analytics.Sales/AN_INTEGRATED_SALES"

  (PLACEHOLDER."$$VAR_SIG$$" => 'MDSG')  Table__1

GROUP BY

  Table__1."KUNNR",

  Table__1."KUKLA",

  Table__1."MATNR_T"

 

No PopSearch

VARIABLE.JPG

 

WHERE clause Example

SELECT

  Table__1."KUNNR",

  Table__1."KUKLA",

  Table__1."MATNR_T",

  sum(Table__1."SALES")

FROM

  "_SYS_BIC"."Main.Analytics.Sales/AN_INTEGRATED_SALES"  Table__1

WHERE

  Table__1."SALE_ITEM_GROUP_ID"  =  'MDSG'

GROUP BY

  Table__1."KUNNR",

  Table__1."KUKLA",

  Table__1."MATNR_T"

 

PopSearch occurs

WHERE.JPG

How HANA handle Out of memory (OOM)

$
0
0

Dear HANA experts.

 

 

How HANA handle OOM (Out of memory) situations,  could you provide more details about this?

Join optimization

$
0
0

This is a new thread opened for a continuing discussion

 

currently join is needed between two huge fact tables . If the join is performed on the fly on HANA , the performance is degraded and HANA sometimes crashes .

 

Thus a stored procedure chunks the data and then performs the join on the smaller chunk and then dumps the results in a physical table .  The chunking is inefficient and but the data inserts is even more . The majority of time is taken in the delta merges ( data inserts) .

 

 

Here is the code

 

essentially , there are two tables  Table_A , and Table_B and an analytical view is created from them .

 

we pick data between 2 timestamps from  analytical view made from Table_A

 

and within a loop we join data from Table_A and Table_B

and dump the results to a physical table .

 

What can be done to optimize .

 

unfortunately I cant seem to hold in Memory the results of the while loop like

 

A= A union ( results of while loop) 

 

 

 

 

 

 

 

CREATE PROCEDURE CPM_SAP.SP_ZZFSL_CE11_REV_JOIN_V4 
(IN MIN_TIMESTAMP NVARCHAR(14), IN MAX_TIMESTAMP NVARCHAR(14),IN MIN_PERIOD NVARCHAR(6), IN MAX_PERIOD NVARCHAR(6)) 
LANGUAGE SQLSCRIPT AS
XPERIOD INT  := :MIN_PERIOD;
XYEAR   INT  := 0;
XMONTH  INT  := 0;
BEGIN
VAR_Z_NAME_OBSCURED = SELECT "RYEAR", "RTCUR", "RUNIT", "POPER", "RBUKRS", "RACCT", "RCNTR", "RPRCTR", "RZZSITE", 
"RZZPOSID", "RZZFKBER", "DOCTY", "REFDOCNR", "AUFNR", "ZZLDGRP", "VBUND", "ZZBUZEI", "AWORG", "CPUDT", "CPUTM", 
"ZZBUZEI_RPOSN", "PERIOD_ID", "TIMESTAMP",
"TSL" AS "TSL", "HSL" AS "HSL", "KSL" AS "KSL", "MSL" AS "MSL" 
FROM "_SYS_BIC"."wlclose/AN_Z_NAME_OBSCURED_REV_KSLNN" 
where "TIMESTAMP" > :MIN_TIMESTAMP  AND "TIMESTAMP" <= :MAX_TIMESTAMP ;
WHILE :XPERIOD <= :MAX_PERIOD DO 
VAR1_Z_NAME_OBSCURED = SELECT "RYEAR", "RTCUR", "RUNIT", "POPER", "RBUKRS", "RACCT", "RCNTR", "RPRCTR", "RZZSITE", 
"RZZPOSID", "RZZFKBER", "DOCTY", "REFDOCNR", "AUFNR", "ZZLDGRP", "VBUND", "ZZBUZEI", "AWORG", "CPUDT", "CPUTM", 
"ZZBUZEI_RPOSN", "PERIOD_ID", "TIMESTAMP",
"TSL" AS "TSL", "HSL" AS "HSL", "KSL" AS "KSL", "MSL" AS "MSL" 
FROM :VAR_Z_NAME_OBSCURED 
where "PERIOD_ID" = CAST(:XPERIOD AS VARCHAR(6)); 
VAR_CE11000 = SELECT "PALEDGER","KSTAR", "PERIOD_ID","BUKRS", "COPA_AWORG",  "ZZBUZEI_RPOSN", "RBELN", "PERIO", 
"GJAHR", "PERDE", "RPOSN", "PRCTR", "PPRCTR", "SKOST", "RKAUFNR", "KURSF", "VV005_ME", "VV006_ME", "WW004","WW011" , "WW012", "WW013", 
"WW008", "WW023", "WW010", "WW020", "WW015", "WW006", "WW024", "WW026", 
"VV005" AS "VV005", "VV006" AS "VV006" FROM "_SYS_BIC"."wlclose/AN_CE11000_REV_LDG01"
where "PERIOD_ID" = CAST(:XPERIOD AS VARCHAR(6));
VAR_JOIN =  SELECT Z.RACCT AS RACCT, Z.RBUKRS AS RBUKRS, Z."PERIOD_ID" AS ZPERIOD, Z."AWORG" AS AWORG, Z."ZZBUZEI",
Z."REFDOCNR" as REFDOCNR, Z."RCNTR" as RCNTR, Z."RPRCTR" as RPRCTR, Z."RZZSITE" AS RZZSITE, Z."RZZPOSID" AS RZZPOSID, 
Z."RZZFKBER" AS RZZFKBER, Z."DOCTY" AS DOCTY, Z."AUFNR" AS AUFNR, Z."ZZLDGRP" AS ZZLDGRP, Z."VBUND"AS VBUND, 
Z."TIMESTAMP" AS TIMESTAMP,Z."RYEAR" AS RYEAR, Z."POPER" AS POPER ,Z."TSL" AS TSL, Z."HSL" AS HSL,  Z."RTCUR" AS RTCUR,
Z."KSL" AS KSL, Z."MSL" AS MSL, Z."RUNIT" AS RUNIT, C."PALEDGER" AS PALEDGER ,C."KSTAR" AS KSTAR, C."BUKRS" AS BUKRS,
C."PERIOD_ID" AS CPERIOD,C."COPA_AWORG" AS COPA_AWORG,C."RBELN" AS RBELN,C."ZZBUZEI_RPOSN" AS RPOSN,  
C."WW004" AS WW004, C."WW011" as WW011,  C."WW012" AS WW012 , "WW013" AS WW013  , C."WW008" AS WW008,  C."WW023" AS WW023, C."WW010" AS WW010, 
C."WW020" AS WW020, C."WW015" AS WW015, C."WW006" AS WW006, C."VV005" AS VV005,C."VV005_ME" AS VV005_ME,  
C."VV006" AS VV006, C."VV006_ME" AS VV006_ME
FROM :VAR1_Z_NAME_OBSCURED  Z 
LEFT OUTER JOIN :VAR_CE11000 C ON                         Z."ZZBUZEI_RPOSN"=C."ZZBUZEI_RPOSN" AND                         Z."REFDOCNR"=C."RBELN" AND                         Z."AWORG"=C."COPA_AWORG" AND                         Z."RBUKRS"=C."BUKRS" AND                        Z."PERIOD_ID"=C."PERIOD_ID" AND                        Z.RACCT = C.KSTAR;

INSERT INTO CPM_SAP.ZZFSL_CE11_REV_JOIN (SELECT * FROM :VAR_JOIN );

XYEAR  := (:XPERIOD/100);
XMONTH :=  :XPERIOD -  (:XYEAR*100) ;
IF :XMONTH =12 
THEN 
XPERIOD := ((:XYEAR+ 1) * 100) +1;
ELSE 
XPERIOD := :XPERIOD +1;
END IF;
END WHILE;

END;

Activation issue with a calculated column

$
0
0

I am new to modelling with HANA and am trying to do an index calculation using the logrithmic function as one of the calculated columns in an Analaytic View. Whatever I did does not seem to work and fail during activation of the view. It was supposed to be based on a column (another calculated column if possible?) but I have tried it as a constant value, it still fails activation and gives the following errors;

 

Short Text


Attribute type is not valid


Cause


Mismatch between data type defined and values computed.


Recommendations

Check calculated measure/attribute definition and ensure data types match.

 

I am attaching the definition of the column as an image. I have tried several other data types besides NVCHAR, nothing worked, same error message.

 

Any comments?


2 HANA Modeling Questions (urgent - appreciate it)

$
0
0

Hello experts,

 

Need your assistance.

 

1) In Attribute View, we can't have a table having joins coming from 2 different sources/tables in Attribute View.

 

For example, table MARC has join coming in from AUFK and AFKO. (even though before this would work at attribute level, it would fail at calculation view level).

 

I've tried this now and it seems to work at calculation level = confused But concerned it may not be consistent or cause other issues.

 

Is it still incorrect to have joins coming into a table from 2 or more different tables in Attribute View?

 

OR

 

If it is allowed, anyone have documentation from SAP, maybe a patch resolved it - so documentation of that will help? I have to show the client.

 

------------------------------------

 

2) I have a simple scenario where I only want data for the last 60 days. Unfortunately, in Attribute view you can only use a hard value. I can't put system date nor a hard coded date because the date is dynamic.

 

So At the calculation level I created a filter expression at projection node. But now() is not recognized here either.

 

So I'm stuck with getting all the data from the Attribute view. Then filtering. But that's effecting the performance significantly.

 

Is there a way to dynamically retrieve data only for the last 60 days from the Attribute View?

 

Thanks in advance.

Simulate common table expression in HANA SQL Script

$
0
0

Hi,

 

I need to simulate a recursive query in HANA stored Procedure.

I know that HANA does not support CTE, so how would I do this?

 

I looked at all the discussion posted, but I don’t see any viable solution at all.

 

Is there any way I can do this without creating other tables to load and unload data as in examples I've seen.

 

For example, if I have a table that contain Employee/Manager relationship.  I need to count number of employees under a manager when a manager number is given.  How can I accomplish this?

 

Thank you for your help in advance.

 

Hyun Grasso

Hierarchy based variable/Input Parameters in a HANA Calculation View ?

$
0
0

Hi Experts ,

                    Is it possible to include a Hierarchy as a variable/Input Parameters in a HANA Calculation view ?

 

 

FYI , So far I have done the following : Lets assume we are creating a Hierarchy for a Job Level .

 

1) Created a Attribute view with this Hierarchy (Parent-Child).

2) Joined this Attribute View using SQL in a Calcualtion View (Script Based).

 

I wanted to use this Job Level Hierarchy in the Variable :

 

Is it possible to use Hierarchies in Variables ? If possible , Please help me know how can this be achieved in HANA .

 

 

Thanks in advance .

 

Regards,

Chaitanya .M

Widget content invisible

$
0
0

Hello All,

 

I try to create an AppSite and a Widget, where I want to reference my SAPUI5 project.

I created a SAPUI5 Application Project and placed a simple Table object in it (sap.ui.table.Table). It works without problems when I go directly to its URL in the browser.

Then I created the AppSite, a widget and the widget specification file as described in the HANA Developer Documentation (page 257).

 

Widget Specification File:

 

<?xml version="1.0" encoding="UTF-8" ?>

<Module>

    <ModulePrefs title="TestWidget">

    </ModulePrefs>   

    <Content type="html" href="/path/to/my/index.html"></Content>   

</Module>

 

When I start the AppSite in the browser and embed the newly created widget in it, only the static HTML content of the referenced SAPUI5 Application Project index.html is displayed in die widget window (e.g. "Hello World", but not the

dynamically created sap.ui.table.Table object.

 

Can you give me any hints what could be wrong?

 

Thanks

Christoph

Row Store Vs Column Store

$
0
0

Hi All,

 

           I am  new to SAP HANA, I have some doubts like,

 

1) What is Column Store and Row Store and how they work?

2) When to use column store and row store?

3) which one is better for data loading?

4) Which one is better for reporting?

which supports the indexes?

 

If any one have information regarding above queries Please share me.

 

Thanks,

Ramana

Viewing all 5653 articles
Browse latest View live


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