Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

CDS view with SESSION_USER

$
0
0

Hi All,

 

I am trying to migrate tables and views into a CDS document (HDBDD) - I do face a problem with the following view definition

 

CREATE VIEW "SessionInfo" AS SELECT

     SESSION_CONTEXT('APPLICATION') as "application",

     SESSION_CONTEXT('APPLICATIONUSER') as "applicationUser",

     SESSION_USER as "sessionUser"

from DUMMY;

 

When I migrate into CDS I am unable to use the SESSION_USER(the last field) I have the used the following syntax

 

  VIEW SessionInfo AS SELECT from DUMMY

  {

    SESSION_CONTEXT('APPLICATION')     as application,

    SESSION_CONTEXT('APPLICATIONUSER') as applicationUser,

    SESSION_USER   as sessionUser

  };

 

upon activation I receive the following message :

"Cannot find sub artifact "SESSION_USER" in "DUMMY"

 

Ideas/workarounds appreciated (we are on SPS09)

 

/MiB


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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