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

Schedule Job Log Not Displayed

$
0
0


Hi,

I have a scheduled job (.xsjob) that runs every minute. Once that I activate the scheduled job in the XS Admin Console, I verify that the job is executed correctly every minute by looking to the logs. However, the schedule logs in the XS Admin always appears empty, even after pressing the "Refresh" button (regardless the job fails or succeeds, nothings get displayed in the XS Admin Job Log section.

 

Is there any special setting that needs to be set to display the scheduled job results on the XS admin console?

 

Thanks,

 

Diego


About SAP HANA

$
0
0


Hi Experts,

 

Can you please tell me about SAP HANA ,when it will required?

i am an ABAP Consultant ,So i can learn directly ?my friends told me required BW/BI to easy learn ,

and any good institute in hyderabad,Banglore ,Chennai?

 

Thanks in advance.

 

regards

Tej

Is it possible to specify Unique constraint in the hdbtable file?

$
0
0

Hi

 

In hdbtable file we can specify the primary key as below:

table.primaryKey.pkcolumns = ["PRODUCT_ID"];

 

But, I am wondering how to specify the UNIQUE constraint for some columns in design time. I am unable to find any examples of it.

 

If anybody has done it, could you please share your finding?

Where will get the SAP HANA Demo data or application?

$
0
0

where will get the SAP HANA Demo data or application?

HANA ODBC Error

$
0
0

Hi Experts,

 

We have created one ODBC DSN for HDB and for few days it has worked fine.We were able to import the tables from ECC to HANA. However now the same step showing error as below:

 

ODBC-Error

SQL State : 08S01

NATIVE ERROR:-10709

MESSAGE TEXT :[SAP AG][LIBODBCHDB DLL][HDBODBC]

Communication Link Failure:-10709 connection failed (RTE:[89006] system call 'connect' failed, rc=10061, No connection could be made because the target machine actively refused it).

 

 

Please suggest on this ASAP.

 

Regards,

Sunil

Add column on a specific position

$
0
0

Hi there,

 

is it possible to use an ALTER TABLE statement to add a column to a table on a specific position?

I couldn't find it in the documentation.

 

Thanks,

ben

HANA Authorization problem

$
0
0

Hello,

 

I have a hdbschema file which creates a schema. I  am working with the SYSTEM user and I add the schema in Object privilege. I see that the grantor is user _SYS_REPO. But the grantable checkbox is disabled for the SYSTEM user and hence when I run 'grant select on schema ... ' statement, I get authorization issue and I am not able to use objects in schema. When I use the objects in schema in a procedure I get again an insufficient authorization error.

 

Any thoughts?

 

-Regards,

Manjunath

::SQL_ERROR_MESSAGE verbosity, e.g. procedure/line number?

$
0
0

Hello,

 

is there a way to get a more verbose output from exception handling in SQLScript then what ::SQL_ERROR_CODE and ::SQL_ERROR_MESSAGE currently provide? Specifically I am looking for line numbers and procedure names in which the exceptions are thrown.

 

The information itself should be avaiable somewhere I guess, since when an unhandled exception is thrown all that info is showing up in the console. I can't find any way to use it in a handled exception though.

 

Cheers

Johannes


Cloudshare disables extends button but doesn't detect SAP Hana Studio

$
0
0

Hello,

 

I had the developer instance of SAP HANA on cloudshare but yesterday they disabled the extend button and the instance shuts down after 60 minutes even so I have SAP HANA Studio open and working on it.

 

I cannot recommend them anymore.

Can I use a trigger to keep record of deleted data?

$
0
0

I am trying to log changes to a table, including deletes. The trigger is working effectively for INSERT and UPDATE, but does not capture the data from the row when I create a DELETE trigger.   I have tried various trigger syntax methods to capture the data in a new "log" table, but I only seem to get the key field after the trigger fires.

 

My base table has only a few fields:  ID (key), NAME, DESCRIPTION, CREATED_ON, UPDATED_ON.

 

On delete, I would like to capture the data that was deleted for record keeping and audit trails.   Below is the latest iteration of my trigger define code:

create trigger ADDRESS_TYPES_TRIGGER_D
BEFORE DELETE ON "MEDPORTAL"."MEDPORTAL_XS.data::ADDRESS_TYPES" 
REFERENCING OLD ROW AS thisRow
FOR EACH ROW              
begin  declare newId INT;  declare deleteId INT := 131;  select "MEDPORTAL"."MEDPORTAL_XS.data::Address_Types_Log_ID".NEXTVAL into newID from DUMMY;  INSERT INTO "MEDPORTAL"."MEDPORTAL_XS.data::ADDRESS_TYPES_LOG"   (ID,  USERNAME,  ACTION_ID,  ADDRESS_TYPE_ID,  NAME,  DESCRIPTION,  UPDATED_ON  )  values(  :newId,  current_user,  :deleteId,  :THISROW.ID,  :THISROW.NAME,  :THISROW.DESCRIPTION,  current_timestamp  );
end

This code captures the newId from the sequence as the new table key.  It also captures the USERNAME, ACTION_ID (coded to a delete message in another table), ADDRESS_TYPE_ID (THISROW.ID), and the current_timestamp.  How can I capture the data in NAME and DESCRIPTION in the log table? 

 

I have tried

create trigger ADDRESS_TYPES_TRIGGER_D
AFTER DELETE ON "MEDPORTAL"."MEDPORTAL_XS.data::ADDRESS_TYPES" 
REFERENCING OLD ROW AS thisRow
FOR EACH ROW 

and

create trigger ADDRESS_TYPES_TRIGGER_D
AFTER DELETE ON "MEDPORTAL"."MEDPORTAL_XS.data::ADDRESS_TYPES" 
FOR EACH ROW 

 

But I cannot capture the data.  I am on the AWS rev 70 image (1.0.70.386119)

Is the DELETE trigger capable of capturing the data?

Put the query result of "EXECUTE IMMEDIATE" command in a local table

$
0
0

Hi all.

 

Is it possible to put the output of the "EXECUTE IMMEDIATE" command in a local table so that the ouput can be accessed through other procedures.

 

 

Regards,

Andila

PAK: Planning Session

$
0
0


Hi Gurus,

 

during planning with PAK it seems like a planning session in Schema SAP<SID> is created, in which various temporary views are generated.

For instance i can find at runtime of a PAK planning function the following view within HANA:

 

 

"_SYS_PLE:20140314102904_3660000:DATA"

 

 

 

Does anybody know how to find out more Information about this construct. Lets say a view which Shows all relevant views of this planning session.

Or more details what this planning session construct is?

 

If anybody knows something, i would be really happy.

 

THX in advance!

 

Jonas

Call Procedure without ? from .net

$
0
0

Hi,

 

I am calling a procedure which have parameters like

 

 

"CALL \"Schemananme\".\"ProcedureName\"(?)"

 

From .net code

 

 

using (DbCommand dbCommand = db.GetStoredProcCommand("CALL \"Schemananme\".\"ProcedureName\"(?)")

{

 

db.AddInParameter(dbCommand, "p_test_Id", DbType.Int32, 3);

ds = db.ExecuteDataSet(dbCommand);

}

 

I want to construct command text dynamically so I dont want give ? in the command text.

 

Because I am constructing it dynamically, I dont know how many ?'s are  required.

 

Because Every procedure exists with different number of parameters.

 

any how i am adding input parameters

 

from  the below line

 

db.AddInParameter(dbCommand, "p_test_Id", DbType.Int32, 3);

 

 

Please help me to construct the command text dynamically.



When I try to Open Data Preview, it keeps refreshing and don't open it.

$
0
0

1.png

 

 

Hi, I'm having some problems when trying to open data preview from an expecific table on HANA Studio.

I keeps refreshing the table (as in the image below), and don't open it! I keep waiting about 10, 20 minutes and nothing appears.

 

Does anyone knows why it's happening this?

 

 

Regards!

Currency Conversion Problem

$
0
0

Hi ,

 

I am facing the currency conversion problem while trying to use CONVERT_CURRENCY Function.

 

Copied all the five tables from SAP System to HANA system and trying to do conversion.

 

This is the error which i am getting.

 

Could not execute 'SELECT CONVERT_CURRENCY(amount=>price, "SOURCE_UNIT_COLUMN" =>source_unit, "SCHEMA" => 'PDOSHI', ...' in 333 ms 807 µs .

SAP DBTech JDBC: [2048]: column store error: search table error:  [2620] executor: plan operation failed;currency/unit conversion error,Conversion( "col0" ), row 0: could not determine valid conversion rate for value(s) 2 from unit 'BEF' to unit 'ATS' on date 1999-01-01 00:00:00.0000000

 

Data is there in all the five tables. But i am not able to get the issue.

When from Currency and To Currency are same it gives the values.

 

Regards ,

Pratik Doshi


Upgrade to SP7 vs 72 broke SQLCC Anon user in XS app

$
0
0

We have an XS application set up to use an anonymous sql connection.  It worked before we upgraded to SP7 v. 72 but not after. We're being prompted for credentials now.  There are no errors in the xsengine log file and the user is still set in the XS admin tool.  Any thoughts?

Thanks,

Amy

Not able to debug XSJS service

$
0
0

Hi,

 

I am receiving following error on launching debug configuration:

 

 

"Failed to check if system is secured"

 

I believe because of above error i am not able to debug the .xsjs service.

 

I am setting Host and Port for debug configuration same as i am using to test service in browser.

 

Thanks,

Rahul

Retrieving column names of table from HANA through Java is slow.

$
0
0

Using Metadata.getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) to get column names takes around 500ms-1000ms to complete.

 

com.sap.db.jdbc.trace.DatabaseMetaData's implementation of the the getColumns method takes much longer than Oracle.

The Oracle implementation of the getColumns method takes around 10ms to complete.

 

Is this a known issue with the HANA jdbc driver?

If so, will this be fixed in the near future?

Application Site problems concerning widgets

$
0
0

Hi folks,

 

we are currently trying to create an App Site with some widgets. I already built a test project last year which worked fine but now Hana Studio keeps telling me "Could not process your request. Refresh the site and try again" when I try to access the appsite's widgets menu. If I do so, this finally crashes it, leaving a blank tab. Both server and studio are version 70. Has anyone else encountered this problem?

 

Greetings

I don't have PAL schema in my HANA Studio

$
0
0

Hello all, I was studying and trying to solve some problems I'm having with Hana/Predictive Analysis. I was showing some error of insufficient privileges while trying to run some algorithms.

So then I was whatching the following video:

 

http://www.saphana.com/docs/DOC-3261

 

 

I don't have the schema named PAL in my HANA Studio, and I don't know what I was doing wrong, and couldn't find the solution anywhere.

And to make this troubleshooting , I need to set with the schema PAL.

PS: I already have the AFL package installed, and also the WRAPPER_GENERATOR (I didn't have wrapper generator in my Studio, so then I got it from a friend of mine, and executed without any kind of error.

 

So then I want to know:

Did I miss any steps in configuration? Or I need to do any other installation?

 

Regards

Viewing all 6412 articles
Browse latest View live