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

Re: Problem with conversion of Date type to NVARCHAR

$
0
0

Wait, maybe we are talking different things altogether

 

Are you saying there is a separate SQL function DATS_ADD_DAYS that is different from ADD_DAYS that operates directly on the NVARCHAR format?

 

If so, that is new to me. I just tested this in a Rev 82 system and it doesn't look valid.

 

Known syntax

SELECT ADD_DAYS('20150204', 5) FROM DUMMY

 

Regards,

Justin


HANA SSO with numeric UserIDs - Portal Authentication

$
0
0

As a preface, let me call out that we use numeric UserIDs in our organization.

 

I am looking to create UI5 based XS applications on SAP HANA. I would like to expose/embed links to these applications in our Enterprise Portal. I want to enable Single Sign on so that once someone is authenticated in the Enterprise Portal, they are not prsented with an additional logon screen when they access content in the EP which is hosted on SAP HANA.

 

Now from what I understand there are standard ways of establishing trust relationships and configuring HANA to accept the MySAPSSO2 ticket generated by the portal. However I believe that requires the exact same userID to exist on Portal and HANA. This is not possible, as HANA does not allow numeric userIDs which is a standard in our organization.

 

What can I do to achieve my desired result?

HANA SSO with numeric UserIDs - Gateway Authentication

$
0
0

As a preface, let me call out that we use numeric UserIDs in our organization.

 

I am looking to embed UI5 applications in our Central Gateway server (on Launchpad) which are either hosted entirely on HANA (both UI and oData) or where the UI is hosted on the gateway server but the services are being provided by HANA. I would like to setup Single Sign On in such a way that once a user is authenticated in the gateway, he is not prompted for another logon screen when accessing content from SAP HANA.

 

Now from what I understand there are standard ways of establishing trust relationships and configuring SSO between NW Gateway and SAP HANA. However I believe that requires  the exact same userID to exist on NW Gateway and HANA. This is not possible, as HANA does not allow numeric userIDs which is a standard in our organization.

 

What can I do to achieve my desired result?

Re: Problem with conversion of Date type to NVARCHAR

$
0
0

Well, the function is a CE-expression only. I don't know of a SQL equivalent.

 

04-02-2015 23-57-42.png

SAP_DATE in this case is my normal NVARCHAR(8) column with YYYYMMDD data.

 

04-02-2015 23-57-03.png

dats_direct is the output of my adding of 10 days.

Much nicer (and a very tiny bit faster) than converting back and forth...

 

It even provides a nice error message when a faulty day is entered into the DATS field, e.g. 01.13.2015...

 

[303]: invalid DATE, TIME or TIMESTAMP value: Parameter DATS contains invalid value: 20151301 at function dats_add_days()

 

To round it off there is the DATS_IS_VALID function (this one is available in SQL) to test whether a DATS value is valid or not:

 

All this worked on my Rev. 92 - can't say anything about older revisions though.

 

Cheers,

Lars

Re: Can I use a SQL generated view in Calc View?

$
0
0

Nope, it's not allowed.

The information modeler wants to see either tables or other information views as base objects.

 

- Lars

Re: Can't create plan for join query

$
0
0

Instead of data preview, can you see if the SQL select from this view works instead?

 

Regards,

Justin

Re: Problem with conversion of Date type to NVARCHAR

$
0
0

Ah, gotcha - it's been some time since I was actually in the expression editor, all SQL all the time for me nowadays

 

I tried the DATS_IS_VALID in SQL and it also seems to be invalid, you sure it's supported there? I am testing on an 82 box, so maybe new for 09.

 

Regards,

Justin

Re: SAP UI5 Applications not working after HANA SPS9(Rev 91) Upgrade

$
0
0

Probably best to open an SAP incident. Too many variables to attempt to diagnose on SCN.

 

Regards,

Justin


Re: Can't create plan for join query

$
0
0

Ok I tried select * from "_SYS_BIC"."MySchema/MyView" and it also failed with same error.

Re: No valid SAP crypto configuration

$
0
0

I am also getting the message about no valid SAP Crypto.  I have followed the instructions from a number of guides I have found (cannot paste links since paste does not work on these forums).  One slight difference is that I cannot use the SAP Crypto libraries since I am based in America.  I created a self-signed cert using OpenSSL instead, but still no luck.

 

Is there any guidance on how to do this?  I've seen conflicting guides and none seem to describe how to use OpenSSL instead of SAP Crypto.

Re: Can't create plan for join query

$
0
0

Maybe stupid sounding question but: can you re-activate all the views successfully?

Sounds as if there is something broken in the view-structures.

Re: Problem with conversion of Date type to NVARCHAR

$
0
0

Nope - I'm definitively not sure that it runs on anything but rev. 92

And I agree with you that I'd prefer to have this in SQL as well.

Maybe this is coming up; let's cross fingers and hope for the best.

 

Cheers,

Lars

Re: Can't create plan for join query

$
0
0

Yes I can reactivate this view successfully.  I can copy it and then reactivate the copy successfully.  Then data preview on the copy does not work and get same error. 

Re: Can't create plan for join query

$
0
0

Wait or do you mean all of the olap views that I'm calling in my calc view?  ie: all the source views.

bug in XS Admin tool makes SAML break ?

$
0
0

Hi community,


need your help today. We have latest HANA revision and have observed the following:

We have BO environments connected to HANA via SAML SSO with specific SAML provider names.

In the past the following parameter saml_service_provider_name located in the indexserver.ini file was empty by default and SAML worked ok.

With latest XS Admin tool we have observed the following behavior:

1.) saml_service_provider_name is empty

2.) access the tab "SAML Service provider" and realize the tool suggests a default service provider [SID][instance no.] eg. HDB23
3.) check parameter saml_service_provider_name located in the indexserver.ini and you will see that the entry is updated with "HDB23"

4.) as a result SAML is broken from BO CMC with generic error message:

Connection Failed: The test of the HANA SSO ticket used to log onto the HANA DB has failed due to:
[10]: invalid username or password. (FWM 02133)

 

Any ideas how to stop that? A write protection applied to the ini file is not an option btw :-)


There is a note out there but it is not connected to the HANA XS Admin tool:
Note 1987828:SAML SSO between HANA and BI failed with errors


Best regards, Holger


Re: bug in XS Admin tool makes SAML break ?

Re: Replace Null(?) values with 0 in CE script based CV !!

$
0
0

Hi Devi,

 

You are using Dynamic columns in Calculation View (READ ONLY)?

Can you share more details?

 

Regards,

Krishna Tangudu

Re: Can't create plan for join query

$
0
0

Can you try commenting out all the calls except one or two, activating and then testing to see which view might be causing the problem? In this case I would make sure each component is executable, and slowly combine until you can discover the error.

 

Regards,

Justin

Re: Can't create plan for join query

$
0
0

Ok thanks for your suggestions guys.  It looks like reactivating one of the source views being called by the calc view worked.  Of course it was the very last view that I tried to reactivate that did the trick!

 

-Patrick

Re: Problem with HANA System Replication Configuration

$
0
0

Hi Sergio,

 

I'm sorry but i couldn't resolve my problem yet and I have no good advice for your problem.

 

Maybe the adminstration guide can help you. (But I'm pretty sure that you already read through it) http://help.sap.com/hana/SAP_HANA_Administration_Guide_en.pdf

 

Two points I missed for some time:

# Do you configured the hostname resolution as described in 4.1.3.16 of the guide.

# Are the hostnames of both systems really different? On my machines DEV HANA hostnames are every time vhcalhdbdb and HANA ONE instances are every time hanaserver. And i think

collecting information ...

 

// This command runs forever....

indicates that that hostNames could not be resolved correctly.

 

Cheers,

Mathias

Viewing all 8968 articles
Browse latest View live


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