Defining a recursive view in SAP HANA

Hi All,
Currently SAP HANA does not support defining recursive views as already mentioned in Tals discussion as per the following link:
Defining a recursive view in SAP HANA
I would like to ask again if this limitation is still exist in latest SAP HANA version or not?
Some background:
In our MDM product we can create a hierarchy tables which organizes information in a hierarchy where each record is related to a parent record and may also be related to sibling records and/or child records.
On other hands, MDM product generates database views that are saved as database queries representing MDM data. Currently HANA limitation prevents creating a database view on top of hierarchy database tables.
Lars Breddemann
Best regards,
Ahmad

Hi Ahmad,
just as I mentioned in BOM explosion there is a feature available in SAP HANA (column view type hierarchy aka hierarchy views) that is used (SAP-) internally.
AFAIK there are some ideas to make this available via SQL, but I don't know when or how this functionality will make it into the standard product.
Ruediger Karl the core HANA PM might be able to answer that.
Until then, you might be better off contacting SAP HANA development about possibly using hierarchy views for your development.
- Lars

Similar Messages

  • Error while validating/activating views in SAP HANA

    Hi,
    I are getting below error while activating/activating view in HANA
    "exception 40109:nrepository/base/activation/activator.cpp:176nRepository: Encountered an internal error in the repository code, this is most likely a bug in the implementation;Activator failed to retrieve/lock NRIV entry for domain activation_idnexception 71000139:nptime/query/plan_executor/trex_wrapper/trex_wrapper_body/trex_update.cc:2123n[2458] current operation cancelled by request and transaction rolled backn "
    Please suggest why this error is coming & how can we rectify it.
    Regards
    Divyank Mehta

    Hi Krishna,
    I am getting  same error while activating the View.HANA Studio version is 85.
    Thanks

  • Generating Dependencies for Calculation/Analytical View in SAP HANA.

    Hi Everyone,
    I am trying to find out the dependencies for a specific Calculation/Analytical View. I have used sys.object_dependencies but that gives only the table names on which the calculation view is dependent on, but not theanalytical and attribute views.
    For example, consider a calculation view which is developed by joining 2 analytical views and the analytical views in turn uses some attribute views. So my ask is to get all these object information not just the tables. This is very basic info and I assume it must be captured in some metadata views. My aim is to query such metadata views and get the dependencies. Any pointers to this would be highly helpful.
    Best Regards. 

    Hi Samarpan,
    You can right click on the view and select option 'Auto Documentation' with content type as 'Model Details' in the wizard. Select a target location for the document to generate.
    When you open the generated document, in the last there is a section as 'Cross References' which will give you full hierarchy of views/tables used.
    Hope this will solve your problem
    Regards,
    Rashmi

  • SAP HANA: IMPORT/EXPORT Views

    We can Import/export tables using hdbsql CLI.
    But Is there any way by which we can export/import Views(attribute,analytic,calculation) using hdbsql CLI.
    I raised above question some days back
    SAP HANA: IMPORT/EXPORT Views | SCN
    Also while checking on internet I found another link for the same issue:
    http://scn.sap.com/thread/2141404
    And from experts answers, I came to conclusion that Import/Export Views(Attribute/Analytic/Calculation views)in SAP HANA is not possible through hdbsql CLI/ SQL commands.Now Is there a way where I can confirm this from SAP HANA program management guys?

    Lars,
    Thanks for the explanation.
    What I am trying to achieve is to create an automate script which should export all tables and views for a schema and again import tables and views in a different schema.
    table part is done, But stuck in view part.
    I tried the below command and was able to export the calculation view which I created in Content and exists as
    _SYS_BIC-->Package(same name as schema where all the tables are stored) --> View Name.
    Command used was:
    EXPORT  "<Schema_Name>"."<Package_Name>/<View_Name>"  INTO '<path>'
    Now I have 2 ques :
    1) I am not sure how to import this exported view. I tried below command but it failed:
    IMPORT  "<Schema_Name>"."<Package_Name>/<View_Name>"  FROM '<path>'
    2) Not sure how to export and import all the views.
    I did IMPORT SCAN of the path as well and found below entries for the exported view in the mentioned path:
    SCHEMA_NAME, OBJECT_NAME, OBJECT_TYPE, EXISTS
    "_SYS_BIC", "<Packagename>/CalculationViewName>", "VIEW", 1
    "_SYS_BIC", "<Packagename>/AnalyticViewName>", "VIEW", 1
    "_SYS_BIC", "<Packagename>/CalculationViewName>/olap", "VIEW", 1
    "_SYS_BIC", "vwTile1ALLData", "VIEW", 1
    Any Inputs would definitely help. Thanks.

  • Connecting Hana view to SAP Lumira

    Hi ,
    I created a view in Hana system and used the Connect to SAP HANA One source option in SAP Lumira for the Dataset.
    On the next screen i am able to see all views under different packages from HANA, but i am not able to see the new view created by me.
    My questions -
    1) Do i need to have certain privileges in order to see the newly created view in the view list at lumira level?
    2) Any Steps which i am missing in addition to creating an anayltic view, adding a data foundation to the view ?
    Regards
    Chaitanya Sharma

    Hi Chaitanya,
    Check if the Schema and the package containing the AN view you have created is assigned to your USERNAME under Object & Package privilege respectively.
    And while connecting to HANA System in Lumira login with the USER which has these assigned objects. Check if this helps
    Regards,
    Avinash Raju

  • Best Approach for Reporting on SAP HANA Views

    Hi,
    Kindly provide information w.r.t the best approach for the reporting on HANA views for the architecture displayed below:
    We are on a lookout for information mainly around the following points:
    There are two reporting options which are known to us and listed below namely:
    Reporting on HANA views through SAP BW  (View > VirtualProvider > BEx > BI 4.1)
    Reporting on HANA views in ECC using BI 4.1 tools
            Which is the best option for reporting (please provide supportive reasons : as in advantages and limitations)?
             In case a better approach exists, please let us know of the same.
    Best approach for reporting option on a mixed scenario wherein data of BW and HANA views is to be utilized together.

    Hi Alston,
    To be honest I did not understand the architecture that you have figured out in your message.
    Do you have HANA instance as far as I understood and one ERP and BW is running on HANA. Or there might be 2 HANA instance and ERP and BW are running independently.
    Anyway If you have HANA you have many options to present data by using analytic views. Also you have BW on HANA as EDW. So for both you can use BO and Lumira as well for presenting data.
    Check this document as well: http://scn.sap.com/docs/DOC-34403

  • SAP HANA Live Views for ERP

    Hi Experts,
    We are planning to implement SAP HANA Live for ERP operational reporting, I saw there are 786 views delivered with this which includes -
    1) Query views
    2) Reuse Views
    3) Private Views
    Query views always contains the word "Query" at the end of the view name which helps in identifying it but I am unable to distinguish between reuse and private views. Can anyone tell me how do we distinguish whether a view is a reuse view or a private view?
    Thanks in anticipation.
    Regards,
    Victor

    Hi Ramakrishnan
    How do you get access to the 'VDM properties' Tab ?
    I don't have it on my own HANA Studio.
    I guess this tab is also the good one to assign a view to the proper product/ module hierarchy in the HANA Live Browzer.
    Currently, all my custom view fall into the "N/A - Undefined" section, which is highly frustrating !
    Is this view dedicated to SAP developpers?
    Otherwise do you know how to get access to it.
    Thanks.
    Best Regards
    Stephane

  • Creating Logic and modeling for SAP BW datasource in SAP HANA views and SLT

    Hi to all,
    I have small question.
    We have BW system and SAP ECC as source system and to get data from SAP ECC source system we are using SAP ECC Standard data source.
    Now we required to, create modeling in SAP HANA by use of HANA View and get data from SAP ECC source table via SLT.
    So we can replicate same modeling,as we done in SAP BW system.
    But  my question is that, as SAP ECC standard data source hit multiple table and do run-time calculation, before sending to SAP BI.
    How we can derives such calculation and logic, in our HANA studio, because as we know in SLT data transformation can be done in limited way also
    in view we can not drive such logic via SQL script ?.
    Is there any way we can do such modeling and logic in SAP HANA ?
    or
    is there any standard document for this type of case, which we can use ?
    Note: We don't want to use SAP DS or DXC for data loading to HANA, as  we want it in more real time.
    Regards
    Pavneet Rana

    Thanks for reply,
    As SLT is based on ABAP, so we can write complex logic in it.
    But if we talk about SAP ECC standard data source, they have complex logic, based on multiple table.
    So we need to write code from scratch in SLT to derive same result. but it will be huge time consuming , and required good ABAP skills, also it will lead to bug in code.
    Also it will reduce the real time performance of SLT, due to complex logic.
    Second option is procedure via SQL script, which is again huge effort in term if logic and can lead to error/bug in logic.
    Does we have any other way or architecture to do this is very simple way, with high performance and less error issue.
    Regards
    Pavneet Rana

  • SAP HANA Live View - VDM Online Documentation

    Hello Experts,
    I am interested in using SAP HANA Live View for CRM, we are experiencing difficulties in installing SAP HANA Live Browser. Is there a  documentation for the VDM available online? Just like BI Content, there are documentation available online where we could see the technical details like the infoobjects, mapping etc.
    Regards,
    DaSaint

    Hi,
    Did you try checking this link https://help.sap.com/saphelp_hba/helpdata/en/9c/382618453244d8aaa9e460a77f5de0/frameset.htm Thanks & Regards   A.Dinesh

  • How to make a BW Infoprovider for a SAP HANA Calculation-/Analytcial-View

    Hi
    I have got a BW 73 with a Hana.
    How can I  make a BW Infoprovider for a SAP HANA Calculation-/Analytcial-View in SAP BW ?
    Thank You
    Best Martin

    Hi Rekha,
    No need to do anything, just we need do migrate standard info cube to In-memory Optimized Info Cube. Once it is turned to In-Memory optimized Info Cube(We will have F table surrounded by master data tables) and no dimension tables in HANA.
    F-tables is nothing but Analytic View in HANA and Master data tables are nothing but Attributes in HANA.
    once you migrate to In-Memory Info Cube, your tables are ready in HANA and you can create different view.
    have a look at the below videos.
    https://www.experiencesaphana.com/blogs/bwonhana/2011/10/18/prerequisites-for-bw-on-hana
    http://www.sdn.sap.com/irj/scn/data-warehousing-elearning
    Regards,
    Venkatesh

  • Currency conversion error in SAP HANA

    Hi,
    I am new to SAP HANA and learning to create information views in HANA studio (SAP HANA SP6 on Cloudshare, HANA studio 1.0.68). I am trying to create a simple analytic view (on purchaseOrderItem table in SAP_HANA_EPM_DEMO sample database) to have GrossAmount converted to EUR.
    I added a calculated column as follows:
    When i click on "OK", i get error -
    The check box “Calculate before aggregation” has been unchecked, because the definition of the calculated column contains measures with currency conversion, restricted measures or operands with input parameters. For such a calculated column the calculation is always done after the aggregation."
    and checkbox "calculate before aggregation" get unchecked. See screenshot below:
    Please suggest what could be reason? Thanks in advance.
    Regards,
    Amit

    Hi Amit,
    If you uncheck the "Calculate before aggregation" checkbox and activate the view, you will see in the generated log that a Calc scenario is created. (a view with /olap wrapper). Due to the calc scenario, the aggregation is defined as the default behavior for the KFs and hence the calculation cannot be done before aggregation.
    By the way, I did not understand why do you need calculate before aggregation for a KF which is just a copy of another KF. If you need Gross amount in Local currency and EUR, then just perform the currency conversion without "Calculate before aggregation" checkbox. It will work.
    Regards,
    Ravi

  • SAP HANA One and Predictive Analysis Desktop - Time Series Algorithms

    I have been working on a Proof-of-Concept project linking the SAP Predictive Analysis Desktop application to the SAP HANA One environment.
    I have modeled that data using SAP HANA Studio -- created Analytic views, Hierarchies, etc. -- following the HANA Academy videos.  This has worked very well in order to perform the historical analysis and reporting through the Desktop Application. 
    However, I cannot get the Predictive Analysis algorithms -- specifically the Time Series algorithms -- to work appropriately using the Desktop tool. It always errors out and points to the IndexTrace for more information, but it is difficult to pinpoint the exact cause of the issue.  The HANA Academy only has videos on Time Series Algorithms using SQL statements which will not work for my user community since they will have to constantly tweak the data and algorithm configuration. 
    In my experience so far with Predictive Analysis desktop and the Predictive Algorithms, there is a drastic difference between working with Local .CSV / Excel files and connecting to a HANA instance.  The configuration options for using the Time Series Algorithms are different depending upon the data source, which seems to be causing the issue.  For instance, when working with a local file, the Triple Exponential Smoothing configuration allows for the specification of which Date field to use for the calculation.  Once the data source is switched to HANA, it no longer allows for the Date field to be specified.  Using the exact same data set, the Algorithm using the local file works but the HANA one fails. 
    From my research thus far, everyone seems to be using PA for local files or running the Predictive Algorithms directly in HANA using SQL.  I can not find much of anything useful related to combing PA Desktop to HANA. 
    Does anyone have any experience utilizing the Time Series Algorithms in PA Desktop with a HANA instance?   Is there any documentation of how to structure the data in HANA so that it can be properly utilized in PA desktop? 
    HANA Info:
    HANA One Version: Rev 52.1
    HANA Version: 1.00.66.382664
    Predictive Analysis Desktop Info:
    Version: 1.0.11
    Build: 708
    Thanks in advance --
    Brian

    Hi,
    If you use CSV or XLS data source you will be using Native Algorithm or R
    Algorithm in SAP Predictive Analysis.
    When you connect HANA, SAP Predictive Analysis uses PAL Algorithm which runs
    on HANA server.
    Coming to your question regarding difference,
    In SAP PA Native Algorithm, we could provide the Data variable, Algorithm
    picks the seasonal information from the Data column. Both R and SAP HANA PAL
    does not support Date Column. We need configure seasonal information in
    Algorithm properties.
    R Properties
    1) Period : you need to mention the periodicity of the Data
    Monthly : (12)
    Quarter : (4)
    Custom : you can use it for week or Daily or hourly.
    2) Start Year: need to mention Start year.
    Start year is not used by algorithm for calculating Time series, but it helps
    PA to generate Visualization ( Time series chart) by simulating year and
    periodicity information.
    3) Starting Period:
    if your data is Quarterly and you have data recordings from Q2, mention 2 in
    start period.
    Example.
    If the data periodicity is Monthy and my data starts from Feb 1979, we need to provide following information,
    Period: 12
    Start year: 1979
    start Period: 2
    PAL Properties. : Same as properties defined in R.
    Thanks
    Ashok
    [email protected]

  • Built in support for MapReduce in SAP Hana and SQLSCRIPT

    Is it possible to define Pure functions in SQLSCRIPT explicitly as a Mapper or a Reducer?
    In Monday, April 20th I was reading this document : http://help.sap.com/hana/sap_hana_sql_script_reference_en.pdf and it was mentionning this feature with code examples.(In chapter 3 "What is SQLSCRIPT ?")
    But starting from Tuesday, April 21st it is no longer mentionned as it seems that the document as been updated.
    This is very confusing.
    Does this mean that the feature is dropped?

    Checking the version of the file I saved to my hard drive (V1.1 from 2015-02-16) I cannot find anything in the "What is SQLScript" chapter that even talks about MAP/REDUCE.
    In fact, there is nothing about this in the whole document.
    From a programmer point of view, you actually don't have to do that yourself.
    While SAP HANA internally uses concepts similar to MAP/REDUCE in order to parallelise and distribute data processing, this is not something you can or should build in SQLSCRIPT.
    - Lars

  • SAP HANA CEI Segmentation error

    Hi All,
    in ADT-> Segmentation-> define aliases for SAP HANA DATA source , i am getting following error .
    my HANA schema name is HANADEMO and table name is  ZTAB
    i am specifying the path as HANADEMO/ZTAB and getting following error .
    please guide me to trouble shoot the same.
    error : Alias ZAT_CUST: data source view hanademo/ZTAB does not exist
    Thanks ,
    SWAPNIL GHARAT

    In HANA Studio, is your package named in lower case? Please check.

  • SAP HANA SHINE HCP_GRANT_ROLE_TO_USER Issue

    Hi,
    I have imported the SAP HANA SHINE 8 content in  my SAP HANA Cloud trial instance using my Eclipse (Luna) environment.
    I am now trying to execute the following but get errors below:
    call "HCP"."HCP_GRANT_ROLE_TO_USER" ('s0007081080trial.kallidusdev.shinesp8.roles::Admin','s0007081080')
    Could not execute 'call "HCP"."HCP_GRANT_ROLE_TO_USER" ...' in 1:21.996 minutes .
    SAP DBTech JDBC: [10001]: user-defined error:  [10001] "HCP"."HCP_GRANT_ROLE_TO_USER": line 17 col 12 (at pos 1164): [10001] (range 3) user-defined error exception: s0007081080trial.kallidusdev.shinesp8.roles::Admin role is not created, active or part of package described in view HCP.HCP_DEV_METADATA.
    Can anyone explain what is wrong and how I can fix this so the statemt executes successfully?
    Thanks,
    Chris

    Hello,
    1st please check if all your content is getting activated or not .. it should be like this after you import successfully
    2) As you can see its Just user Role so you need to call
    CALL "HCP"."HCP_GRANT_ROLE_TO_USER"('<your_package>.roles::User', '<SCN user name>')
    Example:
    CALL "HCP"."HCP_GRANT_ROLE_TO_USER"('XXXtrial.newhana.shinesp8.roles::User', 'XXX')
    xxx will be your user.
    else run call "HCP"."HCP_SYNCHRONIZE_ROLES" and again try .
    check out other calls
    SAP HANA Cloud Platform
    Regards
    Arun

Maybe you are looking for

  • Question about table T001P - in HR master data

    Hello, I am making a test to create a TRIP (travel expenses). I have a link between the personnel number and the User ID (Communication type 0105 0001). However, when entering the travel expenses via transaction TRIP I get following message: "No entr

  • Images not linking from .swf within Dreamweaver

    I am hoping someone can help...it's probably an easy fix. I had this simialar probelm of my .swf being too large (http://forums.adobe.com/message/3705787#3705787) So I went and linked all of the images. I am placing the flash catalyst .swf into dream

  • Pinterest is not loading

    My pinterest is not loading im using a macbook air. I already tried cleaning erasing all my history and cookies. My pinterest works in my other browsers just not in firefox. hope you can help me.

  • Is there a recommended tutorial for editing multiple track regions?

    I've been used to DP where you define a region of time on the sequence, select all the tracks you want to affect, then proceed to do any number of things with those tracks..like, maybe nudge them one way or another to line up a punch in more precisel

  • How do I Password-Protect a folder

    I have a folder in my Documents area that I would like to password protect. Can someone give a little guidance how I can encrypt it so no-one but I can access it?