cancel
Showing results for 
Search instead for 
Did you mean: 

how to sort AET attribute???????

0 Kudos

Hi Friends,,

I am having one attribute EXT.ZFLD000008( AET attribute).. This attribute is available in the root context node BUILCONTACTPERSON... But it is not available in the BOL stucture ( in genil_model_editor if we check the attribute stucture means there we cannot able to find this attribute)

Get_xxx method of the attribute has some validation and  holds value each and every roundtrip...

Now my question is..

I have to sort the value of this attribute...Basically get_xxx method will trigger every round trip...

I need to collect all the values in to buffer to perform sorting

How can i store the value in buffer ??? Where I can write logic to perform the sorting...????

Thanks in Advance..

MOHAMED ANSARI

Accepted Solutions (1)

Accepted Solutions (1)

former_member210661
Active Contributor
0 Kudos

Hi Mohamed ansari,

go through this link..

http://scn.sap.com/message/15215438#15215438

http://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=237176002

this might be help full to you.. let me know if you any queries.

Thanks & Regards,

Srinivas.

0 Kudos

Hi Srinivas,

Get_XXX attribute is round Trip Method..

This Get Triggerd one by one..

And Get_XXX is last method which is getting called

doubt:1

if I call manually like this in the any method say DO_init_context or Do_prepare_output means

Call Method me->(lv_getter)

Again the same GET_XXX will get triggered in last also..

doubt 2:

ev_bol_attribute_name

and ev_path_2_sub_object will imports what?????????

Important question

me->collection_wrapper->sort()..

in the above sort method u r passing attribute..

Here my bol enity doesnot have that attribute.. Now how I will do sort operation????

More over I am not using the table View here

Thanks for ur Reply.. Guide me now..

former_member210661
Active Contributor
0 Kudos

Hi Mohamad Ansari,

In your get_p_xxx provide field type as sortable and create one event in that event write the above link logic. then that will be trigger when ever your sorting your field.

CASE iv_property.

     WHEN if_bsp_wd_model_setter_getter=>fp_sortable.

       rv_value = 'SORT'.

   ENDCASE.


just fallow this link




Thanks & Regards,

Srinivas.

0 Kudos

Hi srinivas,

I am not having table view here..

It is form view..

Is Get_P will work here??????

I am not aware of it..

Thanks in advance

Answers (0)