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

Convert NVARCHAR to MM/DD/YYYY format

$
0
0

hi all,

 

I need to convert all the dates (in NVARCHAR) to MM/DD/YYYY format. I need to achieve this in calculated columns.i have tried searching, but not getting clear idea.

 

the client doesn't want to convert in IDT or webi. I tried using date(ERDAT) but  its coming as Aug 14,2015. But I need in MM/DD/YYYY format so that no conversion is required in webi or universe.

 

Is there any function of to achieve this?

 

thank you


xsodata, $metadata, semantic label, Date field type string

$
0
0

Dear Experts,

I have a requirement to show Date Picker when the field value is a date. This works when the field type is Edm.DateTime. Picker is not showing for the date fields type Edm.String. As you know we have different date field types like CHAR8, DATS, DEC(8), TIMESTAMP in SAP and when we build models on Standard Tables and create calculated columns to do type cast.

 

I tried maintaining semantic type but not able to get field property in $metadata.

 

Date as String

<Property Name="PlannedDlyDate" Type="Edm.String" MaxLength="8" sap:label="Planned Delivery Date" sap:aggregation-role="dimension"/>

 

Date as DateTime

<Property Name="CA_ACTUAL_START_DATE" Type="Edm.DateTime" sap:display-format="Date" sap:label="Actual Start Date & Time" sap:aggregation-role="dimension"/>

 

Is there any simple way of identifying the field semantics?

 

 

We are on S4HANA SPS09 version 1.00.097.00.1434028111

 

 

Thank you,

Srini.

Change history of Delivery Units in HANA

$
0
0

Hi

 

Does any one know how to see changes made to  Delivery Units.

 

I see there is table called "DELIVETY_UNITS"  in SYS_REPO schema  however this only shows the time the DU is changed but it does not show the user who changed.

 

DELIVERY_UNITS _.png

 

 

Regards

 

Satyam

Role missing after conversion to MDC

$
0
0

Hi all,

 

I have converted a SPS101 system from single DB to MDC and the role required to manage tenant database via the HANA cockpit is missing (sap.hana.admin.cockpit.sysdb.roles::SysDBAdmin). I think it is supposed to be delivered by default from SPS95 and onwards but it is nowhere to be found on the system.

 

Does anyone know how to add the role manually?

 

Sander

HANA spikes in memory and CPU

$
0
0

Hi All,

 

We have a strange issue, is there somewhere historical information is stored for HANA related to CPU and memory spikes which were caused.

Suppose yesterday night at 10 PM there was a spike in CPU and at 8 PM there was a spike in memory.

Are there any statistic server tables which hold the history for the same?

Table truncation with lob option

$
0
0

Hi All,

 

We have a table where the LOB data is on the disk, we have truncated the table but the space occupied shows up as some amount of GB still.

Is there a way to truncate the table where the data on the disk also gets deleted immediately?

This is a row store table with LOB data on the disk.

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

Activate internal user failed with insufficient privilege

$
0
0

Hi, I noticed that one internal user _SYS_STATISTICS is inactivated in our HANA database. When I tried to activate it, I got following error message. Does anyone know how to resolve it?

Thanks.

Scott

Capture.JPG


CDS view can't be used in calculation and analytic view

$
0
0

Dear HANA experts,

 

 

I'm Franklyn from the cloud service center. Currently I'm involving in the development for a customer project. For this project, we use HANA CDS to model the entities, associations. We also create CDS views for all read-only data access.  But later we find that CDS views can't be used in calculation view and analytic view. What we have done is:

1. Create a calculation view CV_LFTEST and add a join node.

2. Try to add the CDS view to the join node of the new calculation view and click OK (refer to screenshot).

Select CDS view.png

3. Nothing is added after clicking the OK button.

nothing added after clicking OK button.png

It seems that CDS view can't be used in analytic view or calculation view. Since in our project, we have such requirement. We need to double confirm with the HANA expert if this is a limitation. If it is not a limitation, how can we use it in calculation view?

 

 

Thanks,

Franklyn Liu

Date Input Parameter in scripted Calc view results no data

$
0
0

Dear Experts,

 

I am passing a input parameter of datatype as DATE to a scripted calculation view which will return the data from Start of this Year

till the date provided by the user, Scripted calc view looks like -

 

script calc vw input.PNG

where INPUT_END_DATE is input parameter defined as

input_param.PNG

 

This scripted calculation view is validated/activated with No error but when I do the data preview and Select today's date from shown

calendar then no result is displayed.However if I replace the INPUT_END_DATE with CURRENT_DATE (which returns todays date as per HANA sql function) then the result is displayed. I tried to keep input parameter as :INPUT_END_DATE but still no result.

 

Can you please help me to know whats not correct while passing Date as input parameter.

 

Thanks & Regards,

Jitendra

Hana procedure syntax

$
0
0

Hello,

 

I'm having problems with a simple query in a procedure.

Can anyone please help me ?

 

I'm trying to create a simple table filled with data

 

 

CREATE PROCEDURE pr01(IN CardCode NVARCHAR(20)) LANGUAGE SQLSCRIPT AS

BEGIN

     CREATE COLUMN TABLE TEMPTBL AS (SELECT "DocNum" FROM ORDR WHERE "CardCode" =:CardCode);

END

 

Thanks,

 

Paul

Hana SP85.05 upgrade from SP81 documentation

$
0
0

I'm not finding any documentation on SAP's websites that have a guide for upgrading HANA from SP81 to SP85.05.  I've done the upgrade from SP80 to SP85.01 and I have my internal documents but why is it so hard to find upgrade documentation to older HANA versions?  I only can see HANA SP10 on their marketplace and even in downloads.

Sharepoint list data into HANA Tables?

$
0
0

Hi, unsuccessful at finding a solution for this.

 

Is there a decent way (preferably without 3rd Party) to get data from Sharepoint Lists into a HANA Table via a connection or script of sometype?

Would be nice to be able to automate this as well.

 

I'm thinking I could expose a sharepoint list as a web service and then import to HANA.

I'm thinking I could access a sharepoint list via OData and then somehow populate HANA Table.

I'm thinking a tool BOBJ might have?

 

All suggestions on Tools, scripts, methods are welcome.

 

Thanks for any ideas.

Is there prebuilt Hana Live package for ECC CATSDB table?

Graphical calculation view to get min and max of a date

$
0
0

Hi all,

I have a requirement that doesn't seem to work although the idea is simple.

I have a customer, and the customer is in a customer group.  The customer has transactions that occur on a date.

The requirement is that I need the Latest transaction date for every customer, and then the Earliest transaction date for every group.

In SQL that would be:

SELECT Group, min(TranDate) AS TranDate FROM (SELECT Group, Customer, max(TranDate) AS TranDate FROM TABLE GROUP BY Group, Customer) GROUP BY  Group;

In a Graphical Calc View the sequence should be:

Projection Node with Table

Aggregation Node on Group and Customer, and max on TranDate

Aggregation Node on Group and min on Trandate

Semantics Node with Group and TranDate.

But when I run this I always get the Group and MAX(TranDate).....

Any ideas?

Regards

Jack


HANA: Multiple queries on one cal-view at the same time, performance bad

$
0
0

Hi everyone,

 

Problem:

I have a calculation view which will use 5 seconds when execution in hana studio.

There is a BO report(Xcelsuis report) with 6 queries and fetch data from the same view I mentioned above.

I'm sure there isn't waiting time between six queries, they fetch data in parallel.

But this time, all 6 queries need exactly the same period - 17s.(every query needs 17s)

 

 

Further test:

I use IE(F12 with IE9 or higher version) to get this query time. The further test are as follow:

the query number on one reportthe query time of every query
15s
27-8s
310s
412-13s
515s
617s

 

 

Other Information:

HANA version: 1.00.85.03.400544

View Type: The cal-view is a script cal-view. It fetch data from other cal-views which are script cal-view too.

The main processing in my view: The date granularity of base views are 'Day', My view get the whole year data and use 'sum() over (partiion..)' to calculate the accumulated value of the whole year.

 

 

 

I have no idea with the reason of this. can anyone help me?

 

Kevin

SAP Hana Installation Error /hdbnsutil terminated with error: signal 6

$
0
0

Hi Gurus,

 

I'm installing SAP HANA Platform Edition SP09 for Test system on SUSE 12 Edition.

 

Wile installing i'm getting the following error  and the installation was terminated

 

Checking installation...

Preparing package 'Saphostagent Setup'...

Preparing package 'Python Support'...

Preparing package 'Python Runtime'...

Preparing package 'Product Manifest'...

Preparing package 'Binaries'...

Preparing package 'Installer'...

Preparing package 'Ini Files'...

Preparing package 'Emergency Support Package'...

Preparing package 'Documentation'...

Preparing package 'Delivery Units'...

Preparing package 'DAT Languages'...

Preparing package 'DAT Configfiles'...

Creating System...

Creating System...

Installation failed

  error installing

    Cannot create Instance

      Cannot create instance

        Cannot create initial topology

          Starting external program /usr/sap/HD1/HDB00/exe/hdbnsutil

            Command line is: /usr/sap/HD1/HDB00/exe/hdbnsutil -initTopology

            Output line 1: checking for inactive nameserver ...

            Output line 2: nameserver bpshana:30001 not responding.

            Output line 3: creating persistence ...

            Output line 4: run as transaction master

          Program /usr/sap/HD1/HDB00/exe/hdbnsutil terminated with error: signal  6

          /usr/sap/HD1/HDB00/exe/hdbnsutil call failed

 

Log file written to '/var/tmp/hdb_HD1_install_2015-09-24_19.41.52/hdbinst.log'.

 

Can anyone please let me know how to solve this

this is our test system and the RAM of the system is 32 GB and HDD is 1TB

 

 

 

Thanks in Advance,

 

Chandrababu Katta

Analytical Privileges and Available Views in SAP Lumira

$
0
0

Hi

 

I have created an analytic privilege for a calculation view. The calculation view is based on a BW multiprovider. When I set up the analytical privilege I had to also include the 2 analytical views of the infocubes in the multiprovider that were created automatically when I imported the BW infomodel. So I have a calculation view and 2 analytical views as the reference models for my analytical privilege. When I try to acquire a dataset in Lumira, only the calculation view and both analytical views are available as I would expect. However, when I set up an associated attribute to restrict in the views further e.g. region, in both the analytical views and the calculation view, the only view available in Lumira is the analytical view the calculation view is no longer available. Does anyone have any idea why?

 

Thanks

 

Gen 

BW on HANA - Value of HASH 1 partition on ODS

$
0
0

Hi folks,

 

I've been doing enterprise HANA on single node for past 3 years (prior to that a traditional BW developer for 10 years) and now recently our BW system was converted to BW on HANA and I'm starting to look into helping some of the BW guys performance tuning particularly with partitioning on the HANA modeling side of the BW system.  I've discovered that all of the ODS tables I'm looking at thus far are HASH 1 partitioned.  Our BW system is multi node so I'm wondering if that has anything to do with this whatsoever.  To me a HASH 1 partition is like not having a partition at all but rather like a single table with no partitions; wouldn't that be the same?  I'm sure it's something I'm just not familiar with yet and it's setup this way for a good reason (I hope!).

 

Thanks for any insight you may have on this.

 

-Patrick

Disk-based table or column with HDB

$
0
0

Hi,

 

is there a way to mark a table in HDB ask disk-based, so that all data is stored on disk and not in memory? Or maybe something similar for a column?

 

I am not talking about Dynamic Tiering using IQ or Smart Data Access using another DB, but a HANA built in feature that allows this disk-based storage.

 

Thank you.

 

Regards,

Alex

Viewing all 5653 articles
Browse latest View live


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