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

CDS View

Former Member
0 Likes
940

Hi experts,

I have a problem, I'm trying to consume "DDL Source" which is a view of a table, the view contains parameters, but when attempting to activate from BW generates an error, but does not specify which error. It has something to do with

"W:The database feature "VIEWS_WITH_PARAMETERS" is used here (read the long text)"

I used

cl_abap_dbfeatures=>use_features(

                    requested_features = VALUE #( (

                    cl_abap_dbfeatures=>views_with_parameters ) ) ).


but still generates the error.

thanks for the help

2 REPLIES 2
Read only

christian_seitel
Product and Topic Expert
Product and Topic Expert
0 Likes
579

Hi,

in order to get rid of the warning "W:The database ..." one needs to add the pragma

##DB_FEATURE_MODE[VIEWS_WITH_PARAMETERS]

to the 'select from view' statement.

Of course, the 'select from view' statement should only be executed when "cl_abap_dbfeatures=>use_features ..." returns true, so the warning is a reminder that you check that you introduced the "cl_abap_dbfeatures=>use_features ..." properly in your program.

And then you can suppress the warning.


Regards, Christian

Read only

Former Member
0 Likes
579

To solve the issue, apply the following Support Packages:

  • SAP BW 7.40

    Import Support Package 10 for SAP BW 7.40 (SAPKW74010) into your BW system.