ABAP RAP: Sort data in value help

Hi Experts,

I haven ABAP RAP application, is working fine. The requirement I have to add is the following:

The values of 1 of the fileds are coming from a domain name. The values are now populated default sorted on key value.

I want to sort the values ( at least on the presentation layer) based on the position as defined in the domain DD07T-VALPOS

Any idea how to achieve this? I have tried to add that field in the cds view and hide it and use the annotation @ui.presentationVariant: [{sortOrder: [{ by: ‘ValuePosition’ , direction: #DESC}]}] — does not help

 

 

 

​ Hi Experts,I haven ABAP RAP application, is working fine. The requirement I have to add is the following:The values of 1 of the fileds are coming from a domain name. The values are now populated default sorted on key value.I want to sort the values ( at least on the presentation layer) based on the position as defined in the domain DD07T-VALPOSAny idea how to achieve this? I have tried to add that field in the cds view and hide it and use the annotation @ui.presentationVariant: [{sortOrder: [{ by: ‘ValuePosition’ , direction: #DESC}]}] — does not help     Read More Technology Blog Posts by Members articles 

#SAP

#SAPTechnologyblog

You May Also Like

More From Author