External views with HANA as secundary database

Hi,
internally we have since some time a discussion on whether one can make external views in ABAP when HANA is your secondary database. According to the documentation it is not possible, but apparently the HANA-versions of Financial transactions do use them. These transactions are SAP standard transactions. It is difficult to convince our users/developers that this is not possible, when they see it is used in SAP standard ...
We do not get any clear answer to this problem. Also not from our consultants. The only remaining possibility seems to sketch a possible solution and ask you all some questions and make some statements to see if I am right.
I think this little sketch shows the landscape you need to make all this possible:
One cannot create an external view in Ecipse (ABAP in …) when you have HANA as a secondary database.
External views can only be created using AIE, not in SE11 in the GUI.
When these external views are created – using the described process – these views cannot even be displayed in the AIE when having HANA as a secondary database.
This is the message we get:
If you want to create an external view, you need a ‘landscape’ where HANA is you primary database. This means a supplementary R/3-ABAP and a supplementary HANA database, where all necessary tables do exist.
You have to develop you HANA artefacts (attribute views, analytical views, calculation views, …) in this separate landscape.
If you want to call them using external views, you have to do your developments here!
Based on these views you create external views in the AIE on this separate landscape. This way they exist in the ABAP dictionary in this system.
The name of the HANA-artefact and the external view in the ABAP dictionary have to be identical.
You copy the HANA artefacts to you first HANA (where you use it as secondary database). Copy, transport, … whatever.
You copy/transport your external view to your first ABAP dictionary.
Now you can use it in a SELECT with CONNECTION(“to_2ndary_hana”).
Is this correct? Or do I still miss something?
Thanks for any reaction.
Regard.
Kris
Message was edited by: Jens Weiler

Hi Kris,
except for "The name of the HANA-artefact and the external view in the ABAP dictionary have to be identical" all you points above are valid.
Let me say a couple of words about the external views, especially those delivered by SAP.
Assume you have a development system landscape like DEH (development system with HANA as primary DB), DEO (development system with another DB), QCS (quality system, doesn't matter which DB but receiving the consolidated transports of DEH and DEO), PDS (productive system with non-HANA as primary DB and a secondary DB connection to HANA).
In this heterogeneous landscape you can create HANA content in DEH (respectively in the HANA underlying DEH) and external views via the ABAP Development Tools. You can transport the HANA content (e.g. via the HANA Transport Container) as well as the external views (and database procedure proxies) to the QCS system. The dictionary content, i.e. external views and database procedure proxies are active - otherwise the import/activation will fail - but you cannot consume them. Consumption of external views in the QCS system will lead to runtime exceptions as the underlying HANA artefacts are not accessible. However, since all the dictionary content exists, i.e. external views, database procedures, and the HANA transport container and all of them are active, you can further transport them to the productive system PDS. Once the external view is available in PDS and the HANA artefacts are available in the "side-car HANA" (assuming for simplicity you just use the connection to the DEH HANA), you can consume the external view respectively the underlying HANA view via OpenSQL in conjunction with the CONNECTION statement.
The described procedure explains how SAP has been able to deliver external views. In our system landscape, we have development systems on HANA as well as systems using non-HANA as primary database - how exactly depends on the product etc. So once the colleagues developed their HANA views and created the external views on such a development system on HANA, we can deliver external views. You can consume these external views:
in a system using HANA as primary database (assuming of course you have also received the correct HANA content and everything has been activated properly)
in a system using HANA as secondary database and using the CONNECTION statement in Open SQL
In scenario 1. you are able to create external views yourself via the ABAP Development Tools, while in the second scenario you can neither view nor maintain the external view.
For database procedure proxies, there is a method to create the DB procedure proxies programatically (see http://scn.sap.com/thread/3498161).
Hope this clarifies your questions,
Cheers,
  Jasmin

Similar Messages

  • Which is better External View OR Database procedure Proxy ?

    Hi Jasmin and Kilian,
    Creation of External View in HANA and consume in ABAP.
    Which is better External View OR Database procedure Proxy.
    Regards,
    Pravin
    Message was edited by: Jens Weiler
    Branched from http://scn.sap.com/thread/3498161

    Hi Pravin,
    that depends on your application logic and use case. There is no general recommendation for one or the other.
    If, for instance, you have input parameters, you would go for a DB procedure proxy, since the external view does not allow to pass input parameters from the ABAP to the HANA column view.
    On the other hand, if you would like to consume the result in an ALV with integrated data access (the "next generation ALV"), you would rather go for an external view... so - like the answer to so many other questions - it depends... .
    Cheers,
      Jasmin

  • Are SAP HANA implementations on HANA as a Database or HANA as a Modeling tool

    Hi all,
    I've a general question today about the HANA as a product.
    I want to know if most of the SAP HANA implementations that have been carried out in the last 3 or 4 years, were they mostly on HANA as a InMemory Database product or was it implemented as a Modelling tool. What I understand is most of the implementations on HANA have been done with HANA as a database replacing the customer's existing databases mostly Oracle or SQL Server. There are lots of case studies available on this situation. But I am not able to find any information on the clients who have chosen HANA as a Modelling tool along with HANA as a database.
    In other words I am interested in knowing a rough estimate/number of customers who have implemented SAP HANA Modelling as a tool. Are there any success factors or case studies available giving facts and figures as to how customers have benefited by modelling on HANA. Assuming that the customer/s who have implemented HANA Modelling were on SAP BW 7.0 earlier I want to know how did they benefit by going for HANA Modelling using HANA Studio and why did they move from BW Modelling to HANA Modelling and what were the benefits they have reaped in.
    How is it different from modelling data in BW DSOs and Cubes and MultiProviders,and modelling the same in Attribute Views, Analytic Views, Calculation views and native HANA SQL.
    Please explain.
    Thank you.
    Regards,
    Pavan.

    A) hana is a database, which combines memory and technology.
    A common hana server has at leaste 128gb ram. why? because the tables (or columns of that tables) are loaded in memory and are consumed from there. Hana uses compresion (1:11 ratio) and use columnar tables, because it speeds up the data reading from the database.
    Hana have 3 parts of storage:
    1) memory (explained above)
    2) data: the disk where data is recorded
    3) log: the disk where the last transactions are logged and it provides with recovery fails
    B) you can have diferents scenearios (I will explain some of them):
    BW on hana: it speeds up the data access due to hana technology
    suite on hana: ERP and BW on hana
    Hana has your DW database: you can use hana like a common database and benefits your organization with the speed of hana.
    hope it helps.
    this image can show you the diferents scenarios
    http://esj.com/articles/2014/07/25/~/media/ECG/VirtualizationReview/Images/2014/07/0714vrm_hana.png

  • SQL "View" with TS?

    Hello,
    is it possible to handel a SQL "View" with TestStand or the Database Viewer?
    I can see my tables but not the view.
    greetings
    schwede

    Thankyou,
    this is the first thing, the second is that i can`t write to the database.
    If i use a table everything is ok. When i took the view i get an error-message:
    -2146825037 The recordset don`t support updating. This can be a problem of the constriction of provider or lock type....
    Can you help me with this, too?
    greetings
    schwede

  • How do I view an external display with my macbook pro closed?

    How do I view an external display with my macbook pro closed?  I am using  a wireless keyboard and trackpad, and I would like to use a larger (Dell) monitor with my Macbook Pro closed.

    Here are the rules for Clamshell mode:
    http://support.apple.com/kb/HT3131

  • Hierarchy on HANA Calculation View with Optional Input Parameters Fails

    Hi,
    Has anyone succeeded in building a hierarchy on top of a calculation view with optional input parameters, where an input parameter is not filled?
    The original requirement came from the wish to create a parent child hierarchy on a calculation view that was copied into the customer space from a HANA Live Financial Statement query view, but I have found the following when creating a simple level hierarchy on a calculation view that consumes one table. The Calculation View has one Input Parameter where the 'mandatory' box is unchecked.
    Calculation view reads ECC table FAGLFLEXT
    Simple level based hierarchy on fields PRCTR, RACCT and SEGMENT
    Input parameter is used as a filter for PRCTR with logic ("EMPTY" = '$$P_PROFITCTR$$' or "PRCTR" = '$$P_PROFITCTR$$')
    When I run the view I see the following behaviour in HANA Studio and Analysis for Excel
    Before building the hierarchy I could run the view with or without the Input Parameter
    After building the hierarchy I can run the view with the Input Parameter filled, but it fails when the Input Parameter is not filled.
    Error message is "error: search table error:  [2426] missing placeholder; missing value for mandatory parameter P_PROFITCTR"
    P_PROFITCTR is not a mandatory parameter, but the selection for the hierarchy view thinks it should be. I don't find any notes around this issue, so I don't think it's version related, however the version I have used for this test is 1.00.70.
    It's a shame we can't currently build the hierarchy as the parent child relationship is provided in HANA Live view NewGLFinancialStatementQuery.
    Thanks,
    Ken

    Hi Ken,
    We have been facing similar issue. We have even tried to set default value and as optional parameter. View still fails to create hierarchy (we are not using HANA live). As mentioned on page 97 of HANA modelling guide input parameter is mandatory from engine point of view. Hierarchy is generated as column view during the initial activation of calculation view and therefore expect a value by caller.
    This seems to be a product error. Some one from HANA development team should explain this issue in detail. I would expect someone like Thomas Jung reply to us.
    At the moment, we cant use input parameter for date prompt which gives us calendar popup feature for date selection. Hierarchies just don't work with input parameter. We are missing something.
    Regards
    Angad

  • How to select value from database view with * in wher clause

    Hi ,
      I ahve a database view with some fields.
    Now my requirement is to serach a single row on the basis of process type.
    Process type can have values like ZBA,ZBC,ZBD,ZBE or similarly anything starting with ZB.
    Now i know that starting two letters will be ZB , but dont knwo the last letter.
    So how should i use select query for the same?
    Should i use like operator for the same?
    regards
    PG

    hi,
    u can use character '%'.sample code like this
    SELECT reltype
                 instid_a
                 catid_a
                 instid_b
                 FROM /dbm/ord_docflow
                 INTO TABLE it_link
                 FOR ALL ENTRIES IN it_pnwtyh
                 WHERE  instid_a  =  it_pnwtyh-instid_a AND
                 instid_b  LIKE 'QMSM%'  AND
                 typeid_a  = 'BUS2400'  AND
                 typeid_b  = 'BUS2400' AND
                 catid_a   = 'BO' AND
                 catid_b   = 'BO' AND
                 reltype   = 'VONA'.
    this is similar to using* while we fetch values from table.in the above code only i no QMSM rest values not sure,so used QMSM%

  • How do i get the slideshow to display on my external monitor in extended view with powerpoint?

    i have my T500 (windows 7) connected to a large external monitor with extended view.  when i run powerpoint it displays the slideshow on my laptap screen instead of the external view.  how can i have the presenter view show on my laptop, and the slideshow show on the external monitor/projector?
    thanks!

    You can do it that way, (Clone) but everything you do on your laptop will also be displayed on the monitor.  
    Assuming you would like the display on the external and freedom to navigate on your laptop without broadcasting, you would need to adjust your slide show settings in PowerPoint.
    To use this procedure:
    In PowerPoint, On the Slide Show menu, click Set Up Show.
    Under Multiple monitors > Display slide show on drop down menu:   select the monitor you want the slide show to appear on.

  • Create database view with Java Dictionary

    Hi,
    is there a possibility to create and deploy a database view with the
    Java Dictionary (in SAP NetWeaver Development Studio)?
    It seems as if you can only create and deploy database tables.

    or else, with prior versions, use somethinig like this...
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7094c365-e8c4-2910-62b6-93712dd555d4

  • Creating Entitybeans from Database-Views with Sun Applicationserver 8.1

    Hello,
    I�m implementing a databaseapplication with J2EE and Sun AppServer 8.1. Now I actually don�t want to use the database-tables directly. Instead I want to use views, because then the structure of the underlying table doesn�t matter. Only the view needs to be modified.
    Is it possible to use Entitybeans with views? Or is it only possible to use EJBs with tables?
    If it is possible please be so kind to give an example or explain how. I tried the capture-schema - Approach but there are no views in the capturefile. Please help!
    Thank you!
    Gregor

    You should be able to use views with EJBs, but as you correctly realized, you need to get them into your dbschema file first. Try specifying the view names as parameters to the table arguments in the capture schema tool, or try the UI for schema capture in NetBeans or Studio.

  • Hi can NE one tell me hwo to open an external file with it's defualt viewer

    hi can NE one tell me hwo to open an external file with it's defualt viewer
    e.g. open a .mdb file in access or a .txt file in notepad
    thnx
    help would be much apreciated

    hello can NE one help me?????

  • Migrating Backend Database for BW and ECC with HANA

    Hi Guys,
    I have been going through the blogs and its fantastic information but i couldnt find anything related to " how to migrate BW or ECC backend database with HANA DB. As per my information the HANA has its own DB which is called "IMDB", so if we have oracle or SQL server at the back end for BW or ECC , how can we migrate to HANA.
    Plus are there any tools that are available for migration.
    Thanks In Advance.
    Sheikh Hassan Ayub

    First, let's be clear:
    1/ Accordingly to announced SAP plans the ramp-up (restricted shipment) of BW-on-HANA installations will start on the 7th of November 2011.
    2/ There are no firm plans for ECC-on-HANA availability yet - so this is out of scope for current discussion.
    "IMDB" is the name from the past. Now HANA's database is called "HANA database" but you will still find references to "SAP In-memory DB" in documentation etc.
    Migration of BW from let's say Oracle to HANA db will be following standard OS/DB migration process - similar to the way you would migrate Oracle DB to DB2: export of the source and then import to the target server. Exactly the same tools.
    Regards,
    -Vitaliy

  • SAP Kernel update with HANA DATABASE

    Dear experts,
    I am planning to update the kernel  with HANA database. It is my first time  that I apply a kernel with HANA  and for that reason I want to be sure everything is properly planned. I have updated kernel with Oracle databases and my biggest doubt is if I have to do something in the database, what would it be?
    I have looking for any note that help me  with a step by step but I couldn't find it.   In that order I will ask you based on your own experiences.
    Current  Kernel is 742 PL28, I am planning to update to PL 101.
    I appreciate any comments or suggestions,
    Best regards,
    DanielO

    Dear Reagan,
    As you told, the kernel was applied and I had no issues. I appreciatte  your help.
    Best regards,
    DanielO

  • In sap bw with hana, How exactly the performance is improved ?

    By replacing oracle db with hana , are we installing new processors as well. Or is the performance we get is purely because of columnar storage ?

    Hi Mohd,
    This is a good question. Just replacing the DB or columnar store doesn't help.
    If HANA DB is just a data base on memory then everyone can just add more memory for existing DB or columnar store then most DB already offer columnar store ( Like IBM DB2 Blu Accelerator or MS Sql columnar, etc) 
    It is a combination factor of HANA DB which optimised for both read and write operations along columnar store and data compression. In case of HANA DB sap is trying to push most of the process to database.
    All new BW modeling techniques ( ADSO or New Composite Provider) will work only with  HANA DB.
    General points why BW on HANA is more efficient
    1) No DIM ID in cube
    2) Change log tables can be converted into views ( optional )
    3) DSO Activation Pushed to DB
    4) Transformation Pushed to DB if no ABAP routines.
    5) No need of index for cubes
    6) Aggregations is no more required.
    Thanks,
    Shakthi Raj Natarajan.

  • Questions on CDS Views with input parameters

    Dear Experts,
    1. Can we call a CDS View (or generated database view) with input parameters inside an AMDP? I am looking for something similar to the feature in HANA where we can consume calculation view with filters inside SQL Script?
    2. I understand we can next CDS Views, but how we can next (call) a CDS View with input parameters inside another CDS View?
    Thanks,
    Giri

    Hi Thomas,
    I get the below error that the CDS View's generated table function cannot take field from AMDP.
    I have a requirement to query the CDS View using 2 timestamps (start & end). So, in AMDP I have used the TIME_STAMP and try to pass it to the CDS View
    View code:
    define view Z_Ngi_Cag_A
    with parameters start_ts:abap.dec( 15, 0 ) , end_ts:abap.dec( 15, 0 )
    as select from table {
    resource_key
    where
    (begtstmp > $parameters.start_ts or endtstmp > $parameters.start_ts )
    and
    (begtstmp < $parameters.end_ts or endtstmp < $parameters.end_ts )
    I am calling using the below AMDP:
    DECLARE iv_start_date TIMESTAMP;
    DECLARE iv_end_date TIMESTAMP;
    SELECT CURRENT_TIMESTAMP INTO iv_start_date from dummy;
    SELECT ADD_DAYS(CURRENT_TIMESTAMP, 30) INTO iv_end_date from dummy;
    et_data =      SELECT * FROM ZMR_H_CA ( start_ts => iv_start_date, end_ts =>  iv_end_date );
    What could be wrong ? Is this not supported?
    Thanks,
    Giri

Maybe you are looking for