Skip to Content

CDS - HANA Studio - Eclipse neon feature - Open Data preview View Parameters

Hi all,

probably someone could help me on this matter.

I can't run Open Preview Data for View with Parameters from HANA Studio.

Message is: Preview data is not available for view with parameters.

From ABAP workbench I tested

IF abap_true = cl_abap_dbfeatures=>use_features( requested_features = VALUE #( ( cl_abap_dbfeatures=>views_with_parameters ) ) ).

and is True.

Did I miss any packages?

Thanks a lot

Add comment
10|10000 characters needed characters exceeded

  • Hi Rob,

    This is indeed strange. I tried to reproduce the issue with a 750 SP02 system with ADT 2.68.6 but it seemed to work fine for me. Can you check if this is the only view that is showing the error or if all view with parameters are the having the same error?

    Thanks and Regards,

    Shyam

  • Hi,

    all view with parameters. Can you show me your feature details? My ADT is 2.68.6 but the preview data component inside is 1.48.1. I don't know if it's correct. It comes with the whole package in eclipse.

    Thanks a lot

    Regards

  • Hi Rob,

    It is the same as yours.

    Can you open an OSS ticket providing your system connection details?

    Probably we can take it from there and see where the issue is specifically for you.

    Thanks and Regards,

    Shyam

  • Get RSS Feed

3 Answers

  • Best Answer
    Feb 27, 2017 at 11:16 AM

    Hi Rob,

    From whatever I can deduce from the images you are trying to open Data Preview for 2 different entities.

    For View with parameters , the data preview works only for the CDS View ( the name used in the DDL Source's define view statement ).

    Data Preview does not work for the ABAP Dictionary View.

    If you want to preview data for a view with parameters then you need to use the CDS View only. So either F8 ( same as "Run AS" -> Abap Application) on the Data Definition or Open With -> Data Preview on the Data Definition in the project explorer will work correctly.

    The error message you are getting for Dictionary View is expected.

    Thanks and Regards,

    Shyam

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Shyam.

      Thanks for reply. My question is why this error message raises only for CDS View with parameters.

      CDS View with no-parameters works correctly.

      If I understand what you say is that Data Preview, in CDS View with parameters, works only when I choose preview while We refear explicitly to the DDL Source View and not the Dictionary reference from the project explorer in SAP HANA Studio.

      That's a strange behaviour but Ok.

      Thanks for support.

      Regards.

  • Feb 08, 2017 at 08:03 AM

    What ABAP Development Tools version and what ABAP/NetWeaver backend version you are using? I assume that you are on a release which does not support the data preview for CDS views with parameters. It works at least with a NetWeaver >= 7.50 backend system and ADT >= 2.51 version.

    Regards,
    Florian

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 22, 2017 at 08:43 AM

    Hi Shyram,

    I found the solution.

    Data preview seems to work only from "Run AS" choosing Abap Application and with the focus on the Data Definition..

    Instead, if I use Open Data Preview, with focus on the Workspace project, it doesn't work, showing the message I posted :

    I don't know if it's a feature or a Bug. Let me know if you know it

    Thanks for your help.

    Regards.

    Add comment
    10|10000 characters needed characters exceeded