ABAP CDS on HANA-10

SQL functions in ABAP CDS   cds

 

 

List of SQL Functions

Numeric Functions
ABS(arg) 
CEIL(arg)
DIV(arg1, arg2)
DIVISION(arg1, arg2, dec)
FLOOR(arg)
MOD(arg1, arg2)
ROUND(arg, pos)
String Functions
CONCAT(arg1, arg2)
CONCAT(arg1, arg2, space_cnt)
LPAD(arg, len, src)
REPLACE(arg1, arg2, arg3)
SUBSTRING(arg, pos, len)

CDS View

1


@AbapCatalog.sqlViewName: ‘ZFLIGHT_VW’
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: ‘Demo View SQL Functions’
define view Zflight_View
as select from spfli as s
{
key s.carrid,
key s.connid,
concat_with_space(s.cityfrom, s.cityto, 4 ) as City_From_To
}


Data Preview

2


 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s