cancel
Showing results for 
Search instead for 
Did you mean: 

Filter possibile despite no filter attributes.

salvatore_bruno
Explorer
0 Kudos

Hello forum,

I have an entity type with some attributes. No one has the filterable flag active but if I launch the Collection with ?$filter the query method is executed.

I''m running on SAP Basis 7.40 SP 13 and SAP_GWFND SP13.

Could you clarify me?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Ashg1402
Contributor
0 Kudos

Hi Bruno,

  It will work, as currently I am also using the same working.

IF you want to check go to 'DPC_EXT' class and put an external break point in the method '*_GET_ENTITYSET', put the user in debugging the user which you have given in rfc destination login.

and check the value of IV_FILTER_STRING.

Regards

Ashish

salvatore_bruno
Explorer
0 Kudos

Hello Ashish,

not fully understood your answer. Of course in IV_FILTER_STRING there is something, but the field is not set as filterable in SEGW.

I guees I should get an error. Why not?

Ashg1402
Contributor
0 Kudos

Hi,

The $filter will work even when the filterable flag is not checked.

Well for error, even i didn't get any till now.

These flags are useful when the metadata is generated for a service.

It will come like this - sap:updatable="false" sap:sortable="false" sap:filterable="false" .

Since filterable flag is not checked , in metadata it will come as false.

So that the UI developers can clearly understand.

Regards

Ashish

Answers (2)

Answers (2)

salvatore_bruno
Explorer
0 Kudos

Ok, understood.

Thanks to all.

Topic closed.

sreehari_vpillai
Active Contributor
0 Kudos

Hi Bruno,

options like "filterable","pageable" etc are just for generating tags in metadata. Whether we set it or not, the features will still be working. By setting the option "filterable" as false, you are intimating the OData consumer that you have not implemented filter feature for that particular field(so that the consumer may not try to filter it ) . OData metadata should be self explanatory for the consumer.

Sreehari