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