Skip to Content
0

Call a custom Hana function from CDS view

Jun 21, 2017 at 04:51 AM

306

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Sean Zhang
Jun 24, 2017 at 03:56 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Oliver Russinger Jun 24, 2017 at 06:43 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded