Consume Attribute view in Trial

Hi there,
I'm testing the Trial version of SAP HANA Cloud and wanted to create and consume an attribute view.
I have created a very simple view which uses a table from the EPMSAMPLEDATA schema.
Because of the isolation requirements I've executed the following SQL as mentioned here:
CALL "HCP"."HCP_GRANT_SELECT_ON_ACTIVATED_OBJECTS"
Now, the _SYS_BIC schema is visivle and I can find my View there. But when I right-click on my view and click on "Open content" I get an authorization error:
Could not execute 'SELECT * FROM "_SYS_BIC"."p1234trial.myhanaxs/ATT_VIEW"' SAP DBTech JDBC: [2048]: column store error: search table error: [2950] user is not authorized.SAP DBTech JDBC: [2048]: column store error: search table error: [2950] user is not authorized
Do I miss something or has something changed?
Thanks for any help,
ben

Hi Priya,
thanks for your answer.
As logon user I'm using the username/password which is given to you after you've established the database tunnel via the "neo open-db-tunnel" command.
Regarding to the other priviliges:
Which user do I have to assign which priviliges?
As I undestood from this tutorial there is no need to assign specific priviliges.
Greets,
ben

Similar Messages

  • Not able to view Data Preview of Attribute View,AV and CV

    HI,
    I have created tables and then created the required attribute view, analytic view and calculation view for parent child hierarchy.
    I'm facing two problems
    1. I'm not able to see the "Data Preview" of any of the views.
    2. When i'm trying to import data from HANA from MS-EXCEL 2010 with data connection wizard, then connection is established successfully but after that instead of showing cubs its giving the following error
    Regards,
    Ch3tan

    Hi Seshadri Sreenivas R,
    I executed following queries
    Statement 'SELECT * FROM "_SYS_BI"."BIMC_ALL_CUBES"' successfully executed in 158 ms 518 µs  (server processing time: not supported by server)
    Fetched 0 row(s) in 0 ms 0 µs
    Statement 'SELECT * FROM "_SYS_BI"."BIMC_CUBES"' successfully executed in 195 ms 12 µs  (server processing time: not supported by server)
    Fetched 0 row(s) in 0 ms 0 µs
    I got 0 rows .
    I redeployed and reactivated successfully, then clicking on data preview i'm getting the same error
    Waiting for your suggestion.
    Regards
    Ch3tan

  • SAP HANA Attribute View- Not able to add objects

    Hi All,
    I've created one attribute view in Modeler Perspective.
    Trying to add tables on data foundation using "Add Objects". But when table name is entered in pop-up window, it hangs (not-responding). And error log got created as below.
    I'm not able to add the tables.
    "SAP DBTech JDBC: Object is closed: com.sap.db.jdbc.ConnectionSapDBFinalize@8e003d[ID 225800]."
    com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: Object is closed: com.sap.db.jdbc.ConnectionSapDBFinalize@8e003d[ID 225800].
    at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.createException(SQLExceptionSapDB.java:334)
    at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.generateSQLException(SQLExceptionSapDB.java:136)
    at com.sap.db.jdbc.ConnectionSapDB.assertOpen(ConnectionSapDB.java:224)
    at com.sap.db.jdbc.ConnectionSapDB.getTransactionIsolation(ConnectionSapDB.java:1263)
    at com.sap.db.jdbc.ConnectionSapDB.execute(ConnectionSapDB.java:1122)
    at com.sap.db.jdbc.ConnectionSapDB.execute(ConnectionSapDB.java:888)
    at com.sap.db.jdbc.FetchInfo.executeFetch(FetchInfo.java:162)
    at com.sap.db.jdbc.FetchInfo.executeFetchNext(FetchInfo.java:157)
    at com.sap.db.jdbc.ResultSetSapDB.fetchNextChunk(ResultSetSapDB.java:2418)
    at com.sap.db.jdbc.ResultSetSapDB.next(ResultSetSapDB.java:419)
    at com.sap.db.jdbc.trace.ResultSet.next(ResultSet.java:269)
    at com.sap.ndb.studio.sql.model.tables.impl.CatalogImpl.getCatalogObjects(CatalogImpl.java:338)
    at com.sap.ndb.studio.sql.model.tables.impl.CatalogImpl.getCatalogObjects(CatalogImpl.java:414)
    at com.sap.ndb.studio.bi.search.provider.CatalogObjectSearchProvider.doSearchInternal(CatalogObjectSearchProvider.java:172)
    at com.sap.ndb.studio.bi.search.provider.CatalogObjectSearchProvider.doSearch(CatalogObjectSearchProvider.java:95)
    also,
    "Could not fetch catalog objects"
    com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: Object is closed: com.sap.db.jdbc.ConnectionSapDBFinalize@64b085[ID 225787].
    at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.createException(SQLExceptionSapDB.java:334)
    at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.generateSQLException(SQLExceptionSapDB.java:136)
    at com.sap.db.jdbc.ConnectionSapDB.assertOpen(ConnectionSapDB.java:224)
    at com.sap.db.jdbc.ConnectionSapDB.prepareStatement(ConnectionSapDB.java:1964)
    at com.sap.db.jdbc.trace.Connection.prepareStatement(Connection.java:362)
    at com.sap.ndb.studio.jdbc.JDBCConnection.prepareStatement(JDBCConnection.java:479)
    at com.sap.ndb.studio.catalog.internal.JdbcExtended.getTablesCaseInSensitive(JdbcExtended.java:277)
    at com.sap.ndb.studio.catalog.CatalogUIPlugin.internalGetTableNames(CatalogUIPlugin.java:669)
    at com.sap.ndb.studio.catalog.CatalogUIPlugin.getTableNamesNoProgressService(CatalogUIPlugin.java:1156)
    at com.sap.ndb.studio.sql.dialogs.FindTableDialog.fillContentProvider(FindTableDialog.java:504)
    at org.eclipse.ui.dialogs.FilteredItemsSelectionDialog$FilterJob.filterContent(FilteredItemsSelectionDialog.java:2182)
    at org.eclipse.ui.dialogs.FilteredItemsSelectionDialog$FilterJob.internalRun(FilteredItemsSelectionDialog.java:2124)
    at org.eclipse.ui.dialogs.FilteredItemsSelectionDialog$FilterJob.doRun(FilteredItemsSelectionDialog.java:2096)
    at org.eclipse.ui.dialogs.FilteredItemsSelectionDialog$FilterJob.run(FilteredItemsSelectionDialog.java:2083)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
    Thanks,
    Sujit

    Hi Sujit,
    The log seems that connection is closed. Is it true? Did your system restarted?
    What happens if you close the studio, open it and try again?
    Are you using same revision Studio than the database?
    Regards, Fernando Da Rós

  • Error while creating Attribute View

    When I try to get Attribute view through two joined table with same type join indices I get following error ;
    Could not execute 'CREATE COLUMN VIEW "_SYS_BIC"."MyDB/TEAM_EVENT" TYPE JOIN WITH PARAMETERS ( joinIndex = ...' in 112 ms 159 µs . SAP DBTech JDBC: [2048]: column store error: logical index creation error:  [2434] join index inconsistent;object=MyDB/TEAM_EVENTen
    I tried everyhing in mind but cannot solve the problem. Any idea ?

    Try
    CREATE OR REPLACE VIEW rdr_le_info_view
    AS
    SELECT l.strategic_le
    ,cun.ucn cunucn
    ,cun.date
    ,cccs.ucn ucn
    ,cccs.agr_num
    FROM strat_le l
    ,ucn_name cun
    ,customer_setup cccs
    ,cccs.run_num run_num
    WHERE l.gfa_until_dt = '31-dec-9999'
    AND l.glas_until_dt = '31-dec-9999'
    AND l.int_until_dt = '31-dec-9999'
    AND cccs.ucn_lead_office = cun.ucn
    AND cun.OID = l.client_oid;Then call it like:
    select *
    from rdr_le_info_view
    where run_num = v_run_num;

  • Invalid column Index error - While consuming Calculation view via Native SQL

    Hi Experts,
    I am trying to consume a Calculation view (sql script one) , which has input parameters, via Native SQL in a ABAP program .
    Code snippet for the same would be as follows , Upon execution, it throws an error "Invalid Column Index (8) error " . Can anyone help what could be the issue here ?
    Thanks in Advance,
    Suma
    REPORT ZTEST_HANA2.
    *Report to consume Calculation view (script based) from ABAP
    PARAMETERS: ip_docnr type BELNR_D,
                ip_gjahr type GJAHR,
                ip_bukrs type BUKRS,
                ip_blgr type FAGL_RLDNR.
       DATA: LO_SQL_STMT TYPE REF TO CL_SQL_STATEMENT,
              LO_CONN     TYPE REF TO CL_SQL_CONNECTION,
              LO_RESULT   TYPE REF TO CL_SQL_RESULT_SET,
              LV_SQL      TYPE STRING,
              LR_DATA     TYPE REF TO DATA.
        DATA: LX_SQL_EXC           TYPE REF TO CX_SQL_EXCEPTION,
              LT_SEPMAPPS_CLSDINV  TYPE TABLE OF SEPMAPPS_CLSDINV,
              LV_TEXT              TYPE STRING.
        TRY.
    lv_sql = |SELECT * FROM "_SYS_BIC"."DEMO-ABAP/CA_GET_FI_DATA" | &&
                     |WITH PARAMETERS ('placeholder'= ('$$p_DOCNR$$','{ ip_docnr }'),| &&
                      |'placeholder'=('$$p_GJAHR$$','{ ip_gjahr }')| &&
                      |,'placeholder'= ('$$S_BUKRS$$','{ ip_bukrs }')| &&
                      |,'placeholder'= ('$$p_base_ledger$$','{ ip_blgr }') )| .
             LO_CONN = CL_SQL_CONNECTION=>GET_CONNECTION( ).
             "Create an SQL statement to be executed via the connection
              LO_SQL_STMT = LO_CONN->CREATE_STATEMENT( ).
             "Execute the native SQL query
             LO_RESULT = LO_SQL_STMT->EXECUTE_QUERY( LV_SQL ).
             "Read the result into the internal table lt_sepmapps_clsdinv
             GET REFERENCE OF LT_SEPMAPPS_CLSDINV INTO LR_DATA.
             LO_RESULT->SET_PARAM_TABLE( LR_DATA ).
             LO_RESULT->NEXT_PACKAGE( ).
             LO_RESULT->CLOSE( ).
             LO_CONN->CLOSE( ).
        CATCH CX_SQL_EXCEPTION INTO LX_SQL_EXC.
             LV_TEXT = LX_SQL_EXC->GET_TEXT( ).
             MESSAGE LV_TEXT TYPE 'E'.
        ENDTRY.

    Hi Suma,
    Post the SQL you success run directly on Studio together with error message (even if is the Invalid column index error).
    Check there if the parameters case is working properly... Is it really this confusing options:
    p_GJAHR
    S_BUKRS
    p_base_ledger
    Why not all lower or all upper? Anyhow you must test and find which option works according your modeling
    Regards, Fernando Da Rós

  • Doubt in attribute view on joining the table .

    Hello Team
                        Can some please help me in clearing the following doubts on joining tables .
    i) Can we perform a self join in attribute view in HANA . like for ex :- joining a table to itself .
    ii)Can we create an analytic view without creating an attribute view i.e creating an analytic view directly on tables .
    iii)When aggregation happens in calculation view exactly what happens internally .
    Please suggest me with the solution of these doubts .
    Regards

    Hi Prag,
    As Rashmi has answered your question, i would like to add up to it few more important points.
    1. Do not perform self join as it will return uncertain results. It is better to avoid self join.
    You can create a copy of the same table and perform join which will be consistent.
    2. In an analytic view, you will be adding table to data foundation, select the output fields.In the logical join node by default your data foundation will be present (this will contain the fields that you selected for output), you need not add any attribute view to this logical join node, leave it to default. In the semantics node select the attributes and measures. Perform validation and then activate. Your analytic view without attribute view is ready. You can check the data preview.
    3. In a calculation view, the records gets grouped by all the attributes and then the measures are calculated based on this grouping by using the mentioned aggregation (sum/max/min).
    Eg.
    Customer ID 0Calmonth Amount (aggregation = max)
    1001               01.2014     100         
    1001               01.2014     400
    1002               01.2014     200
    Output:
    Customer ID 0Calmonth Amount (aggregation = max)
    1001               01.2014     400
    1002               01.2014     200
    Hope this clarifies your doubts.
    Thanks and Regards,
    M.N.Adinarayanan

  • Using Attribute views in Script based Calculation views

    I am trying to create a view for analysis on a fact table which has measure name as a dimension as opposed to having multiple measures. Here is an example of what the data looks like.
    #Customer, Product, Measure, Data
    Customer1, Product1, ASP, 4.2
    Customer1, Product1, Units, 100
    Customer2, Product2, ASP, 4.4
    Customer2, Product2, Units, 200
    ... and so on and so forth.
    I had build Attribute views with hierarchies for both customer and product dimensions and build analytic views. However now I have the need to flatten the Measures dimension and have the resulting Fact view look like:
    #Customer, Product, ASP, Units
    Customer1, Product1, 4.2, 100
    Customer2, Product2, 4.4, 200
    ... and so on and so forth.
    Now I want to build analytic views on this flattened view of my Fact table.
    I was able to create a calculation view using Script mode, on the fact table and write a SQL to flatten the Measure dimension. But I am not able to now join this calculation view with the attribute views. Is there a way to leverage the existing Attribute views and their hierarchies in this case?
    The only way I can see for now is to use manual SQL to build out the entire view, including joining the attribute views and re-build the hierarchies in the definition of the calculation view. This essentially wastes work I have already done in the attribute views and forces me to build the entire thing using SQL.
    Is there a better approach?

    It's extremely annoying that the FLD() command isn't yet availlable in NW, unless it's coming with 7.5 or has been included in one of the more recent support packs.
    As a an alternative you may be able to use the following MDX routine:
    Returns the value of a property of the current member of a dimension
    *function PRO(%DIMENSIONNAME%,%PROPERTYNAME%)
    %DIMENSIONNAME%.Properties("%PROPERTYNAME%")
    *endfunction
    Unfortunately I've never been able to use this with a When statement, so you may have to ask an ABAP resource to develop a BADI to achieve your required results.

  • Calculate Column Subtotal in  Attribute View

    Hi,
    Is it possible to calculate the Column subtotal in Caluclation View itself likethe way we do in ALV.
    I want to do this calculation in the Calculation View itself.
    I thought of doing that through  Calculated Column but the SQL Function SUM() doesn't work there.
    Below is how my Calculation View looks like:
    I want the output to be like this (Highlighted in Green):
    I am getting the field Allocation from my Attrbute View ZAT_VBRK_VBRP(Join of table VBRK and VBRP) and ZVBAK is just an attribute view for VBRK.
    Thanks,
    Gaurav

    Hi Shankar,
    Sub_totals can be achieved through the SQL query using the Grouping_sets which is something like this,
    select col_1, col_2, col_3, sum(col_4)
    from <Table_name>
    group by grouping sets LIMIT 2 WITH SUBTOTAL
    ((col_1, col_2),(col_3));
    Usually this can be done in the front end reporting tool but,If you want to continue with the calculation_view where you want the sub total to be appended as a "New Tuple" then you will have to go with the CE_Functions using the sql_query.
    This is something new that i can learn today, lets see how the experts will guide us with the approach.
    Regards,
    Krishna.

  • Consume HANA Views

    Hello,
    We are migrating a report from ABAP to HANA due to performance reasons. We have created various views for data selection and aggregation.
    My query is how to consume these views created, via External view Or Native Sql(ADBC) which is better option in terms of performance optimization.

    Hi Jitendra,
    I think this question is touched/commented on in http://scn.sap.com/message/15268054#15268054, right?
    Cheers,
      Jasmin

  • How to get the distinct values in Attribute View?

    Hi,
    While doing the data preview of attribute view its showing duplicate records.
    Can i restrict all these duplicate in attribute view and get only distinct values?
    Thanks in advance.

    Hi Deepak,
    Please check the Key Attribute combination in the Source System and Create Attribute view with the same combination.
    so that you won't get any duplicate values.
    If you are taking fields randomly Pls ensure that you are taking at least one primary key combination  use the same combination while creating Attribute View.
    As u know that the purpose of Attribute view is to store the Master Data Objects like BI/BW which stores Non duplicate values.

  • How many attribute views you can be used in analytical view

    how many attribute views you can be used in analytical view

    Any attribute declared at component level in "Attributes" tab can be used in any methods of the view
    WD_COMP_CONTROLLER->attribute
    Thanks
    Bhanu

  • Error in DATA perview of Attribute views (JDBC Error)

    Hi Experts,
    Error Executing Query: SAP DBTech JDBC: [258] (at 69): insufficient privilege: Not authorized: line 1 col 70 (at pos 69)
    Any idea on how to overcome this Error.
    What authorization am i missing?
    Thanks

    There is only in table in this attribute view: ARTICLE_LOOKUP
    a. ARTICLE_ID as key attribute.
    b. CATEGORY and FAMILY_NAME as attribute.
    When i preview data at Table level , i do not have any issues. but same is not working for attribute view.
    I am trying example from below pdf file
    https://www.experiencesaphana.com/docs/DOC-1138

  • Consuming HANA views using ABAP

    Hi Experts,
    We have ABAP reports in ECC which is taking very long time to process it. So we decided to push down the complex logic to HANA where ever it is taking long time to fetch data.
    We have standalone HANA System. So can we use HANA as secondary database??? If yes, how can i consume HANA views in ABAP reports??
    Can some one guide me.
    Thanks in advance.
    Best Regards,
    Krishna.

    Hi Sundar,
    Thanks a lot for your valuable inputs.
    You need to access the native HANA artefacts (like HANA information views) from your ABAP system using native SQL and ADBC in case HANA is not the primary DB.
       - If i want to pass values to the views can we use HANA input parameters in this case as a PLACE HOLDER       in Native SQL??? else do i need to create a procedure for it???
    Basically ABAP team is optimized the code but still we are hitting with performance. So we want to utilize existing HANA databse as secondary db to push down the complex logic to HANA.
    Best Regards,
    Krishna

  • Unable to view columns for attribute views created

    Hi all,
    Here are the list of errors I am facing while creating attribute views and while adding multiple dimensions (Product dim and Employee dim) to an attribute view.
    I am unable to activate my attribute view. I don’t get any error message other than:
    Message :      STS.STS_ATTRIBUTE_VIEW: one or more columns of Table: DIMSUPPLIER have invalid ABAP name
    2. When I added DIM.Product attribute to the attribute view STS_ATTRIBUTE_VIEW, I am unable to see any column names for the DIM.Product to add them to output fields. Same with employee dimension also. Now my question is, Can I add more than one dimension to the same attribute view or do I have to create a new attribute view for every dimension. While I think I can add more dimensions to the same attribute view but I asked this question because I am unable to see any columns listed out in the dimensins Product and Employee.
    3. In Employee dimension when I click on the data preview, I don’t get any data. Its all blank. But there is data in the table and its visible when I preview in table.
    4. When I right click on the attribute view or the attribute itself I don't see any other options other than "Configure Table" but I remember 2 days back when I worked I was able to see other options like "Data Preview" and few others.
    Why am I unable to view the columns of the Product and Employee dimensions? Should there be a common primary key between all the dimensions to be able to view the data in the attribute view?
    Please note that my attribute view is still in grey inspite of hitting on save and validate and save and activate several times. And I am getting a warning message, "Some services are not started" on my hdbsystem and the system is showing yellow colour.
    Please advise.
    Thank you.
    Regards,
    Pavan.

    Hi Pavan,
    To much words and no picture, this doesn't help you to obtain community feedback.
    Can you sintetize your question, maybe even split it in minor questions.
    I confess I failled to understand what you are facing.
    Regards, Fernando Da Rós

  • Filter in Attribute view

    I basically want to have a view that displays two columns from my table, but not have any of the columns repeat the same ID or Name
    For example if table data looked like this 
    Name ID
    John 204
    John 204
    John204
    Mel 205
    Mel 205
    Mary 205
    I want the View to display
    Name ID
    John 204
    Mel 205
    Mary 206
    I feel as though there is a real easy solution to this but I'm not sure how to do it.
    Thanks,
    Connor

    Hi,
    It will depends on ur data modelling.. and the logic
    mainly 3 views
    Attribute view  - consists of dimension or master tables
    analytical view - along with attribute view or some master tables it will have  fact table or transaction table table (basically a numeric or measure column presenting in a table)
    Calculation view - based on ur logic u can choose graphical/ complex -scripting methods...
    (Graphical, scripting)
    but in each step u should check the data integrity # no records retrieved are correct or not.., because in ur table if u r having composite relationships then data may go for looping especially when u r using analytical view..
    so for simple architecture or aggregation columns u can go for analytical view
    i enclosed  file in which it explains the modeling structure on what purpose we need to use the 3 types of view..
    hope this will help you.
    Thanks,
    Thara

Maybe you are looking for

  • To Send the Email to Ship to Party for Shipment Notification in SMARTFORMS

    HI Gurus, I am having a scenario to send the EMAIL  for Shipment Notification using SMARTFORMS when processed through VT01/VT02N transaction. I general process, the email is going to Forwarding agent Email address. But the user wants to send the noti

  • Cannot get into mac. I get a white screen and flashing file folder with question mark inside. What can I do?

    2012/13 MacBook Pro froze up, so I did a hard shut down. Now, when I try to start up, it makes 3 unusual beeps, then I get a white screen. After a couple minutes, a flashing file folder with a question mark appears and remains. What is wrong and what

  • IPhoto Update Gliche

    I have just downloaded and installed the new Iphoto update, all 1.2gb of it, yet the Mac store still shows it as an update available, even theough the little grey box says that it is already installed. Support has told me to clear the Updated Folder

  • BIA Test: Suggestion for creating enormousTest Data for Infocubes

    Hi, I need to create some enormous amount of data for infocube in order to test BIA. I don't think my basis team will allow me to load data from Production to Sandbox and moreover production has less than 250 millions records. Any suggestion for 250

  • Number generation

    hi i have a logic prob  in sap abap. from  serial 279360 to ..... 279360 = AAAA. 279361 = AAAB 279362 = AAAC .... the sequence of alpha code r like AAAA -AAAZ, AABA- AABZ,... AZAA-AZZZ. BAAA- BAAZ,BABA-BABZ,.....BZAA - BZZZ, CAAA- CAAZ,CABA-CABZ,....