Quantcast
Channel: SCN: Message List - ABAP for SAP HANA
Viewing all articles
Browse latest Browse all 2110

Re: Call UDF from CDS view and SQL console

$
0
0

Dear Christian,

I'm working on SAP HANA SP11.

I checked function CONVERT_CURRENCY but in CDS view I got erorr 'Function is unknown'.

 

In SQL console it works:

SELECT CONVERT_CURRENCY(amount=>'1000.0',

                      "SOURCE_UNIT_COLUMN" =>'PLN',

                      "SCHEMA" => 'SAPABAP1',

                      "TARGET_UNIT_COLUMN" => 'EUR',

                      "REFERENCE_DATE" =>'2015-12-11',

                      "ERROR_HANDLING"=>'set to null',

                      "CLIENT" => '200') as converted

                          FROM dummy

 

Is it possible to use built-in SQL functions in CDS view?

Here I found list of SQL functions:

SQL Functions - SAP HANA SQL and System Views Reference - SAP Library

 

Could you give me link to CDS-predefined functions:

(section ABAP CDS - SELECT, Predefined Functions).

Best regards

Rafal


Viewing all articles
Browse latest Browse all 2110

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>