Quantcast
Channel: SCN : Unanswered Discussions - SAP HANA and In-Memory Computing
Viewing all 4343 articles
Browse latest View live

How to connect cluster table in SAP smart data access

$
0
0

Hi,

Can any one please let me know how to connect cluster table(BSEG) through sap smart data access. when we are connecting SDA it is showing RFBLG table and that contain all cluster table and at that point of time it is difficult to find which data belong to which table.

as in ABAP when we write any report and calling any cluster table then it first hit to Data Dictionary and by that they use to read cluster and pool table, so is there any API like that present to read these cluster table through SDA.

 

Thanks Much,

Rajeev Kumar 


Issues in Building Dynamic SQL Query in HANA Sql

$
0
0

hi all,

 

I am new to HANA and got a requirement as under:

 

I have a cursor_1 and from it I built another cursor_2 and looping the cursor_2 inside of cursor_1. and the logic is something like this:

      For tab1 as cursor_1....

          For tab2 as cursor_2....

               ->here I get 3 fields from the tab2 as tab2.hana_table, tab2.field1 and tab2.field2 -> these will dynamically changed...

               now, I need to go to the respective tab2.hana_table and fetch the data present in tab2.field1 and tab2.field2 -> which are also dynamic...

               I used different ways of selects as under:

1)va_sql := 'select' || '' || tab2.field1 || '' || tab2.field2 || '' 'into  :va_field1_out, :va_field2_out' || '' || 'from' || '' || tab2.hana_table;   

     execute immediate(va_sql);

2)va_sql := 'select' || ' ' || ‘“’ ||tab2.field1 || ‘“’ || ‘,’ || ‘“’ || tab2.field2 || ‘“’ || 'into  :va_field1_out, :va_field2_out' || '' || 'from' || ' ' || tab2.hana_table;  

     execute immediate(va_sql);

3)va_sql := 'select "tab2.field1" , "tab2.field2" from "tab2.hana_table" into  ":va_field1_out" , ":va_field2_out" ';

     execute immediate(va_sql);

4)execute immediate 'select ' || :va_field1_in || ', ' || :va_field2_in || 'from '  || :va_hana_table || 'into' || ' ' || :va_field1_out || ', ' || :va_field2_out ;  

5)exec 'select ' || tab2.field1 || ' ,' || tab2.field2 || ' from '  || tab2.hana_table || ' into ' || :va_field1_out || ' ,' || :va_field2_out;

 

I was getting issues like: INTO can't be used in the EXEC or EXECUTE IMMEDIATE and finally I was not able to get values into local variables of the Stored procedure.... Even I tried to achieve the requirement by creating another procedure and thereby get the dynamic table contents, but it did not work out fine....

 

Please provide inputs on how to write a dynamic select query with fields tab2.hana_table, tab2.field1 and tab2.field2....

 

Thanks for your help in advance...

 

Regards,

Vishnu

Use SSO in connection string

$
0
0

Hi everyone,

 

I have a connection string in VBA that can successfully connect to HANA table:

 

 

StrSql = "driver=HDBODBC32;servernode=10.###.###.30:30015;DATABASE=Z_PTP_HANA_SCH;uid=xxxxx;pwd=xxxxx;"

 

However, I do not want to hardcode my credentials.

 

When the user refresh the workbook, they enter their windows authentication which logs them into HANA too through single sign on.

 

Is there a way to utilize that single sign on functionality into my connection string?

Questions in HANA Sql

$
0
0

Hi Team,

 

I have some questions as under:

     1)how can i use a dynamic tables/fields in the Cursor definition :

               say for eg.., Delcare Cursor Cur_1(dyn_field1 varchar(10), dyn_field2 varchar(10), dyn_table varchar(15)

                               for select <dyn_field1> <dyn_field2>... <dyn_fieldn> from <dyn_table> ? as it is not acceptable in the Cursor definition to use as:

                               for select :dyn_field1 :dyn_field2 from :dyn_table ? as it is not acceptable in the Cursor definition to use a Colon(:) before them..

     2)how to processing the records fetched from a table type:

               say for eg.., if I got a set of records from another procedure that contained a set of records(of a table type)

                                 how to Loop at the records and check for the fields inside them... say I got table that has 5 records and each with 3 fields in it...

                                   after I receive them in the calling procedure, how can Loop at them and check for conditions on the fields... Just like how the

                                   processing will be done in ABAP... Loop at itab into wa_tab.... check the conditions on the fields and Endloop.. ?

     3)how to check for dynamic fields while looping in the Cursor records...

               say for eg.., if I got 10 records from a stored procedure and I am not aware of the names of the fields in the cursor records

                                   if the code is like: I fetched all the fields from a table which has been derived out of another Cursor...

                                   For tab1 as Cursor_1 do

                                             tab1 has a field called Hana_table and this changes for every cursor loop...

                                             I defined a Cursor_2 as Select * from tab1.hana_table...

                                             Now in the Cursor loop of tab2.... For tab2 as Cursor_2 do

                                                  how do I know which fields are there in the Cursor_2 and to process them? 

     4)how to use Local and Global Internal tables in HANA sql and what is its impact on the HANA tables ?

 

Please provide answers on the above points as they are very much need for my current development.

 

Thanks in advance for your inputs.

 

Regards,

Vishnu                   

Error while creating Configuration for SLT replication

$
0
0

Hi All,

 

I have got Hana trial version system and I am trying to do data replication using SLT.

 

While doing the configuration using transaction LTR, I am getting error as attached.

 

Though I am getting an error, entry is getting into the DBCON table but when I trying to check the connection via the report ADBC_TEST_CONNECTION, I am getting error as :-

 

Could not open connection TMPI07762120130424061216       .

sql error     10.709- occured:

Connection failed (RTE:[89001] Cannot resolve host name 'hanacloud' rc=8: node name or service name not known)

 

 

Note:- I am using hanacloud as hostname in hana studio and its working fine there

 

Can anyone can suggest, what can be the solution for it.

 

Thanks in advance,

 

Gopal

Installing SAP Work Capital Analytics 1.0

$
0
0

Hi everyone,

We installed days ago the Reconciliation Monitor for Invoices and Goods

Received (HCO_HBA_APPS_GRIRM - Pre-requisite SAP Hana Application

software SPS07) in one of our environment where we had covered all the pre-requisites at that moment; then we were evaluating other Finance (FI

Fact books) apps and the second app that we wanted to install was the SAP WORK CAPITAL ANALYTICS 1.0, but we noticed that the SAP Hana

Application software required as pre-requisite changed recently to SPS 08.

 

 

 

Can we still install SAP WORK CAPITAL ANALYTICS 1.0 in although we are in SAP Hana Application software SPS07?.

 

Really appreciate any feedback,

 

Best Regards

 

Jose Juan (JJ)

Packages not seen in /nRSDD_HM_PUBLISH

$
0
0

Hi,

 

We are on Bw on hana [sp 08]

 

While running transaction /nRSDD_HM_PUBLISH , we are not able to view the packages  from hana.

 

IN dbcon, the user used for the connection has access to the requested packages in hana.

 

Could you please help.

 

Regards,

 

Rajiv

New Sql coding

$
0
0

Hello All,

 

I am an Abaper and have just started to work on HANA. The SQl codings has changed a lot. Though I can understand the flow on going through the code there is still lot of stuff's which i should learn so that i get accustomed to the new coding. I have already attended the ABAP on HANA open SAP course and have gained a lot of information. Apart from it is there any good material which will provide me more knowledge and help me start working?

 

Tnx,

Prem


SAP HANA Smart Data Access support for Oracle

$
0
0

Hi Team,

 

We are planning to setup SDA with source as ORACLE. In sap SDA document it says it is supported for 12 C.

 

Does that mean it doesn't support for lower versions, we have ORACLE 11 running.

 

Can anyone confirm?

 

Regards,

Venkat N

Difference between BW on HANA, Native HANA and HANA Enterprise..?

$
0
0

Hi Experts,

 

I am learning SAP HANA modeling.

 

I am not able understand why there are three terminologies i.e., BW on HANA, NAtive HANA and HANA enterprise..

 

Could you please tell me the "Difference between BW on HANA, Native HANA and HANA Enterprise..?"""

 

 

I searched in sdn but not getting required info.

 

Please share the links if you have.

 

 

Thanks

Asha

Visualize plan and explain plan

$
0
0

Hello Gurus,

 

I need to understand the use of Visual Plan and Explain plan.

1) How to read them?

2) Any further system tables which can be used

3) Step by Step procedure to understand

4) Need to understand thoroughly and master in that so that I can increase the performance of my components, sql-scripts, procedures.

 

Thanks in advance.

 

Shirish.

Adding/removing fields in CDS-definition problematic

$
0
0


I defined the following which could be activate successfully:

context test {

 

Type type0 {

        firstname : String(10);

        lastname : String(10);

        city : String(10);

        post_cde : Integer;       

        };

 

Type type1 {

        tel : Integer;       

          };

 

    @Catalog.tableType: #COLUMN

        Entity test_tab {

        key name : type0;

        tel : type1;

        };

 

};  //context test

 

I changed to the following which was also actiavted successfully:

 

context test {

 

Type type0 {

        firstname : String(10);

        lastname : String(10);

//        city : String(10);

//        post_cde : Integer;       

        };

 

Type type1 {

        tel : Integer;       

          };

 

    @Catalog.tableType: #COLUMN

        Entity test_tab {

        key name : type0;

        tel : type1;

        };

 

};  //context test

 

I then changed back to the first definition above and then get the following activation error

 

What is going on?

Initially it activated without a problem and now it is suddenly complaining.

DELETE SQL based on temporary values

$
0
0

Hi,

 

I am currently trying to create a procedure which deletes certain entries from a table on a daily basis.

The table is used to log changed values from BW including the user, time and date when the changes have been performed.

As the table would get bigger and bigger, I would like to write a procedure which keeps only the last entries of for each user.

 

I already have a SELECT function which describes the data I want to delete.

 

Thus I was not able so far to create a delete function out of this as there are two criteria in my WHERE clause which are not available in my table as fields (TIME_RANKING and USER_RANKING). Therefore I cannot just say DELETE FROM "SAPRBE"."ZIRSORT01_LOG" WHERE "TIME_RANKING" > 3....

 

How can I use fields in the WHERE clause of a DELETE function which do not belong to the affected table?

 

SELECT

"MYUSER"

, "MYDATE"

, "MYTIME"

, "CALYEAR"

, "CM_CDT2"

, "ZUEBERNAH"

FROM (

SELECT RANK() OVER (PARTITIONBY"CM_CDT2", "CALYEAR"ORDERBY"MYDATE", "MYTIME"DESC) AS"TIME_RANKING"

, RANK() OVER (PARTITIONBY"MYUSER", "CM_CDT2", "CALYEAR"ORDERBY"MYDATE", "MYTIME"DESC) AS"USER_RANKING"

, "MYUSER"

, "MYDATE"

, "MYTIME"

, "CALYEAR"

, "CM_CDT2"

, SUM("/BIC/ZUEBERNAH") AS"ZUEBERNAH"

FROM"SAPRBE"."ZIRSORT01_LOG"

GROUPBY"MYUSER"

, "MYDATE"

, "MYTIME"

, "CALYEAR"

, "CM_CDT2"

ORDERBY"CM_CDT2"DESC, "MYDATE"DESC, "MYTIME"DESC)

WHERE ("TIME_RANKING"> 3 OR"USER_RANKING" != 1) OR TO_DATE ("MYDATE") < (ADD_DAYS (CURRENT_DATE, -1095));

Privilege SELECT on P_USERS_ (SYS)

$
0
0

Hi experts!

 

I need get data from SYS.P_USERS_ table with limited user.

What I did:

Logon in system as SYSTEM user and created user TEST1 with System Privileges CATALOG READ.

01.png

Logon in system as TEST1 user and input SQL query:

SELECT NAME from SYS.P_USERS_

02.png

Get error:

Could not execute 'SELECT NAME from SYS.P_USERS_' in 2 ms 24 µs .

SAP DBTech JDBC: [258]: insufficient privilege: Not authorized


Ok, go to TEST1 user properties as SYSTEM user and trying add SELECT privileges for 'P_USERS_ (SYS)'.

Get error:

03.png

Could not modify user 'TEST1'. Could not grant privilege SELECT on P_USERS_ (SYS) You are not authorized to perform the required actions


QUESTION!

How I can get data from SYS.P_USERS_ table with limited user TEST1 ????


UPD:

As an experiment, I added ALL system privileges to user TEST1

04.png

butthis alsodid not remedythe situation.


How to bring text to hierarchy

$
0
0

Dear All,

 

   I have created 3 calculated  columns in attribute views using string function .

and build an level hierarchy using that calculated column .

 

How i want to bring text to the hierarchy .

 

Table used:

MVKE

 

field :

PRODH

 

Total length of PRODH is 18

i have taken first 5 char as level 1 , next 5 char as level 2 and remaining 10 char as level 3

 

and created hierarchy .

 

for text i have to pass level 1, level 2 and level 3 individually to table T179T and to get VTEXT

 

How i want to show hierarchy along text.

 

If any one have some idea how to proceed kindly suggest me .

 

Thanks in advance


Hana View(Created from Composite Provider) - Relational Universe (UNX) vs. Direct Access (BICS)

$
0
0

Hi All,

 

Does anyone have a list to listing of functionality and elements comparison between Direct Access(BICS - BEx) and Relational Universe (UNX) for Hana View(Created from Composite Provider)? I am looking for something similar as below(SAP BW is an OLAP vs. Relation connection).

 

Attached01.jpg

Attached02.jpg

 

Regards,

Kang

HANA log_mode for point in time restore

$
0
0

We had done a few tests in the area of Backup and Restore of HANA System using both the Local and Backint based backups

One of our tests failed for a point in time restore of the HANA system that should have used both Data and the log backups to restore based on the time we chose

Here is the error we found

Further checks revealed the Data restore was successful and the recovery failed during the log segment restore

 

HANA_Restore_Error.jpg

At this time the log_mode was set to NORMAL on the destination HANA System

We suspected the issue could be either

1. Corrupted log

2. Or the log_mode setting

 

Due to lack of time we tried changing the Point of restore to a different time than before and also used log_mode= OVERWRITE

This time the recovery completed and we were left with an open question if log_mode could have been responsible or a corrupted log

No further tests could be carried on due to time constraints of the project so this open question could not be validated

 

To validate this point I did another point in time recovery test for a different HANA system using backint tool leaving the log_mode in NORMAL state and the recovery worked

We have asked the Backint service provider if there are any specific settings for the log_mode for doing a point in time recovery and waiting for a feedback

I am posting this to share the results of my tests and seeking feedback if there is any documentation from SAP that confirms the log_mode setting while doing a point in time recovery

Time Characteristics not become active gives error in BW 7.4

$
0
0

Hi Experts

 

We have imported IO's in BW 7.4. Some info Objects are active but some are not getting active specially Time Char.

 

It gives error while activating. I am attaching the error image. I am looking forward experts input how these Time Info objects can activate.

 

0calmonth.png

error.png

 

Thanks

Sweta

Connect SAP BW datasources to Hana studio

$
0
0


Hi All,

 

Currently we have datasource 0CO_OM_WBS_6 in SAP BW system for which few reports are created and these are present across the landscape.

 

Now we need this flow in HANA studio as the client wants to view the real time data.

 

Using the tables which fetch data to the datasource is the best option or is there any other way other than BODS.Kindly help.

 

Regards,

 

Kumar

500 error when transport HANA LCM

$
0
0

Dear all,

 

I have created two hana instances , one for development and one for Quality. When I try to do the DU transport between two systems I get 500 error

 

[pdc-sap-pha01][QH1][2014.11.28 12:41.34.816][TransportService][0] Transport route ID: 1032

[pdc-sap-pha01][QH1][2014.11.28 12:41.35.828][TransportService][0] There will be 1 delivery units which will be transported.

[pdc-sap-pha01][QH1][2014.11.28 12:41.37.07][TransportService][0] DU: MMC Vendor: VENDORExportFrom: Thu Jan 01 1970 00:00:00 GMT+0000 (UTC) ExportTo: Thu Jan 01 1970 00:00:00 GMT+0000 (UTC)

[pdc-sap-pha01][DH1][2014.11.28 12:41.38.160][Export][0] Starts for DU: MMC Vendor: MAS

[pdc-sap-pha01][DH1][2014.11.28 12:41.38.176][Export][0] Delta DU Export. DU: MMC; Vendor: VENDORFrom: Thu Jan 01 1970 05:30:00 GMT+0530 (IST) To: Thu Jan 01 1970 05:30:00 GMT+0530 (IST)

[pdc-sap-pha01][DH1][2014.11.28 12:41.38.201][Export][0] Export (local) has been started ...

[pdc-sap-pha01][QH1][2014.11.28 12:41.59.710][TransportService][12] Failed for DU: MMC Vendor: VENDORError: HTTP request failed. Status 500. Missing error description in the HTTP response.

[pdc-sap-pha01][QH1][2014.11.28 12:41.59.727][TransportService][12] TransportServiceError: Error occurred while performing the transport.

Viewing all 4343 articles
Browse latest View live


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