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

Isnull not working in calculated column of attribute

$
0
0

Hello All,

 

I am trying to check Null value of the date field in calculated column of attribute view, but it is not working.

 

IF( isnull("TODATE"),'PRESENT','')

Capture.PNG

 

I am expecting 'PRESENT' in STATUS field if TODATE is null.

 

Thanks,

Rithika


Dynamic table name in AMDP procedure

$
0
0

Hi,

 

I my AMDP procedure I need to use table which is created dynamically, which means that the name of the table will not be the same when we transport our development to QA. All I know, and what will be the constant across the landscape, is the particular customizing value based on which I could fetch mentioned dynamic table name in one of the system tables.

 

Table in question is marked in yellow in the screenshot bellow. Any ideas how could I use dynamic value for the table name in there, and I'm pretty new to AMDP but I know that tables need to be declared as USING parameters of the procedure and I'm not even sure if this is possible

 

Thanks

 

Capture.PNG

Unhandled event loop exception - New BW Project in HANA Studio

$
0
0

Hi, I'm getting the below error when I'm trying to create a new BW Project in HANA Studio. eclipse_error.jpg

HANA LIVE REPORT INSTABILITY

$
0
0

Hello Guys,

 

We have an implementation of HANA reports on HANA Views (HANA Live), and some of those reports are showing some instability if you compared the extracted data versus sap standard reports (abap based transaction).

 

One report is basically extracting data from inventory levels at plant and material level, and depended upon the time that we run the HANA view, some itens are completely blank which is not the case if you check the report on the ABAP layer.

 

Does that have any think related to locking transaction? If yes, how to avoid that situation since it is just reading data and not an update ou delete process?

 

Thanks

 

Christian

Missing Options for Plan Viz

$
0
0

Hi there,

 

This might be a silly question - however can someone tell me how to obtain the additional options for plan viz

 

Capture.PNG

HANA Audit does not log failed login attempts

$
0
0

Hello community,

 

could you please give me a quick hint on this issue?
I've created an audit policy via HANA Studio and deployed it.


Policy is enabled, I'd like to audit CONNECT, DISCONNECT SESSION, CANCEL SESSION, actions are ALL, audit Level is WARNING and before that I also tried INFO and the user is correct.

 

The problem is I only see successful Login attempts in the syslos and no failed attempts for example when I type in wrong Passwords in HANA Studio (Adding the System with another user). As soon as I enter the correct Password it Shows up in the logs. We need to see all failed login attempts.

 

The audit policy also ignores when the user gets locked, but I guess that's another story.

HANA SDA to MySQL with ODBC

$
0
0

Dear All,

 

I am trying to use HANA SDA to connect to MySQL server, but always get error "SAP DBTech JDBC: [476]: invalid remote object name: Unable to retrive remote metadata for .. : line 0 col 0 (at pos 0)";

I checked my MySQL server and I saw the login success which came from the HANA.

 

Connection to MySQL.png

From SQL statement, remote source look as follows?

 

MySQL Table.png

We use HANA 1.0 SP 09.

 

Please help, thank you.


BR,


Tino


Error HDB Server Installation: EHP7(SWPM)

$
0
0

We are currently trying to install a fresh HANA IDES system with SWPM:EHP7.

We are having issues with the installation of the HANA DB as shown in the picture:

Unbenannt.PNG

 

Our logs are producing following output:

 

Mon Jun 27 16:37:58 CEST 2016 | com.sap.hdb.core.main.cmd.HdbCmdMain | *************************************************************

Wed Jun 29 10:39:00 CEST 2016 | com.sap.hdb.core.main.cmd.HdbCmdMain | Start new command section

Wed Jun 29 10:39:01 CEST 2016 | com.sap.hdb.core.main.cmd.HdbCmdMain | Version of com.sap.hdb.core.jar | Changelist: 157290 | API-Version: 00

Wed Jun 29 10:39:02 CEST 2016 | com.sap.hdb.core.main.cmd.HdbCmdMain | Version of com.sap.hdb.sl.lib.jar | Changelist: 157289 | API-Version: 34

Wed Jun 29 10:39:04 CEST 2016 | com.sap.hdb.core.main.cmd.HdbCmdMain | Name of HdbCmdClazz: class com.sap.hdb.sl.lib.utils.cmd.clazz.InstallServer

Wed Jun 29 10:39:04 CEST 2016 | com.sap.hdb.sl.lib.utils.HdbInst | Use Java process call.

Wed Jun 29 10:39:04 CEST 2016 | com.sap.hdb.sl.lib.utils.HdbInst | Execute command:  /home/admin/SAP/51050846_part1/51050846/DATA_UNITS/HDB_SERVER_LINUX_X86_64/hdbinst --batch --read_password_from_stdin --shell=/bin/csh --number=02 --sid=HDB --sapmnt=/hana/shared --hostname=IDES7

Wed Jun 29 10:39:24 CEST 2016 | com.sap.hdb.sl.lib.utils.HdbInst | SAP HANA Database installation kit detected.

Wed Jun 29 10:39:28 CEST 2016 | com.sap.hdb.sl.lib.utils.HdbInst |

Wed Jun 29 10:39:28 CEST 2016 | com.sap.hdb.sl.lib.utils.HdbInst |

Wed Jun 29 10:39:28 CEST 2016 | com.sap.hdb.sl.lib.utils.HdbInst | SAP HANA Lifecycle Management - Database Installation 1.00.120.00.1462275491

Wed Jun 29 10:39:28 CEST 2016 | com.sap.hdb.sl.lib.utils.HdbInst | ****************************************************************************

Wed Jun 29 10:39:28 CEST 2016 | com.sap.hdb.sl.lib.utils.HdbInst |

Wed Jun 29 10:39:28 CEST 2016 | com.sap.hdb.sl.lib.utils.HdbInst |

Wed Jun 29 10:39:28 CEST 2016 | com.sap.hdb.sl.lib.utils.HdbInst | Start reading from input channel...

Wed Jun 29 10:39:28 CEST 2016 | com.sap.hdb.sl.lib.utils.HdbInst | ... Done.

Wed Jun 29 10:39:28 CEST 2016 | com.sap.hdb.sl.lib.utils.HdbInst | Start reading from input channel...

Wed Jun 29 10:39:28 CEST 2016 | com.sap.hdb.sl.lib.utils.HdbInst | ... Done.

Wed Jun 29 10:39:28 CEST 2016 | com.sap.hdb.sl.lib.utils.HdbInst | Installation failed

Wed Jun 29 10:39:28 CEST 2016 | com.sap.hdb.sl.lib.utils.HdbInst |   running in batch mode

Wed Jun 29 10:39:28 CEST 2016 | com.sap.hdb.sl.lib.utils.HdbInst |     Database User (SYSTEM) Password is invalid

Wed Jun 29 10:39:28 CEST 2016 | com.sap.hdb.sl.lib.utils.HdbInst |       Database User (SYSTEM) Password must contain at least one upper-case character

Wed Jun 29 10:39:28 CEST 2016 | com.sap.hdb.sl.lib.utils.HdbInst |

Wed Jun 29 10:39:29 CEST 2016 | com.sap.hdb.core.main.cmd.HdbCmdMain | Error during execution of HdbCmdClazz section!

Wed Jun 29 10:39:29 CEST 2016 | com.sap.hdb.core.main.cmd.HdbCmdMain | An error occured during command execution. Please check logfile for further information. Current Logfiles: [/tmp/HDB_SL_Logfile.log, /tmp/sapinst_instdir/NW740SR2/HDB/INSTALL/STD/ABAP/HdbCmdOut.log]

Wed Jun 29 10:39:29 CEST 2016 | com.sap.hdb.core.main.cmd.HdbCmdMain | com.sap.hdb.sl.lib.utils.HdbInst.throwException(HdbInst.java:351)

Wed Jun 29 10:39:29 CEST 2016 | com.sap.hdb.core.main.cmd.HdbCmdMain | com.sap.hdb.sl.lib.utils.HdbInst.installServer(HdbInst.java:125)

Wed Jun 29 10:39:29 CEST 2016 | com.sap.hdb.core.main.cmd.HdbCmdMain | com.sap.hdb.sl.lib.utils.cmd.clazz.InstallServer.execute(InstallServer.java:50)

Wed Jun 29 10:39:29 CEST 2016 | com.sap.hdb.core.main.cmd.HdbCmdMain | com.sap.hdb.core.main.cmd.HdbCmdMain.execute(HdbCmdMain.java:113)

Wed Jun 29 10:39:29 CEST 2016 | com.sap.hdb.core.main.cmd.HdbCmdMain | com.sap.hdb.core.main.cmd.HdbCmdMain.main(HdbCmdMain.java:74)

Wed Jun 29 10:39:29 CEST 2016 | com.sap.hdb.core.main.cmd.HdbCmdMain | *************************************************************

 

The log clearly states, that the password for HDB is wrong (missing upper-case character).

But sapinst corrected us to use a password to fit this and was content afterwards.

So we don't really have an idea what went wrong.


Help is appreciated. I'm pretty new to this.


Best regards.


Analytics Metadata

$
0
0

Role.JPGHi.

 

I need to create Analytics Metadata for custom views to be able to generate analytical privileges for the view. When I go to properties of the view I only see the General tab and not the Analytics Metadata tab. I do have the Analytical Developer role assigned to my user. What am I missing?

Properties.JPG

 

Regards.

Koos.

I need license for a migrated productive database from SQL to HANA but not for de Demo ones

$
0
0

Hello everyone, I´m facing the next issue and I´m 90 % sure that it´s because we need to download for licences for SAP B1 version for SAP HANA, but I would like to know you opinion and if possible an explanation so we can tell that to our client about the fact that we can access a demo database without license but it gives a license error when we try to access a newly migrated test database from SQL to HANA

 

Kind regards

Is there a way to calculate the Median using one or multiple calculated columns in SAP HANA calculation views?

$
0
0

Hi!

 

This is my first time posting in the community so if this is out of topic please let me know. I was asked by a client to make a report which includes calculating the Median for a set of data. Has someone found a way to do this calculation using just tools from SAP HANA calculation views? I would need to do it within the view and just output the result as a column.

 

One way I thought could work would be to use a Rank node and split it in half but since I cannot use a variable as the Rank's Treshold this option is not viable. Or is it? Is there a way to make the Rank's Treshold variable?

 

Thank you all in advance for your help.

 

Regards,

 

Juan

purpose of schemas _sys_rt , _sys_afl,_sys_task

$
0
0

Hi Gurus ,

 

Could you please brief about the system schema   _sys_rt , _sys_afl,_sys_task and purpose .

 

 

Thanks & Regards,

Anjan

Database Migration from SQL Server 2012 to SAP HANA

$
0
0

Anybody can explain in steps what type of homework i need to move sap ecc6 ehp7 IDES at windows 2k8 standard R2 platform with sql server 2012 to sap HANA Database.

inconsistent implementation error in SQL query

$
0
0

Hi Experts,

 

Please check following query. It was running properly in SPS10. Recently, we have upgrated to SPS11. Now, I am not able to execute below mentioned query.

 

I am using single (same table) for fuzzy search.

 

 

select * from "SCHEMA_NAME"."TBL1" A where (
SELECT SCORE() AS SCORE FROM "SCHEMA_NAME"."TBL1" B
WHERE CONTAINS(B."EMP_NAME",'John', FUZZY(0.8))
and A."EMP_ID"=B."EMP_ID" ) >0.7

I am getting following error.

SAP DBTech JDBC: [2048]: column store error: search table error:  [23056] Internal error during join: inconsistent implementation

Processing a single table in HANA gives strange results

$
0
0

Nice to meet you all.

 

Use case:

 

I have a single table

EmpId
EmpName
EmpDept
Supervisor
E1SamPhysicsE2
E2RamChemistryE3
E3SanMathsE2
E4KumarBiologyE2
E5RaviTamilE2
E6GuruEnglish
E7SankarHindiE2
E8ManiComputerE1
E9SelvaElectronicsE4
E10RameshElectrical

 

The Supervisor is also an employee. Hence the Supervisor column has the EmpId of the Supervisor.

 

I need to find the EmpName Vs SupervisorName details

 

Following steps I did,

 

Step 1:

Created an attribute view, where I added the above table twice to get the SupervisorId and SupervisorName. The results are expected

 

 

 

Step 2:

Created an analytic view. Joined the above attribute view and the table.

 

But the actual result is wrong. For example, the supervisor name for E2 is Ram as per step 1 and table, but the result shows it as Kumar. None of the SupervisorId and SuperVisorName matches.

 

Please advice.

 


error in simple produre

$
0
0

Hi,

 

could anybody please let me know what is the issue with this procedure. Its giving me error at line 4 as it is not recognizing VAR1 input parameter.

 

CREATE PROCEDURE MULTI1 (IN VAR1 INTEGER, IN VAR2 INTEGER, OUT VAR3 INTEGER)

LANGUAGE SQLSCRIPT SQL SECURITY INVOKER AS

BEGIN

B = :VAR1 * :VAR2;

END;

 

Rgds

PlanViz - need to understand the tool - Overview Tab

$
0
0

Hello Gurus,

 

Indeed the tool is very useful, however I have few more queries to better understand the tool.

 

I would like to emphasize on Overview Tab first since this is designed to give us overview of the performance (This is what I think ).

 

I shall put across my queries on Executed Plan Tab later. I hope that is okay.

 

1) Time Section

PlanViz_Time.jpg

 

a) What is it compiling? The object is already in activated state. Why is it taking 143 ms to compile? Does this time is included in Execution Time?

b) Execution time is 98.7 s. However, on fetch of 200 records of the same query it takes around 1 min to execute. What this execution time signifies?

PlanViz_Result200.jpg


2) Context Section


a) Why the system is mentioned here. This is not the actual system name.

b) Memory Allocation: Is this the dynamic memory allocated to each query when it is fired by the user for each execution?

PlanViz_Time.jpg

3) Data Flow Section


a) Number of Tables Used: I am certainly NOT using 246 in my model. This is not the real count. Many temp tables which are created while execution of the query can be seen in 'Tables Used Tab'.

b) Maximum Rows Processed: I never tried counting the number records, however, will that soon. (Still would like to know .. to reduce my efforts .. )

PlanViz_DataFlow.jpg

4) Distribution Section


a) I have always seen the Number of Nodes as 1. Does it signify non-scaled out environment?

b) Number of Network Transfers is always 0. Is this a count of cross tenant requests?


PlanViz_Distribution.jpg


Shirish.

Code Push down to AMDP versus Open SQL in ABAP code

$
0
0

Hi,

 

we are experimenting with code-pushdown to AMDP and found a good example in SLCM to try this out.

 

We already managed to speed up the processing In ABAP with Open SQL and all kind of new ABAP-functionality.

The idea was to make it work still faster in AMDP. But up to now the result is rather negative.

 

What we want to do is replace a simple evaluation path in HR/PD, by reading relations in a loop until there are no more underlying objects - this is what function module RH_STRUC_GET does, but that is a lot slower.

 

The ABAP solution reduced the response from several minutes to about 0.6 seconds. The AMDP needs approximately 0.9 seconds (150 % but still fast).

 

Is there a way to find out where the AMDP 'loses time'? As far as I know I can't run a trace on it. Or can I?

 

Furthermore: are there other possibilities to copy tables in an AMDP apart from the SELECT with a UNION?

 

Below is how I wrote it. The logic is ok and exactly the same as in ABAP. Where do I lose time?

 

*-- Start with 1 record only

    lt_o = SELECT 'O' as otype,

                  objid as objid,

                  lv_level as level

           from :im_objid ;

    SELECT count( * ) into lv_o from :lt_o;

*-- Loop

    WHILE lv_o <> 0 DO

       lv_level = :lv_level + 1 ;

*-- Read data from the database
       lt_object = SELECT sclas AS otype,

                          sobid AS objid,

                          lv_level as level

              FROM hrp1001 as hrp1001

              inner join :lt_o as input

                 on hrp1001.otype = input.otype

                 AND hrp1001.objid = input.objid

              WHERE hrp1001.begda <= :im_endda

                AND hrp1001.endda >= :im_begda

                AND ( ( hrp1001.subty = 'B002' AND hrp1001.sclas = 'O' )

                   OR ( hrp1001.subty = 'A501' AND hrp1001.sclas = 'SM' ) )

                AND hrp1001.mandt =  session_context('CLIENT')

                AND hrp1001.plvar = '01'

                AND hrp1001.istat = '1';

*-- Are there any 'O'-s left for a next loop?

       lt_o = SELECT otype,

                     objid,

                     level

                 from :lt_object

                 where otype = 'O';

       SELECT count( * )

              into lv_o

              from :lt_o;

*-- Add the 'SM'-s to the output

       rt_sm = SELECT *

                  from :rt_sm

               UNION

               SELECT *

                  from :lt_object

                  where otype = 'SM' ;

*-- ... and start allover again.

    END WHILE ;

 

 

I hope anyone can help me out.

Regards.

Kris

Heavy redo logs generated during SAP HANA Replication

$
0
0

Hi All,

 

Heavy redo logs generated during SAP HANA Replication ,  Database has grown to unexpected level and FS reached 100%.

and during the disturbance period we were not able to login to HANA system.

 

 

 

How to avoid this ?  Please suggest.  what could have went wrong.

 

 

 

Regards

Performance tab in HANA Administration Console

$
0
0

One of our customer wants to check the feasibility to disable all the tabs/restrict the content in the tabs except Performance tab in HANA Administration Console.

 

If anyone has worked on this scenario or has any suggestions, please reach out to me or Narender(in cc).

 

Note:

 

We have tried the below options so far:

 

·        Assigning a role with the CATALOG READ privilege, which gives view access for all data in the console, except Alerts.

·        Assigning a Role with select privilege to all the views under SYS and SYS_STATISTICS schema


thanks,

Ranjith

Viewing all 4343 articles
Browse latest View live


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