cancel
Showing results for 
Search instead for 
Did you mean: 

I have created Age field in service order result screen,now Standard sorting is not working for this field?Sorting is not wroking?

former_member198180
Active Participant
0 Kudos

Hi Team,

I have created Age field in service order result screen,now Standard sorting is not working for this field?Sorting is not working.remaining 3 AET fields sorting is working fine standard functionality is not working in Age field.

Could you please here.

Thanks in Advance

Thank

Kalpana

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Kalpana,

Kindly change in get_p method.

provide fp_sortable as abap_true.

WHEN if_bsp_wd_model_setter_getter=>fp_sortable.
       rv_value = abap_true.


Regards,

Arun.

Former Member
0 Kudos

Hello,

Try changing the metadata to a character format in GET_M method (say char10).

May be it was not working fine with the integer format.

Regards,

Bharathy.

former_member198180
Active Participant
0 Kudos

Hi Bharathy,

Thanks for your reply,in Get_m method is like as below,how to change length,

In AET this is NUMERIC - 20 type.so how to change lenght here

method GET_M_F004B.

  DATA: attr    TYPE /DTEL00GL.

  DATA: dref    TYPE REF TO data.

  GET REFERENCE OF attr INTO dref.

  metadata ?= if_bsp_model_binding~get_attribute_metadata(

       attribute_ref  = dref

       attribute_path = attribute_path

       name           = '/F004B'  "#EC NOTEXT

*      COMPONENT      =

       no_getter      = 1 ).

endmethod.

Thanks

Kalpana

Former Member
0 Kudos

Hi

Change the data type of this declaration.

DATA: attr    TYPE /DTEL00GL.

to

DATA: attr    TYPE char20.


This may not be the right approach, but nothing wrong in trying out few things.


Regards,

Bharathy

former_member198180
Active Participant
0 Kudos

Hi Bharathy,

Thanks for your reply..it doesnt work..could you please provide me comments for this..and tell me the solutions how to do it.

Thanks

Kalpana

former_member198180
Active Participant
0 Kudos

Hi Team,

Still i am looking help here..could you please .help here.

Thanks

Kalpana

former_member198180
Active Participant
0 Kudos

Hi Bharathi,

Here this AET field iam only display to result list..but iam not saved in the data base....So Could you please guide me how to do it.

Thanks

Kalpana

Former Member
0 Kudos

Hi Kalpana,

Looks like you are filling the value in GET_ method. Since this value is not in collection, the sort will not work. To have the sort work, you have to fill the collection with data for this field. You can do this while building this data collection or in do_prepare_output method of the view.

former_member198180
Active Participant
0 Kudos

Hi Team,

Could you please help Here.

Thanks

Kalpana