CDS View: How to define JOIN in hdbdd file?

Maybe I missed something, but how can I define JOINs for a CDS view in a hdbdd file?
I have the following 2 tables and a view. The view claims that there is a syntax error on "left".
I found no examples on how to JOIN in the documentation (only for ABAP).
@Catalog.tableType : #COLUMN  
entity Project {
key ID      : Integer64 not null;
Name        : hana.VARCHAR(64) not null;
Description : hana.VARCHAR(256);
@Catalog.tableType : #COLUMN  
entity Scenario {
key ID      : Integer64 not null;
Name        : hana.VARCHAR(256) not null;
Description : hana.VARCHAR(256);
ProjectID   : Integer64 not null;
view MData as select from Project left join Scenario on Scenario.ProjectID = Project.ID {
  Project.Name as Project,
  Scenario.Name as Scenario

OK, I made some progress, but now I have the following problem:
[1310081] No association with cardinality > 1 allowed in WHERE Clause
  @Catalog.tableType : #COLUMN   
  entity Project {
    key ID      : Integer64 not null;
    Name        : hana.VARCHAR(64) not null;
    Description : hana.VARCHAR(256);
    Scenarios   : association[*] to Scenario on Scenarios.ProjectID = ID;
  @Catalog.tableType : #COLUMN   
  entity Scenario {
    key ID      : Integer64 not null; 
    Name        : hana.VARCHAR(256) not null;
    Description : hana.VARCHAR(256);
    ProjectID   : Integer64 not null;
    Variants    : association[*] to Variant on Variants.ScenarioID = ID;
  @Catalog.tableType : #COLUMN   
  entity Variant {
    key ID      : Integer64 not null;
    Name        : hana.VARCHAR(64); 
    Description : hana.VARCHAR(256);
    ScenarioID  : Integer64 not null;
    TestTypes   : association[*] to TestType on TestTypes.VariantID = ID;
  @Catalog.tableType : #COLUMN   
  entity TestType {
    key ID      : Integer64 not null;
    Name        : hana.VARCHAR(64) not null; 
    Description : hana.VARCHAR(256);
    VariantID   : Integer64 not null;
  view MData as select from Project {
    Project.Name as Project,
    Scenarios.Name as Scenario,
    Scenarios.Variants.Name as Variant
  } where Scenarios.Variants.TestTypes.Name = 'SUT';

Similar Messages

  • How to define mapping from multiple files to Oracle Tables in 9i

    Around 100-200 Flat files are created every 30 minutes and each filename is different - Filename has datetime Stamp as part of the file name apart from the product code as first 12 characters.
    Can anyone guide me in How to define mappings to these files using OWB ?
    What I can do is consolidate all files into one known single file name and map the files to Oracle tables which I don't want to do because I need to reject errorneous files.
    Can anyone provide me some tips on this ?
    Thanks in Advance.
    Sohan.

    As you know, in OWB you need to define the flat file source in a 'static' way (name, location, etc. have to be defined previously), so you cannot deal directly with dinamically generated file names. One solution would be to consolidate them into a single file (which you can define statically in OWB), but prefix every record with the filename. In this way it is easy to understand from which file the rejected records came from. If you are using unix, it is very easy to write a script to do this. Something like this will do:
    awk '{printf "%s,%s\n",FILENAME,$1}' yourfilename >> onefile
    where yourfile is the name of the file you are currently processing, while onefile is the name of the consolidated file. You can run this for all files in your directory by substituting yourfilename with * .
    You can then disregard the file name field in OWB, while processing the rejected records based on the file name prefix by using unix utilities like grep and similar.
    Regards:
    Igor

  • List View: How to force update of *actual* file dates when sort by date?

    List View: How do I force and update of actual file dates when sort by date?
    When I go in, I often see the sort order and dates from 12-15 hours ago!
    not good

    Hi, did you ever get that Windows® Sharing thing worked out?
    On this problem, If it's just that you need the Finder to wake up to the fact that it needs to update the window give a try with Refresh Finder - 1.3...
    http://www.versiontracker.com/dyn/moreinfo/macosx/33066

  • How to define "All Pages" for file handling preferences

    Hi,
         Anybody knows how to define the "Pages" preference under "File Handling" in Preferences by scripting?
         Attached is an screenshot for that option in InDesign CS5 client.
         Thanks in advance

    Hi,
         Anybody knows how to define the "Pages" preference under "File Handling" in Preferences by scripting?
         Attached is an screenshot for that option in InDesign CS5 client.
         Thanks in advance

  • How to define join in physical layer between cube and relational table

    Hi
    I have a aggregated data in essbase cube. I want to supplement the information in the cube with data from relational source.
    I read article http://community.altiusconsulting.com/blogs/altiustechblog/archive/2008/10/24/are-essbase-and-oracle-bi-enterprise-edition-obiee-a-match-made-in-heaven.aspx which describes how to do it.
    From this article I gather that I have to define a complex join between the cube imported from essbase to my relational table in physical layer.
    But when I use Join Manager I am only able to define jooin between tables from relation source but not with the imported cube.
    In My case I am trying to join risk dimension in the cube based on risk_type_code (Gen3 member) with risk_type_code in relation table dt_risk_type.
    How can I create this join?
    Regards
    Dhwaj

    Hi
    This has worked the BI server has joined the member from the oracle database to cube. So Now for risk type id defined in the cube I can view the risk type code and risk type name from the relational db.
    But now if I want to find aggregated risk amount against a risk type id it brings back nothing. If I remove the join in the logical model then I get correct values. Is there a way by which I can combine phsical cube with relational model and still get the aggregated values in the cube?
    I have changed the column risk amount to be sum in place of aggr_external both in logical and phsical model.
    Regards,
    Dhwaj

  • How do I join multiple mp3 files into one mp3 file?

    Hello,
    I have multiple mp3 files that I would like to join into one mp3 file and to use it as an audio book. This explains how to do it, but in iTunes 12, I do not see an option called "Part of a Compilation" option.
    Is there a way to do it in iTunes without installing a new app?
    Thank you.

    Eugene,
    Those instructions, if I read them correctly, are about how to collect several MP3s into a single audiobook.  They will not create a single continuous MP3.
    iTunes does not have the ability to combine multiple MP3s into a single MP3.  The best it can do is if you burn them to audio CD and then rip back with "Join Tracks" enabled.  The better way is to use an audio editor such as Audacity, or a special purpose combing tool such as MP3 Joiner.

  • How can I join 2 .wav files?

    I need to join 2 short .wav files for a web site.
    How do I do it and what do I need.
    thanks for any help.

    WAV can hold audio in both compressed and uncompressed format. [http://en.wikipedia.org/wiki/WAV] The optimal way for joining the files will depend upon the format of the audio format contained in the WAV and the format of the output desired. For general audio I'd go with an audio editor such as Audacity or Amadeus Pro. There are also [scripts for itunes|http://dougscripts.com/itunes/itinfo/jointogether.php] that do this kind of thing, though more restricted in output. If the audio content is mp3 compressed you can use an editor such as MP3 Trimmer to do this without recoding the audio which results in better quality.

  • How do I join multiple mp4 files?

    I have three mp4 files created from a dvd. I'd like to join them into one mp4 file to put on our iPod. Is there a shareware utility to handle this?
    Thanks,
    David

    i use Quicktime Pro. haven't heard of any shareware that can do this yet.

  • How do you join multiple video files?

    I have multiple video files, all encoded with same codec, together so that I have 1 single large file. How do I do it with FCP? Ive tried doing it, but for some reason the final file is twice as large as the sum of the individual files...
    Thanks!!

    When you export an FCP edit, you get one file from many.
    If the individual files are all sequenced on one track, with no gaps between them,
    AND everything is all the same codec, the output file will be approx. the same size
    as the sum of the input files.
    You might be accidentally using a different codec, however. Verify by opening
    a source clip and your export clip in QuickTime Player, and selecting Get Info.
    Compare pixel dimensions, frame rate, etc.

  • How to specify key in CDS view?

    I defined a CDS view based on an entity. When I activate, it says:
    Missing specification of keys for view "sap.ms.data::DB.ApplicationView".
    However, I am at a lost how the specify key in CDS View. The developer guide did not mention anything. If I put a key before one of the attribute:
    Cannot find sub artifact "key" in "Application"
    My CDS view is as follows:
    view ApplicationView as select from Application {
      ApplicationId,
      AccountRef.AccountId,
      DisplayName,
      Version

    I found out how to do it, define the key in the service descriptor as:
    service {
    "sap.ms.data::DB.ApplicationView" as "App" key ("ApplicationId", "AcctId");

  • How to write Join View Adaptor which will pull data from Siebel and OID ?

    Hi Experts,
    I wanted to write web service call where OIF will talk to OVD than OVD will have join adaptor which will pull few data like msisdn from Siebel and view data from oid like given name and generate SAML assertion.
    I wanted to know how to write join adaptor for the same
    Help Appreciated.

    Hi Experts,
    Is anyone has any idea on webservice call to OIF which will call OVD that will have join adaptor connecting siebel and oid ?
    any help is appreciated

  • How to convert a timestamp to date/time in CDS View?

    Dear experts,
    I would like to convert a timestamp to a date and time within a CDS view.
    This is what I tried to do:
    Cast (Cast(<timestamp> as abap.dec(8,0)) as abap.dats) as <date>
    I also thought about first converting the timestamp into a plain numerical character, then using substring and then casting it to abap.dats. Then its giving me an error that says: "dec can't be converted into numc".
    The above written code also throws an error - "function not allowed/ no cast within a cast".
    It is quite nasty not being able to write a cast within a cast - how else am i supposed to achieve a date here?
    I am looking forward to have your answers!
    Thanks and BR
    Anja

    Hi Anja,
    what you try to do is currently not possible, a feature not available in CDS views.
    Yet it surely is a feature, ABAP developers would like to see on the feature request list .
    Cheers,
      Jasmin

  • How to select top one in CDS view ?

    I have tried following logic to select top one in CDS view but its giving error -
    define view Cds_View_First_Reference as select  top one CReferredObject from CDSVIEWCROSSREF

    Hi Ruchi,
    since you posted this question in "ABAP in Eclipse" I assume you are asking about CDS in ABAP. This is important because the CDS features sets in ABAP and (native) HANA are different.
    Be that as it may,, SELECT TOP 1 is neither supported in the CDS implementation in ABAP nor in HANA.
    In ABAP you might consider using the min() or max() function together with the appropriate GROUP BY clause in the CDS view (depending on what you want to achieve), but you can also easily "implement" this in the Open SQL statement which selects from your CDS view.
    Using the additions SELECT SINGLE or UP TO 1 ROWS and an appropriate ORDER BY clause in Open SQL, you can achieve the same as SELECT TOP 1.
    Unfortunately there is currently no possibility to define a view which delivers the TOP 1 which you can again use in another view ("view on view").
    Kind regards
    Chris

  • How to convert maintenance view 'v_t001k_assign' to inner join tables

    Dear friends,
    I found I could not select the fields of view 'v_t001k_assign' using SQL, and I found there are some tables joined together as below:
    T001     MANDT     =     T001K     MANDT
    T001     BUKRS     =     T001K     BUKRS
    T001K     MANDT     =     TASSIGN_MM_T001W     MANDT
    T001K     BWKEY     =     TASSIGN_MM_T001W     BWKEY
    T001W     MANDT     =     TASSIGN_MM_T001W     MANDT
    T001W     WERKS     =     TASSIGN_MM_T001W     WERKS
    T001W_EXT     MANDT     =     TASSIGN_MM_T001W     MANDT
    T001W_EXT     WERKS     =     TASSIGN_MM_T001W     WERKS_EXT
    So how to convert this maintenance view 'v_t001k_assign' to inner join tables for SQL selection?
    Thanks a lot!
    Edited by: Qiwei Yin on May 27, 2009 10:35 AM

    Hi,
    You should use the 'Search help exit' to select the data for yourself from the database. Go into the search help maintenance screen and press F1 on field 'search help exit'; follow the links. There is actually a pretty good documentation.
    Regards, Gerd Rother

  • The option Join CD Tracks under Advanced tab is now greyed out and unavailalbe from downloading audio CDs. How can I fix this?

    the option Join CD Tracks under Advanced tab is now greyed out and unavailalbe from downloading audio CDs. How can I fix this?

    This post is closed. No replies needed

Maybe you are looking for

  • IE and ActiveX solution - Page conversion tool for Flash

    To all Web Developers, We have written a handy web based tool to automatically convert your web pages so they no longer display "Click To Activate And Use This Control" over Flash content. Please visit http://www.microsoft-activex-solutions.co.uk We

  • How to call AppServer/EM by name and NOT by local IP? Installation option?

    After installation of Soa Suite I can launch my Soa Suite Launch Console ONLY by the current local IP e.g. http://111.222.123.123 resp. http://111.222.123.123/em This is a problem if I get a new dynamic IP from a DHCP server after reboot. How can I t

  • Keyboard Characters in Other Languages

    Hi, Because I'm starting to forget my first language, Spanish, I decided to turn my system into Spanish. Now, the only problem I have is that a few characters that do appear in English, don't appear in the Spanish layout, such as the "@" sign (I had

  • Mouse double click event

    hi im really new to programming, i have a jlist populated from ms-access,i just want to capture a event only when the item is double clicked. can anybody please get me the code for capturing the data only when the mouse is double clicked. -thanks

  • Peculiar thing happened in SCCM in our environment!

    Hi , In our environment , we are using SCOM 2012 for monitoring and we from Wintel team ,one person xyz has the access to login to SCOM servers .He usually logs in to the SCOM server for adding and removing the servers in the monitoring database. Las