cancel
Showing results for 
Search instead for 
Did you mean: 

How to display Sort Ascending and Sort Descending names in the result page of newly added Model Attribute

Former Member
0 Kudos

Hi All

Good day

I had added one Model Attribute in the webui result page.i am getting data as expected but i am not getting Sort ascending and sort descending values to do sort on my newly added model attribute.

as per standarded  it is getting displayed for all other result page columns when i click on any one of the standarded column in the result page.

please suggest how can i display sort ascending and sort descending values on my newly created model attribute and how to make event on those if user click on any sort?

Thanks

Subhani Shaik

Accepted Solutions (0)

Answers (2)

Answers (2)

sumeet_gehlot
Contributor
0 Kudos

Hi Subhani,

Check this link.

Regards,

S

Former Member
0 Kudos

Hi All

I can able to show sort ascending and sort descending for my newly created Model attribute by adding little code in GET_P Method.

method GET_P_CREATED_TIME.

    case iv_property.

    WHEN if_bsp_wd_model_setter_getter=>fp_sortable.

       rv_value = 'TRUE'.

     endcase.

endmethod.

but sort functionality not working when i click on sort ascending or descending

please suggest any where i need to write the logic?

Thanks

Shaik

Former Member
0 Kudos

Hi Shaik,

Have a look at the post below, this should help you.

https://scn.sap.com/thread/2107351

Cheers,

Arshid