Re: Error message while activating a Decision Table
Convering a procedure to HANA information views
Hi
I have the following procedure which I need to convert into calc/attribute view . Please suggest how to do that?
procedure proc1(IN p1 numeric, IN p2 numeric, OUT ref cursor )
declare
var1 character varying;
begin
select region
into var1
from unit_level_mapping
where unit = p1
and level = p2;
if(p1 = 1) then
open ret_cursor for
SELECT region_code,region_name
FROM t_region where code = 3;
elsif(p1 = 2) then
open ret_cursor for
SELECT at_country_code, at_country_name
FROM t_country where at_regioncode = var1; -- from the initial select stmt
end if;
end ;
Regards
Rajib
Re: How to get the distinct values in calculation views
Dear Nitish
Thanks a lot for you help. Following is the output of the data from one of the CV. I just need to extract the distinct emp ids from this cv.. I need this data in this CV also as this will be used later for each distinct person id.
Employee ID | Attribute | Start_date | End_date |
11 | 214353 | 1-Jan-16 | 31-Dec-16 |
11 | 243434 | 1-Jan-16 | 31-Dec-16 |
12 | 127474 | 1-Jan-16 | 31-Dec-16 |
13 | 163664 | 1-Feb-16 | 29-Feb-16 |
13 | 875757 | 1-Feb-16 | 31-Dec-16 |
14 | 292929 | 20-Jan-16 | 31-May-16 |
Regards
Rajib
SLT table Replication status showing as scheduled
Hello,
I have replicated Master data table(LFA1), and status showing as scheduled and Local Table Rec filed is empty, table is not creating.
I have stopped the replication and re-replicated the table couple of times, but it didn't work.Still status showing as LTRC.
Santhosh
Re: Hanatrail Version Not working
Hi Sanjaya,
Please post your issue in the SAP HANA Cloud Platform Developer Center. I'm sure the platform experts will be able to assist you.
Regards,
Ifat.
Re: SERIAL Data Type
Still no progress here? Can I safely insert a new row with an autoincremented column value and get back this value, even if another user does the same?
-- Micha
Re: SAP Lumira Server for HANA : error
Hi vandana,
To work on SAP LS4H we need to only 3 steps :
1. Create a Analytical or Calculated view (cude as model)
- this will be a data set in the LS4H which directly sync to the Lumira server since it is installed on HANA
2. Then connect to BI launchpad http://<host>:<port>/sap/BI/Launchpad/
-you will see all the activated views then create any story and save
3. BI launchpad is similar to the Lumira desktop where you will see Visualize and compose options
-Now that you need is click on any data set and create a story and save.
- Else use desktop connect to Hana online and enter credential to access view and then create any story and publish to Lumira server.
Note : (if you are publishing from desktop to LS4H make sure that in network preferences the environment details are correctly entered).
That's all in a short and fallow user guide for more info, if you have issues and doubts kindly create a new thread and ask their that would be good for other to learn also .
Best Regards &Thanks,
M.Shashikiran
Re: SERIAL Data Type
Sure there had been progress.
Check the IDENTITY function (Quick note on IDENTITY column in SAP HANA) and of course the current documentation.
Using a schema mapping or schema synonym for SQL Views
We have a scenario where a schema has different names in DEV, QA and Prod. This schema, which happens to be an SLT target, contains tables to be used in SQL Views.
Is there any way to establish a synonym or a mapping for this schema name? For example can I define a synonym/map for ECC to ED1/EQ1/EP1 depending on the system? Then all SQL view definitions would be able to be defined using the virtual schema name "ECC".
I know schema map capability exists, but I only see it being usable for Analytic/Calc Views and not SQL views or any SQL Script procedure. There is a Public Synonym feature, but it doesn't seem to apply on schema names.
What are my options to model this?
Re: Using a schema mapping or schema synonym for SQL Views
No, there is no general SCHEMA synonym feature available (neither in SAP HANA, standard SQL nor in any of the other DBMS used with SAP systems).
You might have to script the synonym creation for all referenced tables and run it on each system.
The question of course is: why have multiple schema names across multiple machines in the first place? That seems to make things only more complicated without much additional benefit.
Re: HANA tenant backup
Hi Antoine,
Thanks for the Script.
But when try u executing the script, i am facing the below error.
* -10709: Connect failed (no reachable host left)
Regards
Chandra
SAP HANA SERVICE LAYER AND UI (ADD-ONS)
Hi Experts,
I have started palying around with the service layer but all my previous HANA add-ons was developed via the DI with HANA syntax queries.
I have the following few querstion:
1. Will UDO's,UDT's and UDF's in a HANA DB still be created via the DI API (SAPbobs) or will the Service Layer be used for this ?
2. Will I be able to use the Service Layer (for backend) and still use xml forms as per normal (SAPboui) DLL.
I would really appreciate any feedback...
Brenden Draper
Re: Update,Create and Delete with ODATA service result in 403 Forbidden Error
hi ThamizharasaN,
I have done this. And i am able to post data successfully using xsjs service but not from XSOdata service. Is there anything i may be missing.?
thanks in advance,
regards,
Animesh Ghosh
Re: Issue with SQL statement (sequence.NEXTVAL) in SAP HANA SP80
I can confirm that this issue does no longer appear in SP09 or later...
Need help understanding ".xsprivilege"
Hi,
I am having trouble understanding how the .xsprivilege works when used in a XS application project. I read the help documentation and imported some hello world example projects and toyed around but I still don't get it....
Here's what I need help with,
1) When we define a .xsprivilege with 'Display' and 'Admin' options, are they keywords that set the privilege levels? I think it is not, but not sure.
2) The help document on '.xsaccess' specifies,
"The authorization keyword in the .xsaccess file enables you to specify which authorization level is required for access to a particular application package, for example, execute or admin on the package sap.xse.text."........where do we specify what actions are permitted as part of 'execute' or 'admin' privilege?
3) Or is the level of access for 'execute' and 'admin' actually defined when we use the privilege in the '.hdbrole' file depending on the access levels we define there?
Thank You,
Benedict
Connect with ADO.NET 4.5 to SAP HANA
Hello,
I want to share a finding that I made when I tried to connect with a C# ADO .NET 4.5 program to Hana. I am sorry, if this already has been posted earlier, but I did not find this when I searched for it.
1. You need to install the 32 and 64 bit version of the HDB client because of Visual Studio. If you only install the 64 bit version you will get a "cannot find libSQLDBCHDN.dll" message, when you try to run your program, as it is looking for the 32 bit version of the libSQLDBCHDN.dll
2. Both HDB clients must be from the same revision otherwise you will "version mismatch" error, when running the program.
Best regards
Ercin Nurol
Sap Hana Replication
Hello all,
I have 2 SAP Hana Systems i am using to test replication.
Although when i start with replication secondary hosts wont start. Making some analyse to the nameserver.trc and indexserver.trc i have the following:
nemeserver.trc
i Crypto Utils.cpp(02368) : generated new PersistenceRootKey.
i Crypto Utils.cpp(02408) : generated new DpApiRootKey.
e Stream NetworkChannel.cpp(02672) : NetworkChannel::connectBlocking peer closed
e DaemonClient NetworkLinux.cpp(00233) : Cannot connect (connection refused) to 127.0.0.1:30000
e TrexNet Responder.cpp(02062) : can't accept: (ssl: internal error)
e TrexNet Responder.cpp(02062) : details: Internal Error. Crypto/SSL/CommonCrypto/Engine.cpp:516: SSL handshake failed: SSL error [536871970]: ???, General error: 0x20000422 | SAPCRYPTOLIB | SSL_accept SSL API error
0xa060023c | SSL | ssl3_get_record
Version in SSLPlaintext.version field of currently received record differs from the one negotiated in the current or currently accomplished handshake.
SSL record with a non supported version received
(ErrCode: 536871970)
Indexserver.trc
e tz DateParser.cpp(04444) : Time zone validity checker could not find database tables with timezone data. Aborting validity check. Please make sure that you have up-to-date timezone data tables. (see SAP Note 1932132)
e TrexNet EndPoint.cpp(00329) : ERROR: failed to open channel <SecondaryServerIP>:30010! reason: (ssl: no context given)
e TrexNet EndPoint.cpp(00329) : details: Internal Error. Crypto/SSL/CommonCrypto/Context.cpp:128: Cannot create SSL context: Error in api.SSL_CTX_set_default_pse_by_name - SSL error [4129]: ???, General error: 0x00001021 | SAPCRYPTOLIB | SSL_CTX_set_default_pse_by_name
SAPCRYPTO API error
The PSE file does not exist.
0xa1d50108 | TOKEN_TOKPSE | sec_SSL_CTX_set_asc
Token application not existing
(ErrCode: 4129)
[4213]{365351}[18/13865] 2016-02-02 15:40:04.706691 e Row_Engine msglog.cc(00082) : error: general configuration error (at ptime/session/eapi/jdbc/Statement.cc:20
33 )
[4213]{365351}[18/13865] 2016-02-02 15:40:04.706797 e EmbeddedAPI Statement.cc(04397) : unhandled ltt exception was caught: conn_id=365351, stmt_id=156917060728915
7, stmt_hash=aabe125e5c487fd1ae50133f0f4aaf98, error=error: general configuration error, sql=alter system alter configuration ('global.ini','SYSTEM') unset ('communicat
ion','ssl') with reconfigure
[4213]{365351}[-1/-1] 2016-02-02 15:40:04.706913 e EmbeddedAPI Connection.cc(02012) : internal error: message=error: general configuration error
[4213]{365351}[-1/-1] 2016-02-02 15:40:04.836169 e EmbeddedAPI Connection.cc(00336) : exception 1: no.70000030 (TREXNameServer/ReconfigServer.cpp:113)
error: general configuration error
exception throw location:
Can anyone help me debuging and resolving this please. I am starting with SAP Note 1932132.
Regards,
Lostrans
Re: Need help understanding ".xsprivilege"
Hello Benedict.
1) The privilege names can be defined free in your .xsprivilege file. You can define any number of privileges you need. There is not restriction to special names. How the privilege names are used to steer the privileges is done using the .xsaccess file and roles.
2) By adding a specific privilege to an .xsaccess file, the privilege steers the access to the package to which the .xsaccess file belongs (also the sub-packages are affected if no specific .xsaccess file(s) are available for the sub-packages).
Example package structure:
- mypackage
- .xsprivilege (defines privileges "admin_tools", "dummy_tools")
- admin_tools (package)
- .xsaccess (with "mypackage::admin_tools" privilege)
- admin_tool_service.xsjs
- dummy_tools (package)
- .xsaccess (with "mypackage::dummy_tools" privilege)
- dummy_tool_service.xsjs
A user which has assigned the application privilege "mypackage::admin_tools" assigned via a role can execute the xsjs service in the admin_tools sub-package. A user which has assigned the application privilege "mypackage::dummy_tools" via a role can execute the xsjs service in the dummy_tools sub-package.
3) Via a role an application privilege has to be assigned to the users who needs it. Without giving users the application privilege the "secured" objects can not be executed. What exactly can be executed with a specific application privilege is steered by the "package assignment" due to the definition in the .xsaccess file. In an XSJS also the $.session.assertAppPrivilege method (JSDoc: Class: Session) can be used to check if a user has a specific application privilege assigned.
Regards,
Florian
Re: Updating UI5 resource version on HANA DB
Hi Manoj
currently we are in SAPUI5_1 1.22.3 version on HANA DB 8.2 rel, when i upgrade the HANA DB to 102.03 I see the version is updated to SAPUI5_1 1.28.15, now the we need to to upgrade SAPUI5_1 version to 1.32.10, is it possible.
I did go through the notes, but i didn't help on how to download and update to SAPUI5_1 version 1.32.10
http://service.sap.com/sap/support/notes/2244567
http://service.sap.com/sap/support/notes/2270937
http://service.sap.com/sap/support/notes/2249111
http://service.sap.com/sap/support/notes/2118663
when i try to download the dump file from sap service marketplace
Support Packages and Patches - U"SAPUI5 CLIENT RUNTIME"SAPUI5 CLIENT RUNTIME 1.00
There are files like UI5CLIENT32P_9-80000549.ZIP Version 1.32.9 not sure if this is SAPUI5_1 and i am not able to import this from HLM or HALM
and when i go to the following path
Support Packages and Patches - H"SAP HANA PLATFORM EDITION"SAP HANA PLATFORM EDIT. 1.0"Entry by Component"HANA studio SAPUI5 Plug-in
I see files like UI5TOOL15_0-10011992.ZIP (UI Development Toolkit for HTML5 Eclipse Tools 1.28.28)
This is HANA Live environment.
could you recommend on what is the process to upgrade SAPUI5_1 component on HANA Live environment
your help is greatly appreciated.
Thanks
Kishore
Re: Need help understanding ".xsprivilege"
Hello Florian,
Thank you very much for your detailed answer. Appreciate your effort in explaining it with the example of the package hierarchy. Its like I found the missing piece of the puzzle .
Benedict