‎2015 May 19 4:35 PM
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
‎2015 May 19 5:05 PM
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
‎2015 May 19 6:23 PM
To solve the issue, apply the following Support Packages: