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

Re: Error importing SQL dump: Object is being imported by other transaction

$
0
0

Hay;

 

If you check SAP Note 1926428 you will find that Creating a tenant powered by SAP HANA from a backup file may fail if there are another same operation is ongoing against the same SAP HANA instance. Follow error message may show up: SAP DBTech JDBC: [2048]: column store error: table import failed: [30136] The object is being imported by other transaction.


Creating a tenant powered by SAP HANA from a backup file after another same operation completed.

 

 

Best Regards

~Amal Aloun


Re: TO_INT SQL HANA

$
0
0

What kind of error do you get?

Why do you use IFNULL here?

Since you only do a test for NULL here, the IS NULL predicate would be correct.

 

- Lars

Export entire schema contents programmatically

$
0
0

Hi all,

 

Using HANA studio we can export the entire db contents of all tables under one schema, is there a way to do this programmatically?

Kindly let me know.

 

Regards,
Mohan

Re: Accessing a hana instance from other systems?

$
0
0

Sorry, I end up in loop trying to understand what you want to know.

Can you be more clear?

Regards, Fernando Da Rós

Re: MAX funtionality in HANA

$
0
0

Hi Lars

 

Can you please help find what is wrong in this below script? I am not good at script hence struggling..

 

BEGIN
var_out= select "t1.BILL_VBELN","BILL_FKDAT","BILL_KVGR1_1","BILL_FIL_PROFORMA_INV","BILL_KUNRG","BILL_KTGRD_1","BILL_VKORG_VBRK","BILL_INCO1","BILL_INCO2","BILL_PRCTR","BILL_POSNR","ROUTE","t1.BILL_AUPOS","GET_DAYS","BILL_DATE_FY","BILL_DATE_FP","TO_DATE_EUDAT","TO_DATE_WADAT","DEL_DATE_CALC","TRAN_TIME","CA_BILL_REP_NETWR_COMP_CURR","CA_BILL_REP_WAVWR_COMP_CURR","NEW_DEL_DATE"

from "_SYS_BIC"."pk-sample.productmanagement/CV_REVENUE_RECOG_CUTOFF_PVP"  t1

 

INNER JOIN

 

(select "BILL_VBELN","BILL_AUPOS", MAX("NEW_DEL_DATE") AS "NEW_DEL_DATE" from "_SYS_BIC"."pk-sample.productmanagement/CV_REVENUE_RECOG_CUTOFF_PVP"

group by "BILL_VBELN" , "BILL_AUPOS" ) t2

 

on t1.bill_vbeln = t2.bill_vbeln AND t1.bill_aupos = t2.bill_aupos;
            
END;

 

I am getting the  internal error: invalid column name: t1.BILL_VBELN, I think this is because it cannot find this field t1. BILL)VBELN in the underlying table.

 

But If I don't put "t1" I do get the column ambiguity error. hence not sure what is going wrong...

Re: MAX funtionality in HANA

$
0
0

Hmm... you like to complicate things for yourself, do you?

 

Why don't you try to get it to run in the SQL console first?

Anyhow, there's just a little typo:

 

Can you please help find what is wrong in this below script? I am not good at script hence struggling..

 

var_out= select "t1.BILL_VBELN",...


should be

 

var_out= select t1."BILL_VBELN",...

         ------^--^

instead.

 

The double quotation marks contain only the table_name or only the column_name.

It's always just one "identifier".

The dot (.) goes in between, always without quotation marks.

 

- Lars

Re: Accessing a hana instance from other systems?

$
0
0

sure,

 

@Fernando Ros , my doubt is how can we access the sap hana instance which is already created and applications we already deployed into our trial account from different system(i.e from diffrerent location and different developer).

 

for example ,

 

                 myself will be creating a new sap hana instance in my local system (may be my personal computer). so how can i access the same instance from my laptop and monitor the application and work on that. may be changing the configuration .... and more.

 

 

thanks,

 


Gowtham.A

Import with replace command into existing schema

$
0
0

Hello Colleagues,

 

I am trying to do the following.

1. I have 2 schemas A and B in a system.

2. I need to copy all the contents of A into B.

3. I have exported both A and B. B as a backup.

4. Can i import A into B using replace option?? Will this cause harm to the data already available at B??

 

Thanks and Regards,

Akhil


Schema Mapping for XSJS, XSOData, & XSOData Exits

$
0
0

Hi,

Before reading my question you may find it helpful to reference this other topic, though it does not provide the answer I'm searching for - Schema Mapping for XS Components.

 

I'm trying to reference custom ABAP tables from both XSJS services and an XSOData service that uses stored procedure exits on a HANA SP6 system. Since the tables are ABAP-based their schema changes as we promote them through the landscape (e.g. sapdev, saptest, sapprod) so our XSJS and XSOData + exits need to update accordingly. 


In the linked post above Thomas Jung recommends to create & reference Attribute Views in XSODATA so that the schema name doesn't change as we transport, however, based on my tests Attribute Views do not support CREATE, UPDATE, and DELETE statements.

 

I even tried via SQL console to see if I could run CUD on an Attribute View, but it comes back with "data manipulation not legal on this view":

update "_SYS_BIC"."DMM.DMM_DAL.s.db/AV_ZDMM_GPH_NOTIFS"   set "DATEMODIFIED" = '20151013'  where "DATEMODIFIED" = '20141013';

Furthermore, based on comments to this video oData Create/Update/Delete Support in SAP HANA SPS6 - YouTube, it looks like the SQL exits need to reference the source tables to handle CUD commands.  If that's the case, then it puts be right back to square one.

 

So I've figured out how to manage changing schemas in XSJS, but since my system is SP6 I can't use XSJS exits on an XSOData service.

 

My question then, is what would be the best approach to handling changing schemas in XSOData & corresponding SQL procedure exits in SP6?

 

Thanks,

Shawn

Create a Script-Based Calculation View in HANA Development Perspective

$
0
0

Hi Friends,

 

I am trying to create script based calculation view in HANA development perspective using project explorer.

 

When I create the file with extension like  CV_TEST_SQL.calculationview , I am getting only graphical view but not getting the script based view.

 

In the help document , it asked me to change in Semantic node to get SQLScript node, but there is no such option to create script based view

 

Please help!

 

Thanks in Advance!

Kumar

Installation stuck at "Starting SAP HANA Database system"

$
0
0


Trying to install HANA SP8 on SUSE Linux using hdblcmgui -- hdbinst_server_ignore=check_min_mem, it stuck at "Starting SAP HANA Database system.."

Checked the install log at /var/tmp/, nothing usefull.

process running:

 

hdbnameserver

hdbpreprocessor

hdbcompileserver

hdbindexserver

hdbstatisticserver

hdbxsengine

 

Thank you for any input.

Re: Create a Script-Based Calculation View in HANA Development Perspective

$
0
0

Hi Kumar Swamy,

 

We can Change in subtype dropdown.

we can select SQL ScriptCapture.PNG

HANA Amount Conversion to Decimal Data Type

$
0
0

Hello All

 

I would like to get your thoughts on converting a column of Amount values to Decimal of scale 2.

 

Eg:

 

80 to 80.00

80.5 to 80.50

 

Thanks.

Re: Accessing a hana instance from other systems?

$
0
0

Hi Gowtham,

 

If you can to migrate from trial cloud to local this is an export / import on file menu.

Obs: I don't know if export works on cloud, maybe some colleague can complement

 

If you want just to access at same time development systems from Studio is easy as Studio can connect to many servers at same time.

 

If you want to a system look for data from other systems you must build the bridges, like expose in one system as oData service and consume from other one.

 

Regards, Fernando Da Rós

Re: HANA shows bad performance with large dataset join

$
0
0

Sorry Axel, but a few boxes with arrows don't really provide enough information to figure out what's going on.

We don't know the join types, conditions or cardinalities you use.

We don't know the level of aggregation.

We don't know the size and compression status of the tables, let alone the configuration of the system you're using.

 

If you want to know, where time is spend, using PlanViz is a pretty good start.

 

- Lars


Re: HANA shows bad performance with large dataset join

Re: Import with replace command into existing schema

$
0
0

Hi Akhil,

 

The content you say are the table data, right?

Normally when export we choose binary and when importing it's very quick as we aren't not merging but just importing the snapshop from the binary over the existing content.

 

I guest you want to "merge" data and as far as I know import is not the option for it.

These schemas are on same instance?

You can do insert B from select A where not exist on B (if don't want to overwrite). If you need to update you can do a step before deleting the content B where exists on A and will be overwriten and just insert B from select A.

Of course make an export of B before start these actions to be safe, as SHappens.

 

To prepare the SQL's you can build a script reading the view TABLE_COLUMNS

 

Regards, Fernando Da Rós

Re: Import with replace command into existing schema

$
0
0

Hi Fernando,

 

You got my situation right on.

I do want to merge the two schema which are lying on the same instance.

 

Since I am new to sql, Could you please post some commands I can use.

 

Also I have exported my schemas as CSVs and not Binary, Is this ok??

 

Regards,

Akhil

BOBJ on top of HANA server.

$
0
0

Hi Gurus,

 

I'm curious, is it possible to install SAP BI on top of HANA. I know with SAP Lumira it can be done using XS engine but what about other BI apps like Xcelcius, CrystalReport, Dashboard, WebIntelegence, Mobility. Thanks in advance.

 

 

R,

AM

Re: SAP HANA CEI Segmentation error

$
0
0

In HANA Studio, is your package named in lower case? Please check.

Viewing all 9165 articles
Browse latest View live


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