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

Selecting the current timestamp in specific format

$
0
0

Hi Everyone,

 

I have a requrement whre the timestamp column values have to be shown in 'YYYY-MM-DD HH24:MI:SS' format. It was possible in the earlier versions of Hana. I am currently on SP07 and i am unable to get it this way. When i do a select current_timestamp 'Jun 26, 2014 3:54:52.439 AM' this is the displayed format.

 

If anyone can give few tips regarding this, it would be great.

 

Are there any timestamp formats like in SQL Server here? In SQL Server the formats are assigned some numbers and when we specify the numbers, the timestamp is shown in a format that corresponds to the number. If there is a similar functionality in Hana please provide me.

 

 

Regards,

Rudrabhupal PB.


calling User definedTable valued function in Select

$
0
0

Hello,

 

I Created a UserDefined Table Valued Function in HANA.

 

I need to call it in Select Statement Statement.

 

For Example

 

Select Func(col1) as test,col2 from tablename;

 

While using UserDefined Table Valued Function in above select statement

 

I am getting following error

 

cannot use procedure or table function in select projection

 

Please help me

SAP DBTech JDBC: [260] Error

$
0
0

Hi,

 

We have installed a SAP HANA 80. I'm created a simple table with two fields (field01, field02) and then created an analytic view for testing. I activated without any errors. But when I click preview data it gives the error below. Also when I try to connect via Lumira, (I'm able to see the analytic view in lumira) while retrieving the data it gives the error below agian.

 

I have no field named ORDER. Any ideas?

 

Thanks.

 

SAP DBTech JDBC: [260]: invalid column name: invalid column name: ORDER: line 1 col 3934 (at pos 3933) at ptime/query/checker/check_expr.cc:846

can't use procedure in the .rdl file.

$
0
0

Hi experts,

 

I created a simple River project, and I can active the project successfully.

But when i added some codes to call a procedure, then i can't active the rdl file.

 

 

This is the code I used to call a procedure:

action callExternalProc2() : DecimalFloat[]

     {

      let x  = sap.hana.catalog.RIVERPRJ.MY_PROCEDURE_TEST3();

      return x;

     }

 

 

The error message met when active the project is:

A transaction rollback may have left the object in an inconsistent state.

exception 40183:

repository/base/activation/activator.cpp:884

Transaction rollback detected. Activation failed.

 

river.jpg

 

 

When i commented the above codes, the activation will be successful.

And the procedure can execute in SQL console.

 

 

Can you give me some suggestions?

Writing data into table from Calculation View in SAP HANA

$
0
0

Hello Experts,

 

I have a situation where there are some calculated and restricted keyfigures in Calculation View. Now i want to read data from this calcualtion view and store into ztable in SAP hana.

Can i do it using SQL Procedures? Please let me know how to do it.

 

Thanks in Advance

 

Bhasin Naik

Hana scheduled Backups

$
0
0

Hello,

 

I'm trying to schedule Hana's backups.

 

First of all, I'm trying to execute with the sample script.

 

 

#!/bin/bash

# SAP HANA Backup

# define backup prefix

TIMESTAMP="$(date +\%F\_%H\%M)"

BACKUP_PREFIX="SCHEDULED"

BACKUP_PREFIX="$BACKUP_PREFIX"_"$TIMESTAMP"

# source HANA environment

. /usr/sap/shared/DB1/HDB01/hdbenv.sh

# execute command with user key

# asynchronous runs job in background and returns prompt


hdbsql -U backup_operator "backup data using file ('$BACKUP_PREFIX') ASYNCHRONOUS"

 

I've tried to execute the script directly but Im getting error -bash: ./backup_test.sh: Permission denied

 

How can I execute it?

 

Thanks

Could not commit transaction: Error -1 detected during transaction '' (UDO1)

$
0
0

I'm having the error

 

"Could not commit transactión: Error -1 detected during transaction " (UDO1), after trying to register an UDO:

2014-06-26_094942.png

we are working on SAP B1H 9.0 PL09, HANA REV 69. My customer has purchased B1UP and they are not bieng able to use it as this add-on registers UDOs, and due to this error they cannot create UDOs either. I have cleaned all restrictions from SBO Transaction Notification, I don't know if by erasing all Formatted Searches as I read that on some posting, I'll be able to fix this problem.

 

2014-06-26_095335.png

I have query UDO1 and OUDO and everything seems to be fine this DB comes from SQL Server & B1 9.0 PL07 installation.

 

Hope you'll be able to give me ideas so I can solve this incident. I have already posted a SAP message too and I'm waiting for SAP Support to help us too.

 

Greetings!!

Calculation view with input parameters

$
0
0

Hello there.

I got a calculation with that expects 2 input parameters.

But now I have to created another calculation view that import this calculation view.

How can I pass these 2 parameters using sqlscript?

 

  My script so far

 

  cv1 = CE_CALC_VIEW("_SYS_BIC"."calc_1",["CR"],'"COMPANY"=''7000''');

 

I must pass 2 parameters in this  "_SYS_BIC"."calc_1" table


SPS7 .hdbprocedure with INSERT gives privilege error during activation

$
0
0

Hello All,

 

We have upgraded to SPS7. We are trying to use an INSERT statement on a database table in a .hdbprocedure. For this we removed the READ SQL

addition on the SQL header, made SQLSCRIPTMODE parameter as UNSECURE in Configuration.

 

But the problem with privilege seems to be at the table level. I try to create a Custom role(.hdbrole). This gets activated fine when I just give the SELECT on the SCHEMA.

 

But when I add INSERT in addition to SELECT privilege on schema holding the table it gives an error Cannot Activate/No Privilege to activate Catalog Object

.

 

The INSERT on the table is not letting me activate the .hdbprocedure or a custom role. Can you please advice what could be the problem.

 

Also, an SLT has been configured to get data into these set of tables, could this be the problem.

 

Best regards,

Pavan

How do we transport DATA in implementation project from Development to Quality?

$
0
0

Hi folks,

 

I am New to SAP,

 

I wanted to know how we transport the data in implementation projects from development to quality server?

 

Is it using SE10, se09 or do we have some other technique?

 

The same in SAP BI, SAP HANA, SAP ABAP

 

 

Thanks

Siddhartha

How to parse XML in server side javascript (XSJS)?

$
0
0

Hi Experts,

 

I can get the XML file content through this method:var xmlString = $.response.body.asString() and I need to parse XML. If there XML parser in server side javascript? thanks very much!

Logging/Tracing in hdbprocedures

$
0
0

Hello,

 

I'm currently writing a complex hdbprocedure. Is it somehow possible to insert logging/tracing statements?

 

Thanks,

Silvana

HANA Studio rev.74 - performance in calc view with union of many sources

$
0
0

Hi,

 

Windows 7 32 bit, 4GB system memory, Intel Core Duo 2.26Ghz, HANA studio rev 74.

 

Maintaining a graphical calculation view where first node is union of 30 calculation views each with 150 columns.  Maintenance of the view is terribly slow almost to the point of unusable as I add sources to the union, leading to a consideration of remodelling the requirement with a scripted view (or breaking down into smaller sets of graphical calculation views) to work around the sluggish response.

 

As well as building the view for development purposes I'm considering longer term maintenance options where I cannot guarantee system specs of the supporting developer.

 

Does anyone else have experience of such sluggish Studio performance with a graphical calculation view using many large view sources?

 

Is there any theoretical limit to the number of sources in a union?

 

Cheers,

JP.

Work with a table in different schema depending on the user group

$
0
0

I have 2 groups of users user_group1, user_group2 and also two different schemas schema_group1,schema_group2 containing the same table names with a different content.

 

Now, i have to write a stored procedure which takes user name as input and depending on which group the user belongs to, i want to work with table in that user_group schema.  i.e.(if user_group1 then "schema_group1"."table". if user_group2 then "schema_group2"."table" )

 

i tried to set schema using dynamic sql but it seems that the schema is changing only after the end of the stored procedure.

sql_error_message is null for error_code:1299

$
0
0

SQL_ERROR_MESSAGE shows error message for most of the cases but its NULL for the error code : 1299 - no data found

 

DROP PROCEDURE TEST_EXCEPTION;

 

CREATE PROCEDURE TEST_EXCEPTION ()

LANGUAGE SQLSCRIPT

AS

BEGIN

 

     DECLARE VAR_TEMP VARCHAR(10);

     DECLARE EXIT HANDLER FOR SQLEXCEPTION

     BEGIN

            SELECT ::SQL_ERROR_CODE,::SQL_ERROR_MESSAGE FROM DUMMY;

     END;

 

     --INSERT INTO "TEJA"."USERS" VALUES ('U_USER1','UNION'); --shows the error message (primary key violation)

     --SELECT 1/0 FROM DUMMY;   --shows the error message

     SELECT VALUELESS INTO VAR_TEMP FROM "TEJA"."TEMP10" WHERE VALUELESS = 'DIVI';

 

END;

 

hana.png


Problem Installing HANA DB

$
0
0

Hello Experts,

 

Please see below error , while installing HANA.

hana error.png

 

Regards

Manish

Shifting of technology to SAP Hana

$
0
0

Hi ,

 

     I worked as software developer in .net technology for 3.5 years i want to change in my technology.Pls suggest whether i can go for Hana to hav bright future in my career.CDo i need to go for any other combination with Hana?

 

Thanks and Regards,

Geetha

How to load SAP R/3 tables into a schema in SAP HANA Cloud Platform

$
0
0

Hello, everyone.

 

First of all, my apologies for any basic mistakes, I'm new here, so there's a lot of stuff I don't know yet.

 

I need to upload some tables to a schema in my HANA trial account to test some algorithms and see if the kind of application I want to build is possible, but I don't know the best way to do this.

To my understanding, using the Cloud Connector would merely make my tables visible to my application in the cloud, but it would not actually upload them (or rather, I'm sure there's a way to upload them using it, but I suspect there are far simpler methods out there).

I think one of the simplest possible methods would be to create the schema, open a tunnel using the console client, and to import the tables to the schema via the HANA Studio. Maybe, if that doesn't work, a CMIS repository could be used (although I'm somewhat skeptical, as I think something like this it's not its intended use). Or maybe there's another possibility I'm not seeing. Either way, I would love to hear some answers that could shed some light on this.

Also, as I mentioned earlier I'm only using a trial account for this, I don't know if there's any limitation that could prevent me from doing this. I'd also like to hear your opinion on this matter.

 

Thank you.

RDS Vs HANA LIVE

$
0
0

Hello Team

 

Request admin team not to remove this discussion because i am posting this question after going through relevant threads.

 

I need your help. I had gone through various discussions on RDS and HANA Live, i am little confused. please help me to come out of my confusion.

 

As per my understanding RDS is Rapid Deployment Solution and it is a predifined solution given by SAP.  The predifined solution is given in the form of 4 files in the RDS solution as .ATL file ( it contains all predifined ETL solution), .TGZ file (It contains all predifined views like attribute view, analytical view and calculation view based on the solution) and .LCMBIAR file (It contains all predined universes and reports) and finally a Design document.

 

As per my understanding HANA Live is the HANA content avialable only in the form of calculation view.

 

So i request you to please look into the below questions and clarify me according.

 

1. If RDS is the predifined solution then what is HANA LIVE, is it also a predifined solution? please clarify..

2. RDS is having all views based on the solution but HANA LIVE contains only calculation views, why it is having only calculation views.. please clarify.

3. I understand RDS content can be customize, so is it the same with HANA live( I mean can  i create analytical views or attribute views if required) .. please clarify..

 

 

Please check and correct me if my understanding is wrong. I am confused about RDS and HANA LIVE differences.. please clarify and pull me out of confusion.

 

Regards

Raj

HANA administration guide for SP06 and certification refrences

$
0
0

Hello ALL

 

I am writing my HANA SP06 (HANATECH_131SP06) on July  and preparing HA 200

 

Please share HANA Administration Guide for SP06 link and other reference links

 

Thanks,

Sankar

Viewing all 6412 articles
Browse latest View live


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