DD_GET_NAMETAB with cds-views

hi ,
when using DD_GET_NAMETAB with a cds- view we get a column (first one) with name .NODE1 which refers to field MANDT (if ist a client-dependant view) or refers to der se11 corresponding name.
just wondering if this is a bug or a features.
because using a cds structure for generating field-catalog for an alv this "not wanted column" is on the screen.
any ideas, thanks a lot
oliver

as far as i see when using the from cds generated se11 structure the routine works corret, when using the cds-name the routine has this addinitioal field which refers to the se11 structure name. also it return as ddobjtype ?????, with the generated se11-name it returns the type VIEW.
maybe as cds-views are quite new there are still some small problems.
this is line one when i get fieldlist on the cds name
ZVSD_KNVP_RADIAC_VIEW          .NODE1                            0001 000000                                                               ZVSD_KNVP_01                   000000 000000 000000 000000 NODE       z MANDT
-> before mandt you see inttype z which is not really defined in the domain value set....
zvsd_knvp_01 is the se11 technical name zvsd_Knvp_radiac_view is the cds name....

Similar Messages

  • 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

  • Union in CDS View with different columns

    Hello,
    I have two entities E1 {a: Integer; b: Integer} and E2 {a: Integer; c: Integer} and I want to build a CDS view which does a union on both like:
    SELECT a, b, null as c FROM E1
    UNION SELECT a, null as b, c  FROM E2
    I have written the following:
    view UnionView as select from E1 {a, b, null as c} union select from E2 {a, null as b, c}
    Now I get the error message: Feature is not supported
    Has anybody an idea, how to model this with a CDS view? With a graphical calculation view, this is possible, but I want to build it as a CDS view.
    Regards,
    Michael

    What revision is your system on?  I show that UNION was new syntax in SPS 09.
    http://help.sap.com/hana/SAP_HANA_Core_Data_Services_CDS_Reference_en.pdf
    I tried the following in my system and it worked just fine:
    namespace playground;
    @Schema: 'PLAYGROUND'
    context unionDemo {
        entity E1 {
      key a : Integer;
      b : String(20);
      c : LocalDate;
    entity E2 {
      key x : String(20);
      y : LocalDate;
      z : Integer;
    view V as
      select from E1 { a, b, c}
      union
      select from E2 { z, x, y};

  • Using HANA SQL Functions in select list of CDS Views

    Dear Expert,
    Kindly please let me know if we can use the HANA SQL Function (Ex: ADD_DAYS, SECONDS_BETWEEN) in the select list of CDS Views?
    If I create a CDS like below I get error that timestamp is not supported.
    For Example:
    @AbapCatalog.sqlViewName: 'ZMR_H_CA'
    @EndUserText.label: 'CAG A'
    define view viewname
    with parameters start_ts:abap.dec( 15, 0 ) , end_ts:abap.dec( 15, 0 )
    as select from table {
    key resource_key,
    TO_TIMESTAMP(begtstmp) as start_tmp,
    TO_TIMESTAMP(begtstmp) as end_tmp
    where
    (begtstmp > $parameters.start_ts or endtstmp > $parameters.start_ts )
    and
    (begtstmp < $parameters.end_ts or endtstmp < $parameters.end_ts )
    Thanks,
    Giri

    Hi Giri,
    the list of provided features can be found in the ABAP Language Documentation (F1 in the CDS View).
    As CDS in ABAP is abstracted from the database layer, the database features are not directly accessible. That means, you cannot use any HANA or MaxDB feature available. So the answer to your question is no. The reason for this is, that ABAP CDS views can be created on all SAP-supported databases, hence, we can only provide those features, supported by all databases.
    Having said this, there are some exception, e.g. the CDS views with input parameters, which are not supported by all databases. In these cases, you'd have to additionally use the utility class CL_ABAP_DBFEATURES (see http://scn.sap.com/community/abap/blog/2014/10/10/abap-news-for-740-sp08--abap-core-data-services-cds) for more details.
    Best,
      Jasmin

  • 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';

  • Not able to use CONCAT in CDS View

    Hello,
    My requirement is to prepare a field by concatenating 'PR' in front of the field and use it in a CDS view.
    I am getting the below error while doing it.
    Is the issue with my HANA version or the code is wrong.

    Dear Abhishek,
    which Version of the ABAP stack do you have?
    The CDS function concat is only supported starting with Netweaver 740 SP08.
    Best Regards, Thomas

  • 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

  • Error in CDS View

    In my program I am fetching a certain type of inbound IDOC which in 53 status and updating my custom table, for which I have written a select query which executes perfectly but gives me an error while executing as a DDL source.
    Select Query in Program: -
    DDL Source: -
    Error:- Preceding INT2 field cannot be a key field.
    Even though I haven't declare INT2 field as a key field, the view which is being created (after commenting field sdata) is considering that. Please help me fix this issue.

    Hello Christian,
    Thanks for you inputs but the issue persists.
    It worked for you because it was a single table in the example, but as mentioned in your second response " the key fields of the database view are derived implicitly from the key fields of the basis tables and the join conditions. If this is not possible, all fields of the database view are key fields." This is what exactly happening to my CDS View, all the fields are becoming key fields though I am joining to tables with their key fields.
    Key fields in each of the tables: -
    EDID4
    DOCNUM--->Used to join
    COUNTER
    SEGNUM
    EDIDS
    DOCNUM--->Used to join
    LOGDAT
    LOGTIM
    COUNTR(status)
    EDIDC
    DOCNUM--->Used to join
    Thanks
    Rajit

  • Query on CDS Views and AMDPs

    Hello,
    I have few basic questions on CDS views and AMDPs:
    1. How do we identify the potential candidates in existing code where CDS views or AMDPs can/should be used for code-push down? Are there any recommendations?
    2. Should CDS views or AMDPs be used only for cases where we have data intensive calculations or they can be used as alternative to performance optimization techniques like to replace scenarios where multiple SELECTs or JOINs are used etc.?
    3. A CDS view internally can also contains a SELECT statement with JOINs. How does this help improve performance? I can just write the same SELECT in a CDS view and it will improve performance because the processing is at DB level? Is that a valid argument?
    Best Regards,
    Mohit

    Dear Mohit,
    as mentioned by Thomas: "There is no difference in performance between Open SQL and CDS views". The decision whether you want to use a CDS views instead of Open SQL is mainly based upon the question how you want to structure your coding. For instance, if a specific select appears multiple times in your coding you may decide to wrap it into a class-method and then call this class-method instead. Then in your coding there would be only a single instance of this select. Another option would be to wrap this select into a CDS-view and then select from this view instead of calling the class-method. The single instance of your select would then be stored in the CDS-view. If it comes to testing the view might have some additional advantages, e.g. you may use SE16 to browse its data. All this is not related to performance.
    Regards, Christian

  • TS1381 My left arrow does not work on my macbook pro(model A1226).  I have reset nvram, performed a safe boot, pulled the cache to desktop, replaced .globalpreference.plist, test all other keys with keyboard view (all others work)  - HELP!!

    My left arrow does not work on my macbook pro(model A1226).
    I have reset nvram, performed a safe boot, pulled the cache to desktop, replaced .globalpreference.plist, & tested all other keys with "keyboard viewer" (all other keys work except for the arrow). 
    In addition, I have gone thru all the recommended checks with universal access and have booted from snow leopard dvd and the left arrow still does not work. 
    I have tried using the left arrow key in all of applications I use such as: excel, ms word, address book, calendar, iphoto, terminal, & highlighting an icon and using the arrows to move to another selected icon.
    Here is the kicker!  In addition, I purchased a logitech solar bluetooth keyboard and the arrows work fine with my ipad but do not work when paired with the macbook pro. All other keys work fine on the macbook pro using the bluetooth keyboard.
    I believe this says that the problem is not in my macbook pro keyboard. So where can it be?
    Can anyone think of any other rabbit holes I can search?
    thanks and regards
    vats3

    I would also like to add that I've reverted the two cd drive and hard drive mods I did and the laptop is back to factory hardware and there is 0 corrosion or mold visible.

  • [SOLVED] Lousy fonts with .chm viewer for Linux

    I installed the .chm file viewer HelpExplorer 3.0 in both Windows XP and Arch Linux (chm = compiled HTML help file).  In Windows XP, with default fonts installed, the fonts in text read with this viewer appear crisp, sharp and anti-aliased.  In Arch with KDE 3.5.7, on the other hand, the fonts appear fuzzy, grainy and don't seem to be anti-aliased, in contrast with their appearance in all other apps (except for a few such as Dillo) which render text good-looking, sharp and anti-aliased.
    HelpExplorer for Linux was provided as a tarball that included a precompiled 'helpexplorer' binary.  The program doesn't seem to allow for customizing font settings.
    The following fonts are installed in Arch (in /usr/share/fonts/):
    ttf-bitstream-vera-1.10-5 is installed by default
    gsfonts 8.11-4 is installed by default
    PostScript Type 1 fonts installed: Century Schoolbook, Nimbus, URW Bookman, URW Gothic, URW Palladio
    ttf-ms-fonts-2.0-1 (Microsoft TTF: Andale Mono, Arial, Comic, Courier, Georgia, Impact, Tahoma, Times New Roman, Trebuchet)
    font-bh-ttf-1.0.0-3 (Luxi BH)
    xorg-fonts-100dpi-1.0.1-1 (courier, helvetica, lucida, new century, times)
    The "Files" section of my xorg.conf looks as follows:
    Section "Files"
    RgbPath "/usr/share/X11/rgb"
    ModulePath "/usr/lib/xorg/modules"
    FontPath "/usr/share/fonts/misc:unscaled"
    FontPath "/usr/share/fonts/misc"
    FontPath "/usr/share/fonts/75dpi:unscaled"
    FontPath "/usr/share/fonts/75dpi"
    FontPath "/usr/share/fonts/100dpi:unscaled"
    FontPath "/usr/share/fonts/100dpi"
    FontPath "/usr/share/fonts/PEX"
    # Additional fonts: Locale, Gimp, TTF...
    FontPath "/usr/share/fonts/cyrillic"
    # FontPath "/usr/share/lib/X11/fonts/latin2/75dpi"
    # FontPath "/usr/share/lib/X11/fonts/latin2/100dpi"
    # True type and type1 fonts are also handled via xftlib, see /etc/X11/XftConfig!
    FontPath "/usr/share/fonts/Type1"
    FontPath "/usr/share/fonts/ttf/western"
    FontPath "/usr/share/fonts/ttf/decoratives"
    FontPath "/usr/share/fonts/truetype"
    FontPath "/usr/share/fonts/truetype/openoffice"
    FontPath "/usr/share/fonts/truetype/ttf-bitstream-vera"
    FontPath "/usr/share/fonts/latex-ttf-fonts"
    FontPath "/usr/share/fonts/defoma/CID"
    FontPath "/usr/share/fonts/defoma/TrueType"
    EndSection
    I've attached a screenshot of some text displayed in the HelpExplorer reader in Arch (the font is Times New Roman): http://img216.imageshack.us/my.php?imag … ot1zh9.png
    [img=http://img216.imageshack.us/img216/8401/snapshot1zh9.th.png]
    What do I need to do to improve the font appearance in this program in Linux?
    Last edited by RobF (2007-10-02 18:06:46)

    I found a solution of sorts by installing and running the Windows version of HelpExplorer in Wine or Crossover.  There is still very little control over fonts but when I enlarge the default font (with 2x CTRL-+) I do get a nice-looking anti-aliased Times New Roman font, and this solution would be my preferred way of reading .chm files in Linux (i.e. better than KchmViewer or Xchm).
    Recap of the problem:
    1. The .chm viewer HelpExplorer Viewer 3.0 when installed in Windows XP renders fonts crisp and clear and anti-aliased.
    2. The Linux version of HelpExplorer Viewer 3.0 (delivered as a precompiled executable in a tarball) doesn't render fonts antialiased, regardless of what I tried, and they look grainy and unattractive.
    3. The Windows version of HelpExplorer Viewer 3.0 when installed and run in Arch in Wine or Crossover does render the default font they offer (looks like Times New Roman) fairly crisp and clear and anti-aliased, at least at the enlarged setting.
    Can someone explain to me what might be going on?  Why is it that the Linux version cannot render fonts anti-aliased when the Windows version running in the emulator in Linux can?  Is there something that I have to change in my fonts config, fonts location, symlinks or path to get the anti-aliased fonts to work in HelpExplorer in Linux?
    Robert

  • Master-detail with dynamic view object

    How can you create a view link with a view object that is dynamic? I have created a master-detail relationship on a UIX page. I change the master view object at runtime using a view definition and SQL and then I bind the view object to an iterator on a UIX page. I need the new dynamic view object to maintain the link between the detail view object. Is this possible?
    The reason why I have to change the view object at runtime is because I am implementing a search module and the tables in the from clause can be modified at runtime so I need to have a dynamic view object.
    Thanks,
    Sanjay

    After playing around with ViewObjectImpl's setQuery() method some more I found out that this solution might not work for me due to the following reason: when the user tries to sort a column in the result table, the original contents of the view object get executed instead of the run time query.
    <p>
    I would like to go back to my original solution that included creating a view definition based on the runtime query and then creating a view object from that which I bind to the RowSetIterator. The missing piece to the master-detail functionality is with the detail Iterator being in sync with the master. I have tried the following but I get a ClassCastException <p>
    DCIteratorBinding detailBinding = ctx.getBindingContainer().findIteratorBinding("DetailIterator");
    detailBinding.getViewObject().<b>setMasterRowSetIterator</b>(masterBinding.getRowSetIterator());
    <p>
    here is the relevant stack trace:
    java.lang.ClassCastException
    at oracle.jbo.client.remote.ViewUsageImpl.getImplObject(ViewUsageImpl.java:1829)
    at oracle.jbo.client.remote.RowSetImpl.setMasterRowSetIterator(RowSetImpl.java:512)
    at oracle.jbo.client.remote.ViewUsageImpl.setMasterRowSetIterator(ViewUsageImpl.java:1147)
    at oracle.jbo.common.ws.WSViewObjectImpl.setMasterRowSetIterator(WSViewObjectImpl.java:1005)

  • ICal bug with month view

    I primarily use week view on iCal, but sometimes i switch to month view for a larger perspective. Often, i use month view to check for any leftover events from the previous month in case i forgot to delete one or two.
    I just found a bug concerning this. If i click on "month" today, it'll take me to the month view for june 2011, and from there i can navigate forwards or backwards. However, may 2011 seems to have a bug. If i click on < from june, it does nothing; if i click again, it takes me to april 2011. Similarly, if i click on > from april it does nothing and if i click again it takes me to june.
    It doesn't end there. The june/may thing happens only when the selected day (the one shaded light grey on the month and week views and bright blue on the little month tab on the left) is after 04 june. If a day from the first week of june (i have my weeks start on sunday) is selected, the < button does take me to may, but several events which i deleted a long time ago are showing up.
    Now, i have an event set for today (04 june). Since the first four days of june are in the same week as the last three of may, the month view for may shows these four days, as any normal calendar app would.
    If i use the month tab to the left to navigate, i can access may 2011 by selecting any day on that month. However, iCal's behaviour depends on which day was selected previously. If the previous day was in april 2011 or earlier, iCal will show the month of may completely empty, which is great because i have no leftover appointments from may; however, the box for 04 june is also empty, which it shouldn't be. If the previous day was in june 2011, it'll show may with a repeating event on every sunday except the first, which is completely absurd, since i have deleted this event (and why isn't it showing on the first sunday in may?); the box for 04 june, however, will correctly show the event i have set for this day. If the previous day was in july 2011 or later, it'll show may with the repeating event on all sundays (including the first one) and it won't show anything on the box for 04 june.
    Obviously, there is a bug with may 2011.
    In case it helps, i do have a repeating event set to all sundays until the end of existence, but i have deleted all the entries from may and previously, since they have obviously already happened. Also, i had many other repeating events set to happen on different weekdays; these are to repeat themselves weekly until about halfway through june, and they started on april or may (can't remember right now). Like the sunday one, i have deleted all the entries from may because they have already taken place. Strangely (and thankfully), none of these appear when i visit may from june or later, as does the sunday event.
    Any help would be greatly appreciated. Or am i forever stuck with week view, which has so far proven to be bug-free?
    (I did a search on Google and another on the Apple forums for this issue but could find nothing, so i decided to ask the question myself. I apologise if somebody has already asked this question and i just couldn't find it.)

    Greetings,
    I have a vague recollection of someone else with this issue but haven't experienced it myself nor encountered it recently.
    Troubleshooting:
    1.) First make an iCal backup: http://support.apple.com/kb/HT2966.
    2.) Remove the following to the trash and restart your computer:
    Home > Library > Caches > com.apple.ical and / or "ical"
    Home > Library > Calendars > Calendar Cache, Cache, Cache 1, 2, 3, etc. (Do not remove Sync Cache or Theme Cache)
    Home > Library > Preferences > com.apple.ical (There may be more than one of these. Remove them all.)
    __NOTE: Removing these files will remove any shared (CalDAV) calendars you may have access to. You will have to re-add those calendars to iCal > Preferences > Accounts.
    Once the computer is back up and running open iCal and test.
    Hope that helps!

  • How to add SharePoint 2013 Promoted link list view web part in page programatically with Tiles view using CSOM.

    How to add SharePoint 2013 Promoted link list view web part in page programatically with Tiles view using CSOM. I found that it can be
    done by using XsltListViewWebPart class but how can I use this one by using shraepoint client api.
    shiv

    Nice, can you point me to the solution please ?
    I'm  trying to do this but I get an error : 
    Web Part Error: Cannot complete this action. Please try again. Correlation ID: blablabla
    StackTrace:    at Microsoft.SharePoint.SPViewCollection.EnsureViewSchema(Boolean fullBlownSchema, Boolean bNeedInitallViews)     at Microsoft.SharePoint.SPList.GetView(Guid viewGuid)   
    All help really appreciated.

  • Problem with a view in XK01 transaction

    Hi All,
    I am working on upload conversion for Vendor Master. While doing conversion, i am getting a problem with a Contact person view in XK01 transaction. In contact person view the telephone field column sometimes allowing to add data ,sometimes it's not allowing data which results an error in conversion program saying that the telephone field in not an input field. I don't know why the view is showing the telephone field like that.
    Can any one suggest the solution for this problem. I know this is configuration problem with a view but i posted in ABAP forums.
    Thanks

    Hi Ben,
    I assume that you are writing a BDC program to upload contact person information. If so, you are trying to populate a table control here. Please check to see if you are calculating the index to assign values to the correct rows.
    if you are calculating index in your program then i think it should be configuration problem as you said.
    Thanks,
    Ganesh.

Maybe you are looking for

  • Cannot download adobe reader xi and the update of flash player , my computer has the x adobe reader

    cannot download xi adobe reader and the updated flash player , my computer has the x adobe reader - please help

  • Movie files are not recognized

    MacBook is from late 2007 OS X 10.5.8. Last December, I had to change harddrive and after the new harddrive, movies (from DVD´s or attachment with .mvw format) are not recognized. Quick Time Player and DVD Player are installed. YouTube, streaming mov

  • Can I use the cerficate on another plugin

    Hi I was having some problems with my plugin i.e. it wasn't appearing on my deployment pc. I copied the code from that project to another project. This was a slow and painful process but it worked at the end of the day. I got the new plugin to displa

  • Can only run Web form 1 time then error

    I have a link to a form in my portal and the first time I open the form it works great. Then I click BACK and try again and it gives me the Error= (FRM-92050: Failed to connect to the Server:/forms90/I90servlet:-1). Why is it doing that? Also, How do

  • Black screen when I use WMP in full screen mode

    Hi. When i watch TV on the windows media player so i have problem. If I switch on full screen so there is just black screen but i can hear sounds. I've got my laptop for 4 months but everything was ok. This problem started just now maybe 2 days ago.