cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to enable copy/paste multiple values on filter for odata v4 list report?

catalinfeidi
Participant
0 Kudos
786

Hi,

In an OData V2 Fiori List Report, when I copy multiple values from an Excel file and paste them directly into a filter field, they are correctly converted into separate items, and the filtering works as expected.

EQUIPMENT ODATAV2.png

However, in an OData V4 Fiori List Report with the same filter field, if I paste multiple values, only the last one is retained.

EQUIPMENT ODATAV4.png
 

Is this a known limitation or bug in OData V4 Fiori List Report, or is there a way to achieve the same behavior also in OData V4 Fiori List Report through configuration in manifest.json or annotations?

 

These are the ABAP CDS Annotations for the field:

abap cds annotations.png

Accepted Solutions (0)

Answers (1)

Answers (1)

CLTGravesen
Participant
0 Kudos

Hello @catalinfeidi ,

I'm guessing - and can't find anything in the documentation to prove me right or wrong - but maybe the default definition for filters between V2 and V4 is different?

Could you try to include the following annotation to the field, and see if that helps?

@Consumption.filter: { selectionType:  #SINGLE , multipleSelections: true}

 Maybe that does the trick.

https://help.sap.com/docs/ABAP_PLATFORM_NEW/cc0c305d2fab47bd808adcad3ca7ee9d/d60c0bf6798a481fb7412bc89934cb8a.htmlhttps://help.sap.com/docs/ABAP_PLATFORM_NEW/cc0c305d2fab47bd808adcad3ca7ee9d/d60c0bf6798a481fb7412bc89934cb8a.html

 

AdamS1
Discoverer
0 Kudos
hello @catalinfeidi, did this field help you?