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

Problem with Hana-Hadoop Integration in SPS 09

$
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


How to get the Moderator Approval for my blog???

$
0
0

Hi All,

 

first of all, if its a repeated question, sorry about that, but i haven't got the answer for this.

 

A week before i posted my first blog on oData, and since it was my first blog, it went for an MODERATOR approval. But even after 10 days its in unapproved status, Could any one help in understanding how to push for moderator approval??

 

odata scn.jpg

Thanks,

Girish

Public call to XSJS and $.db

$
0
0

Hi Colleagues,

 

I'm creating a html page that will enable the users to put the <iNumber> and the HANA user will be created in our local sandbox. To do it, I've created a procedure that creates the user, and I'm trying to call it from a XSJS file.

 

The problem is the following, since my page is public, since the idea is that everyone can access it and create the user, when the XSJS code gets the statement $.db.getConnection(); an error is returned: Error: db.getConnection: expects an authenticated session

 

Do you know how to pass the user and password for the connection, or do you have a different idea to solve my problem ?

 

Thanks and regards,

Roberto Falk

MultiInput problem

$
0
0

Hi,

 

I have a MultiInput element and i don`t know how to retrive the number of tokens in multiinput.(how many element i  have select).

 

<MultiInput id="organization" type="Text" placeholder="Enter Organization ..."  showSuggestion="true" showValueHelp="true" valueHelpRequest="handleValueOrganization"  suggestionItems="{/Organization}">  <suggestionItems>  <core:Item  text="{DESCRIPTION}" />  </suggestionItems>  </MultiInput>

Please help me!

 

Thanks

debug xsodata sp10

$
0
0

Dear expert ,

 

 

I want to debug XSODATA, but miss privilege,pls give me some help:

 

odata file :

 

service {

   "xx"."USERDETAILS" as "Users"

  create using "xx.procedure::userCreateMethod"

  ;

  }

 

debug as :

Image 12.png

 

error:

Image 11.png

 

I give the "select, update, execute, debug, create any"  to "_SYS_REPO",but no use~

 

The xsodata setting :

Image 9.png

Image 10.png

SAP HANA for ABAP consultant

$
0
0

Hello,

 

I'm a senior ABAP consultant, also certified in BW/BI (although with no chance to gain some experience on this yet) with more than 7 years of experience.

Trying to boost my skills and career I was wondering if for a consultant with my profile, to attend to HA100, HA200 and HA300 training courses and then study for clearing the corresponding certification is a logical step forward given my current skills (would it be difficult to follow these courses as per my current knowledge?), or maybe I should focus better on other technical path such as PI/XI, etc...

 

Of course, any additional learning to those ones you currently have is always a plus, but my question is more related to if SAP HANA would be a "natural" step and if would give an additional value to my already existing skills. The final aim for attending to this training is, of course, to have the opportunity of using it hands-on on a project! Now, given my years of experience in ABAP, companies hire because of that and it results difficult to apply the new skills in BI/BW. That's what I'd like to avoid as well somehow with HANA.

 

Thanks a lot in advance for your comments and suggestions.

Best regards,

 

Daniel

 

HANA Smart Data Access With postgreSQL driver

$
0
0

Friends,
Any one tried to install an alternate ODBC or JDBC driver to connect HANA Smart Data Access to a Postgresql data source?

If I were to use the ODBC generic where do i create a Domain Source Name with the connection properties?

Any help is appreciated.

Thank you for your diligence.

Zachary.

 

version: 1.00.80

suse LInux Ent. Server 11.2

SAP HANA Licensing

$
0
0

Hi,

 

If anyone has links to SAP HANA licensing document please share.

I want to understand what is included in different licenses like Platform, Enterprise and Runtime license.

 

Another question is is SDI and SDQ are included in Enterprise, Platform and Runtime license or it has separate licensing.


Error message in Hana Studio calculation view when doing Data Preview

$
0
0

Hi Experts

 

We are getting a strange error message in Hana Studio when we use the “Data Preview” functionality on certain objects in a calculation model (VDM). The error message is:

 

Cannot open Data Explorer

SAP DBTech JDBC: [321] (at 21): invalid view name: home.bi.co.projcash/FACT_COFP_VBAK/dp/Projection_1: line 1 col 22 (at pos 21)

 

Error message.jpg

 

 

If we use the “Data Preview” functionality on the objects “Aggregation” or “Semantics” everything work as expected. But, if we use the “Data Preview” functionality on any other objects like “Projection” or “Join” we get the error message above.

Is this an error or does this has something to do with authorisations? Our Hana system is newly installed system and the authorisation setup is also new.

 

Kind regards

 

Erik

Hana Studio calculation view formula for date in SAP format YYYMMDD

$
0
0

Hi Expert

 

I need to create a filter expression in a calculation view that says that a date field in a SAP standard table should be equal todays date. I can see that it is a function called “now()” but I need to format this into the SAP standard date format YYYYMMDD. How can I do this? Or is it another way to get the todays date in format YYYYMMDD?

 

Kind regards

 

Erik   

SQL Update

$
0
0

All,

 

I've checked all the documentation I can and YouTube without success.

I am new to SCN so as always apologies.

 

I'm creating a stored procedure which has an update statement using an alias as below which is in its simplest form.

 

UPDATE CA

       SET CA."AVGPUPRICE" = 0

    FROM "DEMO_ST"."T_ST_U_DEMO" CA;

 

Now I get the following error:

 

SAP DBTech JDBC: [259] (at 1026): invalid table name:  Could not find table/view CA in schema <SCHEMA>: line 18 col 9 (at pos 1026)

 

 

Any help greatly appreciated it looks like updates with an alias is not supported, could someone confirm.

 

Kind Regards,

Will

XS JS function

$
0
0

All,

 

In SQL Server we are able to create vb.net or c#.net functions and leverage them through TSQL.

 

Do you know if is possible to create a XS JS function or similar and call it from SQL (SAP Hana)

 

All assistance appreciated. An example would be awesome.

 

Regards,

Will

Error while creating Decision table using analytical view in HANA

$
0
0

Hi,

 

I am trying to create a decision table using analtical view. I am getting below error at the time of activation

 

Repository: Internal error during statement execution, please see the database error traces for additional details; error in generated procedure - SqlScript: Could not derive table type for variable "RETURNED_TT" (SQL error: feature not supported: not allowed over OLAP VIEW : search without aggregation, grouping by expression other than view column or user defined function with string type) at ptime/query/sqlscript2/so_error.cc:27line: 4294967295 column: 4294967295

 

I have added one column as decision column and one action column through parameter.

 

Please help to find reason behind this error.

 

Thanks,

Shriniwas

Confusing in whether to pursue my career in SAP HANA or SAP UI5/FIORI

$
0
0

Hi all,

 

I have 2 years of experience in SAP ABAP. I want to change my job. I am confusing whether to pursue my career in SAP HANA or SAP Fiori/UI5. Which one will be good for an ABAPer ?

 

Please give me some ideas.

Best ideas are reward-able..

Read data from abap domain using Hana calculation view

$
0
0

Hi Experts

 

I need to read texts that are stored inside an abap domain using a Hana calculation view. Is this possible and how can it be done?

 

Domain text.jpg

 

Kind regards

 

Erik 


Avoid using Cursor

$
0
0

Hi all,

 

I have some problem with avoid using cursor in my procedures.

 

Here some example procedure. I have a table with dates of discomfort. And want to select from my environmental data for all properties the measured values from the days before a discomfort.

 

Is there away to do the same just via select statements without use of cursor?

 

Thank you in advance

 

Regards,

Matthias

 

 

PROCEDURE "MY_SYSTEM"."My_Project.procedures::pattern_Identification" (          IN property VARCHAR(50)  
)     LANGUAGE SQLSCRIPT    SQL SECURITY INVOKER     DEFAULT SCHEMA TEST_SYSTEM    AS  
BEGIN       DECLARE eventID INT;       DECLARE sequenceID INT :=1;       DECLARE prev_Day  DATE;       DECLARE discomfort_Day DATE;       DECLARE item FLOAT;       DECLARE timeframe_length INT = 5;       DECLARE CURSOR c_cursor1 FOR SELECT "DATE" FROM "DISCOMFORT_T" ORDER BY "DATE";       FOR cur_Row as c_cursor1 DO            SELECT cur_Row."DATE" INTO discomfort_Day FROM DUMMY;            FOR eventID IN 1 .. :timeframe_length DO                    prev_Day  := ADD_DAYS (:discomfort_Day , :eventID * (-1));                 SELECT "VALUE" INTO value FROM "ENVIRONMENTAL_DATA" WHERE "PROPERTY" = :property AND "DATE" = :prev_Day  ;                 INSERT INTO "PATTERN_T" VALUES (:sequenceID, :eventID, :value, :property);            END FOR;            sequenceID := sequenceID +1;       END FOR;  
END;  

HANA development memory issue

$
0
0

Hi All,

 

I wrote a add-on processing Journals and every now and again a

"[SAP AG][LIBODBCHDB32DLL][HDBODBC32] General error-10760 Memory allocation failed" error occurs but when the client log out of SAP and back in again it processes fine for a while.

 

Is this a HANA server memory issue or do I need to optimize my code ?

 

Kind Regards,

 

Brenden Draper

Exception Handling issue

$
0
0

Hello Experts,

 

In my company, we are currently developing an ETL to migrate data from an oracle database to a HANA database.

 

Lately we encountered this issue where an error occurred in procedure DM_INVOICE as shown below.

Now the error was because of the unique constraint violation on table EX_INVOICE_HEADER.

We found the problem and fixed it... that wasn't a problem.

But the thing is that we are logging each and every error that might occur by doing exception handlings on all procedures that we have.

Only on this error the exception handling was not fired and did not process the contents of the handler to be able to save the log.

 

 

Could not execute 'call dm_run('PBG','Initial',null,null)' in 34:48.653 minutes .

SAP DBTech JDBC: [2048]: column store error:  [2048] "MX_DAN"."DM_RUN": line 191 col 3 (at pos 8393): [2048] (range 3): column store error:  [2048] "MX_DAN"."DM_ETL": line 153 col 5 (at pos 7045): [2048] (range 3): column store error: search table error:  [2620] "MX_DAN"."DM_INVOICE": line 29 col 3 (at pos 1028): [130] (range 2) InternalFatal exception: incorrect CESU-8 string: 'unique constraint violated: TrexUpdate failed on table 'MX_DAN:EX_INVOICE_HEADER' with error: unique constraint violation for table MX_DAN:EX_INVOICE_HEADER$delta_1$en, constraint='$uc_UNI_B95E70F6$', value='V g¬öÏ &#159;á', pos=7; indexname=UNI_B95E70F6, rc=55'

 

 

Here's how we are doing the exception handling and the logging:

the DM_CREATE_LOG insert a record in table DM_LOG and it use autonomous transaction method to save the changes even when errors occur.

the DM_CREATE_LOG saves a FATAL error message whenever an error occurs,

except for when this error occured, it is as if the code inside the exit handler was not executed at all.

 

So, any idea why for the above error the exception handling code was not fired?

 

CREATE PROCEDURE DM_INVOICE (p_tenant_fk        VARBINARY(16),                                               p_system_source_fk VARBINARY(16),                                               p_job_run_fk       VARBINARY(16),                                               p_module_fk        VARBINARY(16))
LANGUAGE SQLSCRIPT SQL SECURITY INVOKER AS
v_err_msg                NVARCHAR(4000);
BEGIN  DECLARE EXIT HANDLER FOR SQLEXCEPTION  BEGIN    v_err_msg := ::SQL_ERROR_CODE ||' '|| ::SQL_ERROR_MESSAGE;    CALL DM_CREATE_LOG ('FATAL',:v_err_msg, NULL, NULL, :p_job_run_fk, :p_module_fk);    raise_hana_error(:v_err_msg);  END;  CALL DM_CREATE_LOG ('INFO','Inserting into table ex_invoice_header', NULL, NULL, :p_job_run_fk, :p_module_fk);  --insert new records                     INSERT INTO ex_invoice_header            (guid,             ...             )      SELECT id.invoice_header_fk,             ...        FROM dm_l_invoice_dim id       WHERE UPPER(id.ui)= 'I'         AND id.src_rank = 1;
END;

 

 

 

Regards,

 

Dany

SAP BO on HANA DB

$
0
0

Hi Team ,

 

Could you please share the  benefits of moving the SAP BO on the HANA DB.

We are planning to move  ( AUDIT & CMS DB ) on   HANA  DB.


What possible benefits we could have over comparison with traditional DB.

 

Currently we are on SAP BO 4.0  SP7 patch 9  (4.0.7.9)   on Windows 2008 R2 server.

DB is on SQL server 2008 R2.

App Server is  SAP NW 7.31 SP 7

 

We plan to move DB to HANA.

 

Regards ,

Abhinav

What are the major differences from SAP HANA SPS 01 to SAP HANA SPS 10

$
0
0

Hi Guys,

 

I'm newbie to SAP HANA Platform.

 

Can anyone please tell me what are the major differences from SAP HANA 1.0 support package stack 01 to sps 10?

Viewing all 6412 articles
Browse latest View live


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