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

Error connecting add-on with DI API

$
0
0

Hi,

 

I'm having the error "Database server type not supported" with an application that connects to SAP Hana through DI API in VB .net. The aplication crashes as soon as it reaches the Connect() method. I'm running the application on Win 8 and SAP B1 version 9.1 PL 8. The application works fine with the same version of SAP B1 on Win 7. I try to uninstall and install the DI API but still not working. Any solution?


Row Store Tables of SAP not shown when creating views in HANA Studio

$
0
0

Hi HANA Master's,

 

I have requirement to create a HANA Calculation view on SAP standard table "TBTCO", but in HANA studio i am not able to see this table because it have a storage type as "ROW STORE", i googled it but did not find any other way to use this table in my HANA views, please provide me an alternate way to use "Row Store Tables" in development of my views.

What is the syntax for a delete with a join in HANA?

$
0
0


Hi Everyone

 

I read the previous answer to this question which was:

 

deletefrom sk1

where (sk1.user, sk1.location) in (select sk.user, sk.location from sk);

 

unfortunately this does a select for every key in the table.  I have to delete 1.3b rows from a 2b row table...

even HANA takes too long to run 1.3b selects...

 

How do we actually do a join with a delete????

 

Thanks

Doug

store last value

$
0
0

Hi,

 

I have a calculation view where some of the material standard price is not displaying while taking year/ month in the report.

 

if the user drag year/month, then few rows are showing blank for Standard price. User want to see the last value for those blank cell ( last value ).

 

EX. if Feb month no standard price is there , Jan month standard price ( 100 ) will come for next couple month till new value came.

 

Materialplantmonth yearStandard Price
ABCUSA201501100
ABCUSA201502last value ( 100)
ABCUSA201503last value ( 100)
ABCUSA201504last value (100)
ABCUSA20150540
ABCUSA201506last value
ABCUSA201507last value
ABCUSA20150880
ABCUSA201509last value
ABCUSA20151060
ABCUSA201511last value

 

 

User want  as below:  100 should be display for Feb , Mar ....etc

 

Materialplantmonth yearStandard Price
ABCUSA201501100
ABCUSA201502100
ABCUSA201503100

 

Regards,

Kamruz

Analysis preview in HANA doesn't show values in Filter pane

$
0
0

Dear members,

 

I utilized three scripted calculation view in a Graphical calculation view to do Time Range Analysis like YTD,MTD,WTD sales per product. I used three scripted calc view in graphical calc view because I don't find option of Union Node's Constant column mapping in script based calculation view.

 

Note that I created scripted calculation view because I have used HANA sql functions to calculate start of Month/Year/Week (I am aware that we can do most of such calculations by creating calculated columns or by Input parameter).

 

scripted calc vw.PNG

 

Every thing looks good when I see the data preview. and I can see the data for constant column TIMERANGE on Data Preview.

mapping.PNG

preview.PNG

The TIMERANGE constant mapping column shows the value in data preview but it do not show the value if we drag this to filter in analysis preview tab.(However it shows the values if dragged in label axis.) -

Analysis Preview.PNG

 

Please suggest why its not showing values in Filter pane.

 

Thanks & Regards,

Jitendra

Privilege required for connecting with MS-EXCEL other than the Risky Data Admin

$
0
0

Hi Everyone

 

Earlier I had given  Data Admin Privilege for Connecting Excel with Hana to a User(say TestUsr).

 

But later on I came to know that Catalog Read and Data Admin  Privileges allows the TestUsr to read and delete all objects from _SYS_BIC(irrespective of the User who created it).

 

Now I have removed Data Admin Privilege from this TestUsr Role.

 

My Requirement is that which Privilege should I give this to TestUsr Role for connecting with MS Excel.






Thanks & Regards

Nagarjuna

Unsupported data type ST_POINT sap.hana.democontent.epmNext.data::MD.Addresses

$
0
0

Hello,

 

While testing an ODATA service with the DEMO tables and error is shown:

 

2015-09-12_11-30-03.png

 

2015-09-12_11-30-19.png

 

I´m using: SAP Cloud Appliance Library SPS 9

 

Please Help.

Regarding SQL Logic

$
0
0

Hi,

 

I have a requirement as below.

 

I just tried with Select + update ( inner query ) But the only challenge I am facing is how to fetch data for previous row. ie for n column 'B' is blank so get the data from n-1 'B' column and insert the same. Do we need to use the loops here? I am just afraid if we use the same it may hamper the performance of a query. Any suggestion please?

 

Source Table:

 

A          B

ABC     100

ABC     200

DEF    
ABC     600

GHI    

MNO     900

 

 

Target Table:

 

 

A          B

ABC     100

ABC     200

DEF     200   
ABC     600

GHI      600

MNO     900

 

Br

Sumeet


How to convert BIGINT data to TimeStamp

$
0
0

Dear Experts,

 

I got some time stamp data which is stored as BIGINT. How to convert it to readable TimeStamp format.

Sample data - 140,069,594,517,504

 

Regards,

Ashwini

Extend logical Volume lvhanaback HELP

$
0
0

AWS Cloud

SAP HANA 97
SUSE linux server 11 sp3

 

I have added large 1000GB AWS SSD volume to my SUSE linux hana master on our a 3 node multi-host hana system.

 

mkfs.xfs /dev/xvdg

 

fdisk /dev/xvdg

 

##Added one primary partition of type 8e - LVM

 

pvcreate /dev/xvdg

 

vgextend vghanaback /dev/xvdg

 

lvextend -L+900G /dev/vghanaback/lvhanaback

 

 

Using stripesize of last segment 256.00 KiB

  Extending logical volume lvhanaback to 1.36 TiB

  Insufficient suitable allocatable extents for logical volume lvhanaback: 227330 more required

 

Have tried to use YaST with no success.

 

Any insight would be great.. Cannot take backups as it is filling volume 100%

 

 

 

lvdisplay /dev/vghanaback/lvhanahback

--- Logical volume ---

  LV Name                /dev/vghanaback/lvhanaback

  VG Name                vghanaback

  LV UUID                l4XUBJ-Kajf-38nU-xJJe-hmfJ-7Uo0-Q16Q0W

  LV Write Access        read/write

  LV Creation host, time imdbmaster, 2015-06-24 15:41:21 +0000

  LV Status              available

  # open                 1

  LV Size                488.00 GiB

  Current LE             124928

  Segments               1

  Allocation             inherit

  Read ahead sectors     auto

  - currently set to     2048

  Block device           253:0

 

vgdisplay

--- Volume group ---

  VG Name               vghanaback

  System ID

  Format                lvm2

  Metadata Areas        3

  Metadata Sequence No  7

  VG Access             read/write

  VG Status             resizable

  MAX LV                0

  Cur LV                1

  Open LV               1

  Max PV                0

  Cur PV                3

  Act PV                3

  VG Size               1.46 TiB

  PE Size               4.00 MiB

  Total PE              383997

  Alloc PE / Size       124928 / 488.00 GiB

  Free  PE / Size       259069 / 1011.99 GiB

  VG UUID               B78ryQ-9t2Y-WmnR-x6Xc-fF2a-tiya-N4akoY

SAP Hana Cloud Platform Account for SuccessFactors eXtension

$
0
0

Hi Foum

 

Do you know what kind of account i need for a SuccessFactor Extension, accound in Hana Cloud Platform? i found this Price Account Page of HCP http://hcp.sap.com/pricing.HTML

 

My App is very simple, only take the logged user of Success Factors and redirect to another page....

 

 

Thanks

Josué Cruz

XSOdata service : 503 not available

$
0
0

Hi All,

 

I have created a xsodata service using a Calculation view , the service defination is following:

 

service  {

 

"CEO_Dasboard.OPERATIONS::CEO_DB_REVENUES"as"RevenueSet"keysgeneratelocal"ID"

aggregatesalways;

 

annotations {

enableOData4SAP;

}

 

Where CEO_DB_REVENUES is my cal view , but when I am trying to access this service using the URL

 

https://wdpoc.pdrsap.com/CEO_Dasboard/OPERATIONS/KPI/service/Revenue.xsodata

 

IT gives me error  "503 Service not available" , I can see my service is activated with orange icon. I have attached screenshot of my Calc view and XS odata service.

 

Regards

Deep

Passing current users as parameter in XSOData

$
0
0

Hi,

 

I have a requirement where I have a calc view which accepts sap-client as a parameter. I have a XSOData created using the keywords "Parameters via Entity". The calling program (SAPUI5) makes a call to the XSOData service passing sap-client as a parameter. All works good. Now, I need to pass current user as a parameter. I do not have the flexibility to change the calling program (It would have been easy to obtain the current user using UI5 libraries and change the URL to have current user as an additional parameter).

 

I have created another parameter in the calc view and named it "Current_User". Is there a way in which I could find the current user and default this parameter all within XSOData ?

 

Thanks,

Murali.

Difference between Mobilink and SAP IoT services.

$
0
0

Hi All,

 

As we all know that recently SAP has come with a new service namely SAP IoT workbench. Which allows us to connect and send data from Sensors to SAP Hana Cloud. SAP IoT Workbench is capable of Remote Device Management Services& Message Management Services

 

Wanted to know how different is this from SQL Anywhere and Mobilink which can store and save data on the Edge side.

 

Wanted to know what are the pro and cons of both SAP IoT Workbench and SQL Anywhere with Mobilink.

 

Thanks and Regards,

Abhishek Bajaj.

Getting can not get the data provider error while executing calculation view in HANA

$
0
0

Hi All,

 

Need help on below SAP HANA Modeling issues.

I have created one attribute view and trying to consume that in another calculation view with some other logic.

 

But the problem which i am facing is, when i do data preview am getting below error.

 

cverror.PNG

 

 

 

 

Though i have SELECT and Execute privilegies on _SYS_BI , SYS_BIC ,_SYS_REPO and also i have the select previlegies on the schema where all the different objects like table and all is created. But all the time it gives me the same error.

Please help me to understand what are the other access's which i should have in order do data preview on caculation view.

 

Thanks in advance..!!

 

Regards,

Pankaj


SQL Inline Functions

$
0
0

All,

 

Apologies I'm pretty new to SAP Hana and come from a SQL Server/Oracle background.

 

Anyway problem:

SAP Hana Function

CREATE FUNCTION "SURF_ST"."IS_NUMERIC"(input1 NVARCHAR(128))

RETURNS output1 DOUBLE LANGUAGE SQLSCRIPT

AS

BEGIN

 

   DECLARE EXIT HANDLER FOR SQLEXCEPTION

    BEGIN

        output1 := 0;

    END;

   

    output1 := CAST(:input1 AS DOUBLE) * 2;

END;

 

Case Statement:

CASE

  WHEN "SURF_ST"."IS_NUMERIC"(IFNULL(LATITUDE, 0)) > 0 THEN LATITUDE

  WHEN "SURF_ST"."IS_NUMERIC"(IFNULL(LATITUDE, 0)) < 0 THEN LATITUDE

  ELSE NULL

  END AS "ACCOUNT_LATITUDE"

 

The Calc view compiles fine and reports no errors, however when I try to visualize the data it throws an error as attached.

 

Thanks in advance,

 

Will

Hana Hadoop Integration

$
0
0

Hi,

 

I'm using hana box which is SPS 09 and I'm trying to integrate it to hadoop.

 

1. I created a remote source using the below script :

 

CREATE REMOTE SOURCE HADOOP_SOURCE

ADAPTER "hadoop"

CONFIGURATION 'webhdfs.url=http://hostA:50070;webhcat.url=http://hostA:50111'

WITH CREDENTIAL TYPE 'PASSWORD' USING 'user=user_name;password=password';

 

The remote source was created successfully although when I double click on the remote source and try to open it

 

Error.jpg

 

I went ahead to create a Virtual UDF using the below syntax :

 

CREATE VIRTUAL FUNCTION HADOOP_CUST_UDF RETURNS TABLE

("id" integer, "f_name" varchar(255), "l_name" varchar(255), "age" integer, "profession" varchar(255))

CONFIGURATION

'datetime_format=yyyy-MM-dd HH:mm:ss;date_format=yyyy-MM-dd;time_format=HH:mm:ss.S;enable_remote_cache=true;remote_cache_validity=3600;hdfs_location=/user/hive/warehouse/customer/custs'

AT HADOOP_SOURCE;

 

The entire configuration is in single line. But still it is throwing error as

 

Could not execute 'CREATE VIRTUAL FUNCTION HADOOP_CUST_UDF RETURNS TABLE ("id" integer, "f_name" varchar(255), ...'

SAP DBTech JDBC: [470]: invalid data source configuration: Invalid UDF Properties: line 4 col 1 (at pos 176)

 

Please help, Thanks in advance.

 

-Anil

Create script to run commands via hdbsql

$
0
0

Hi,

 

I am trying to run sql commands via hdbsqql by preparing a shell script in linux. I am able to enter the hdbsql prompt and connect to hanaserver but not able to run the sql commands via the shell script. Below is content of my shell script. Please let me know what exactly is going wrong here:

 

/usr/sap/hdbclient/hdbsql -c ";" -n localhost:30015 -u user -p secret_passwd ";" EXPORT ABC.\"*\" AS CSV INTO './Backup/'

 

Can anyone pls share a working script. I want to schedule schema level exports and thus, taking this route.

 

TIA

Passing database name to stored procedure

$
0
0

Hi everyone,

 

Please tell me, how to send database name to the stored procedure.

For instance (doesn't work):

 

CREATE PROCEDURE "SelectPurchaseOrder" (IN DbName VARCHAR) LANGUAGE SQLSCRIPT AS

BEGIN

  SELECT * FROM :DbName.OPOR;

END;

 

SET SCHEMA is not a case, I need to modify data in two databases in a single query.

Regards, Evgeny.

How to call a Hana Calculation View from HDB Procedure

$
0
0

Hi,

   I am implementing a hdb procedure which internally calls a Calculation view by passing a set of parameters.

One of these parameters is a variable .. defined in the procedure itself.

 

Can someone guide me on how I can call a calculation view (by passing variable parameters) from a hdb procedure.

 

 

Any help is highly appreciated.

 

 

 

Thank You.

Alekhya

Viewing all 6412 articles
Browse latest View live


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