Skip to Content

Call a custom Hana function from CDS view

Hallo,

is it possible to create a function like (currency_conversion) , and to call this function like the currency_conversion form inside a cds view?

or is this only possible with currency and measure conversion ?

if so, will this someday be possible?

regards

oliver

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jun 24, 2017 at 03:56 PM

    if the function could be called in a HANA object, e.g. HANA views, or Procedure, then it's possible.

    but it's not straightforward to do that.

    you have to use other part in the middle. e.g. the AMDP- ABAP Managed Database Procedure.

    then with AMDP, you could use CDS table function to encapsulate the logic from the AMDP.

    ABAP Managed Database Procedures

    https://help.sap.com/http.svc/rc/abapdocu_751_index_htm/7.51/en-US/abenabap_managed_db_proc_glosry.htm

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 24, 2017 at 06:43 PM

    so the 2 functions for currency and units that can be calles inside an cds view are special ones? is this correct? best regards oliver

    Add comment
    10|10000 characters needed characters exceeded