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

Attribute View with DISTINCT Values?

$
0
0

Hi,

 

I try to play around with the HANA Studio and created an Analytic View with two tables where in one (aka CustDetail) is stored the ID to a shop which is specified in another table (aka ShopDetail). I create the join and the results are fine - BUT the main problem I have is that the link seems to be created the wrong way, i.e.

 

my results are all duplicated.

 

So, I want to have the results as UNIQUE and know in SQL I can select via DISTINCT for the results. But somehow I don't find a way to filter the duplicates out. Playing around with the Join-Types resp. Cardinality doesn't change the result much.

 

Q1: How to get in the attribute view only distinct values (as a result)?

 

Playing around with the Join-Types lead finally to a Bug (?) in the HANA-Studio. As soon as I change to another view I get the NPE as in the screenshot.

 

Q2: What to do with this not very informative error? (ignore, report, check, etc.etc.)


HANA Currency Converion (End of Month)

$
0
0

Hello.

 

Is it possible to emulate the currency conversion as BW does?

 

In the configuration of the translation type you can specify the time reference. In my case I need the end of month.

 

Is it possible to do this with the currency conversion in HANA??

Untitled.png

Basic Doubts in Calc Views

$
0
0

Hi All,

 

I'm learning SAP HANA on my own and i have some basic questions and would appreciate your help..

 

1)What is the use of "Output as Aggregated Column" in aggreation node in Calc View --- My understanding is if we use raw tables directly and want to aggregrate the results before hitting the final default aggreation node that's whn the aggreation node comes in picture and also if i'm just using analytical views in calc views i don't see any benefit of aggegration nodes as the output of Analytical Views are already aggrgated

 

2)Whats the difference in using aggregration node and just selecting fields as output (Not Output as Aggregated column ) vs using Projection node and selecting fields as output ?

 

3) There are no Restricted Measures in Calc Views right ?

 

4)When we call the Analytical views from Calc Views do we need to call the Analytical View from _sys_bic or drag directly from the package ?

 

 

I have gone through tons of materials ..I would appreciate if you could explain with a simple example rather than pointing towards some documents

 

Thanks in Advance

 

Satyam

Issues in SAP HANA text join

$
0
0

Hello Team

 

                 In my project we are using some non traditional SAP ERP tables . But my requirement is to have text joins in my data models . But text join doesn't works with non SAP ERP tables . Can some  one please suggest me what i needs to be done . Should i create custom tables . and if i create custom tables how this join will be implemented .

 

Regards

Getting Error: HttpClient.request: SAP AssertionTicket could not be created. No SSO possible

$
0
0

Hi All,

 

I'm trying to run a simple unit test using http service to test one my xsjs service. On running the test, it gives me the error as

 

Error: HttpClient.request: SAP AssertionTicket could not be created. No SSO possible. in /sap/hana/testtools/unit/jasminexs/extensions.xsjslib (line 736)

 

How to fix this ?

 

Thanks & Regards

Sakthivel

No longer able to activate changed files in HANA web IDE

$
0
0

Hi,

I've been developing a web application using HANA SP7 on AWS.  I've been using the web IDE which I've generally found quite nice. However recently it has started timing out when I try to activate a change to an xsjs or HTML file.  I just tried activating a change to a .xsaccess file with the same unfortunate result.  I can save changes without activating them, but when I try to activate I just get a timeout. This is annoying because it means I can't test code any more, and it takes 400 seconds to time out each time I try.

 

Can anyone suggest a way to restore the IDE to functioning?

 

I have already looked at SAP note 1888522 to look at SELECT * FROM _SYS_XS.RUNTIME_CONFIGURATION, but I found no problem there. I have also used HDB stop / HDB start as well as restarting the AWS instance, all to no avail.

 

Here is a screen shot of the error I see when it finally times out.

HanaIDEtimeout.png

R Language - Functions

$
0
0

Hello Experts,

 

Is there any way to get list of R lang functions available in HANA? At the moment I do not have R lang server installed.

 

 

Regards,

Viren

HDBTABLE definition with default values

$
0
0

Hi,

 

We are creating tables in HANA with hdbtable.

 

We need to add default values for the date fields as current date. However, the regular CURRENT_UTCDATE is not recognized as a system variable to be assigned. This works fine when we create a table manually  using the CREATE statement but not in HDBTABLE.

 

Is there some other variable I can use?

 

Regards,

Nehal.


i have created 3 panels with multiple text fields using sapui5.when i press tab my control should shift directly to text field & not panels.how should i do???

XSOData Post return ID

$
0
0

Hi Colleagues,

 

I've created a xsodata service, and since I'm using a sequence to control the primary key, I've created a procedure to insert the information, calling the sequence.NEXTVAL when doing the insert.

 

In the header of the procedure I have two parameters (one IN and one OUT), The first parameter (IN) is the row itself, with the information that I need to insert, and the other parameter (OUT) is the error table, to get possible error messages.

 

Another remark is that, since when doing the post I need to inform all fields, I always perform the post setting ZERO in the ID.

 

The question is, can I somehow, receive the ID of the record inserted as the result/return of the post?

 

One idea was to set the ID in the row parameter, but since the row parameter is IN, I cannot modify it...

 

Thanks and regards,

Roberto Falk

Data Provisioning in the SAP HANA Sandbox system

$
0
0

Hi Gurus,

 

I need help in addressing the below  issues related to data provisioning in the SAP HANA sandbox system for which I got access from SAP.

 

1. When I click on the data provisioning link in the information modeler on SAP HANA modeler I get the following error:

 

    "Replication is not configured.Contact system Administrator".

 

    Please suggest how I can get rid of this error and start using the replication service.

 

2. I couldn't find any ERP source system instance in the modeler from which we could replicate meta data and do data loads.

 

    Does any administration work needs to be done to configure the connection to the source ERP system?

 

Thanks,

Goutham

Configuring SSL for HANA XS Engine

$
0
0

Hello,  I am in the process of configuring SSL for the HANA XS Engine.  I am at the point where I am importing the certificate per the instructions outlined in the document "How to configure SAP Crypto libraries and SSL for HANA XS Engine".  I am running the following command:

 

./sapgenpse import_own_cert -c SAPSSL.cer -p SAPSSL.pse  -r SAPNetCA.cer

 

It is returning the following error message:

Loading of "(null)" failed!

You need it in the same directory as sapgenpse

 

The certificate and sapgenpse are both in the same directory (/usr/sap/<SID>/<SID00>/<server>/sec

 

Not sure why I am getting this error message.  Anybody-else have this issue?

NOTE:  I am purposely not using a PIN with this certificate so it is not that.

 

Thanks,

-Kirk

Data Preview --- functions I haven't found

$
0
0

Hi,

 

Perhaps the topic is little bit fuzzy, but I am curious about the capabilities of the Data Preview (View) (for Tables, Views, Attribute/Analytic View, etc) in the HANA STUDIO. I can see the output of e.g. Analytic View with the Data Preview which is quite useful. In the Raw Data  I can see the details of the table which is quite nice.

 

Nevertheless I am curious if there is a possibility to

 

  1. Filter Calculated Columns for specific values
  2. have fixed Decimals (with same decimal value length)
  3. How to retrieve the information of total number of rows available?

 

add 1) I see only a Filter for regular columns, but not for Measures resp. Calculated Columns. Is this feature not available?

add 2) If I have in one column something like 1,344.2 and next 2,412 as well with 5,312.03 it gets hard to find a quick overview. Is it possible to have all contents with the same fixed decimal digits? i.e. 1,344.20 as well as 2,412.00 ?

add 3) When I click on the Distinct Value-Tab on one of the columns I get a Row Count. But I wonder if this is correct, cause the number varies when I click on some Measured Values (count). Therefore I am not really sure where resp. to retrieve that kind of information the most easiest way (Perhaps in some kind of View?)

 

Help would be appreciated

 

roland

Webdynpro abap is better than Sapui5 or not ?

$
0
0

TThe application which we developed through webdynpro abap......and application through sapui5.... Will perform similarly then .....what is major difference between them ?

Loading CSV file to a relational table containing char data type

$
0
0

Hi Friends,

 

This one is a very peculiar one. While trying to load a csv file into a relational table using the Import utility I am getting the below error(a part of it)

 

Cannot convert Java type java.io.InputStream to SQL type CHAR.: SAP DBTech JDBC: Cannot convert Java type java.io.InputStream to SQL type CHAR.

 

When I alter the column names in the table to type varchar or nvarchar the load is completed successfully.Why is the import utility not able to load into a table containing char columns?

Does anyone have any info regarding this?

 

Thanks,

With Regards,

Chetan

 

 



Data Provisioning in HANA Studio

$
0
0

I am practicing the SLT replication server in our sandbox environment. However, I run into a strange situation.

 

After configuring using transaction LTRC on target system, the data provisioning function work perfectly using SAP GUI. I am able to replicate some transparent tables without any problem. However, I could not see any tables to be selected using data provisioning within HANA studio. The search function does not work also. DD02L, DD02T, and DD08L were replicated successfully and status are "In Process". I can only replicate table using transaction LTRC and my customer insists replicating table using HANA studio.

 

Can any expert help me resolve this issue?

 

Thanks in advance.

 

Edward

Not able to debug a SQLScript procedure

$
0
0

Hello Experts

 

I'm following a simple sample of the OPENSap course. I have a simple procedure to calculate the sales price and another procedure that works as a wrapper and calls the first procedure passing the parameters.

1. Which option do i need to set up for the debug configuration, i don't see an SQLScript Procedure option as the course indicates.

 

debug1.PNG

 

2. I tried to use the SAP HANA Stored Procedure option but it seems to be not working as the Debug steps are showing as <terminated>

 

Debug2.PNG

 


Thanks in advance for your help

Francisco

Will HDBDD support TEXT and Spatial data types in the future?

$
0
0

Hi expert,

 

I want to use CDS to build a SAP HANA native app. But there is TEXT and Spatial data types in my scenario. I've read the SAP HANA developer guide. It seems HDBDD does not support TEXT and Spatial data types now. I am wondering if it is possible in the future.

 

Best regards,

Wenjun

SAP HANA XS and SAPUI5 - how to live update a chart?

$
0
0

Hi all,

 

we are developing with SAP HANA Developer Edition and SAPUI5.

We read data with an XSJS File out of the Database ( i read the recent 40 datasets of the table with an SQL statement and LIMIT).

 

This is the code in my controller.js which calls the XSJS service that reads the data out of HANA DB.

 

loadChart: function() {

       

        var model = new sap.ui.model.json.JSONModel();

        var aUrl = '../../../dev/data_HANAXS/services/readdata.xsjs?cmd=loadChart';

        jQuery.ajax({

            url: aUrl,

            method: 'GET',

            dataType: 'json',

            success: function(data) {

               

                model.setData({modelData : data});

                

            }

        });

               

        return model;

                     

    },


Then in my view.js i set the model for the line chart and i can see my data.


var model = oController.loadChart();

linechart.setModel(model);   

 

What i want to do now is to live update the chart in regular time intervals, i am using SETINTERVAL ( you can also use jQuery.sap.delayedCall ) for that:

 

function updateChart() {

           

            var model = oController.loadChart();

            linechart.setModel(model);

        }

 

setInterval(updateChart, 5000); // every 5 seconds refresh the chart

 

 

And this works fine BUT the COMPLETE CHART (including x-axis and y-axis) is drawn again every 5 seconds , what i want to know is how can i realize it so that ONLY the DATA LINE is drawn again every 5 seconds?

 

It would be great if anyone could help me regarding this issue?

 

It must be possible to do a live update of a chart especially for cases where you get steadily new data that has to be visualized.

 

Regards & Thanks,

 

Andreas

Error: [129]: transaction rolled back by an internal error: [129] transaction rolled back by an internal error: exception 141000274: exception 141000274: TRexUtils/ParallelDispatcher.cpp:275 message not found; $message$=

$
0
0

Hello Gurus,

 

I have a couple of calculation views in HANA and each of them has text fields (like Employee Name, Country Name etc.).

 

As part of my project requirement, I have join those two views and get all the fields that exist in them.

 

When I am doing so, I am getting a weird error as shown below.

 

Error: [129]: transaction rolled back by an internal error:  [129] transaction rolled back by an internal error: exception 141000274: exception 141000274:

TRexUtils/ParallelDispatcher.cpp:275

message not found; $message$='TSR HTKD JFSDFM'

Please check lines: 59,

 

Upon, researching further, I could see that the value 'TSR HTKD JFSDFM' is the value in text field of Employee Name.

 

I did try to increase the length of the field and change the data types but nothing has worked.

 

Could you please help me in getting this one resolved.

 

Thanks,

Raviteja

Viewing all 6412 articles
Browse latest View live


Latest Images

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