on 05-21-2015 1:38 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
Hi Team,
Could you please help Here.
Thanks
Kalpana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
4 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.