Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem with CDS views with parameter

Former Member
0 Likes
3,476

Hi,

I' m trying to create a CDS view with parameters with the following statement:

As you can see, the SQL parser tells me 'Unexpected Word WITH'.

Could you perhaps tell me where I' m wrong?

Thanks!

Best Regards,

Thomas

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,022

Hi,

The code looks fine to me.

Not sure if it will help or not . You may want to try putting the command "with" in the next line of define view statement. May sound silly but this is the only difference I could see from online syntax.

define view zpmboards

      with parameters p_language: abap_char(2)

R

Hi,

I' m trying to create a CDS view with parameters with the following statement:

As you can see, the SQL parser tells me 'Unexpected Word WITH'.

Could you perhaps tell me where I' m wrong?

Thanks!

Best Regards,

Thomas

3 REPLIES 3
Read only

Former Member
0 Likes
2,023

Hi,

The code looks fine to me.

Not sure if it will help or not . You may want to try putting the command "with" in the next line of define view statement. May sound silly but this is the only difference I could see from online syntax.

define view zpmboards

      with parameters p_language: abap_char(2)

R

Read only

0 Likes
2,022

Hi, Rudra!

Thanks for your answer - unfortunatly it didn' t change anything.


Regards,

Thomas

Read only

dominikeiraelias
Product and Topic Expert
Product and Topic Expert
2,022

Hi Thomas,

Looks like a problem i had with my IDE. Maybe your ABAP-Tools are outdated and need an Update?

For me an Installation of a Nightly Build of the SAPUI Tools including ABAP Tools worked to solve this problem. Here the link i used: (if you use Kepler just change luna to kepler in the path)

SAPUI5 Tools - Nightly Build - Luna - http://vesapui5.dhcp.wdf.sap.corp:1080/trac/sapui5/raw-attachment/wiki/updateSites/nightlyBuild/luna...

EDIT: Link to overview for all Eclipse and Build versions: http://vesapui5.dhcp.wdf.sap.corp:1080/trac/sapui5/wiki/updateSites

I hope this solves your problem.

Regards,

Dominik