SAP Tech Bytes: CAP/HANA Tutorial Part 5 - Create Calculation View and Expose via CAP

Поделиться
HTML-код
  • Опубликовано: 18 янв 2025

Комментарии • 14

  • @gizemnursoylu4863
    @gizemnursoylu4863 Год назад +1

    Thank you for this amazing series!🎉

  • @anandmuthu
    @anandmuthu Год назад +1

    Calculation View with table function with mapped parameters are not working when called from the cds service. The parameters are not passing through when called from the odata service. Is there an example of this or its not possible ?

    • @sapdevs
      @sapdevs  Год назад

      Have you followed this guide on views with parameters: cap.cloud.sap/docs/advanced/hana#views-with-parameters

    • @anandmuthu
      @anandmuthu Год назад

      Yes. followed the examples and created relevant facade entities. Created two calculation view similarly - one with table function with parameters and another a projection view with parameters. Only able to retrieve data on the projection view ones. Feels like the parameter value is not passing into the table function parameters inside a calculation view. Will raise a community question with examples once its up. @@sapdevs

    • @ashutoshsarangale9012
      @ashutoshsarangale9012 Месяц назад

      Hi all, did you get any solution to this problem, since in my case we are using mapped parameters for underlying data source in our calculation view. when this parameterized view is called from cds service, parameters are not passing to the view and any random data is populating

  • @misterheoify
    @misterheoify 9 месяцев назад

    When creating the calculation view and trying to find data sources, I get the error "Missing Service Details", OR "Unable to find service undefined".
    I've checked the mta.yaml and the db-deploy path is db/src. Any ideas? Thank you.

    • @sapdevs
      @sapdevs  9 месяцев назад

      Make sure you are logged into Cloud Foundry. The login expires every day.

    • @misterheoify
      @misterheoify 9 месяцев назад

      @@sapdevs already checked that part, unfortunately, I still experience the same error.

    • @loganathanchinnasamy3525
      @loganathanchinnasamy3525 8 месяцев назад

      Yes I too have same issue. Even after doing cf login in the terminal. Could you please help us to resolve this issue?

    • @sapdevs
      @sapdevs  8 месяцев назад

      I can really only suggest that you enter a support ticket.

  • @ChPetru
    @ChPetru 10 месяцев назад

    Error: Missing configuration file. No default-env.json or substitute found. Full Details: VError: No service matches hana

    • @sapdevs
      @sapdevs  10 месяцев назад

      Can you share some details at which point you are getting this error. It likely means you aren't bound to the HANA service if that is coming from the start of the CDS service. If from the Calculation View editor then it means in the HANA window in the lower left you've not bound to the HANA DB. Or it could be you are bound and your Cloud Foundry credentials have timed out. Make sure each day you are doing a `cf login`.

    • @ChPetru
      @ChPetru 10 месяцев назад

      @@sapdevs I think I am using the wrong kind of development environment; I tried HANA Native Application and CAP, but neither has the interactions.cds file in it by default. Also, in the CAP environment, even though I am connected and bound to the HDI container (and logged in CF), I can't find the database artefacts when searching them to add them in the projection.

    • @sapdevs
      @sapdevs  10 месяцев назад

      interactions.cds is a file you create in your project. It's created as part of this tutorial.