cancel
Showing results for 
Search instead for 
Did you mean: 

WebDynpro ALV sort throwing dump...

Former Member
0 Kudos

Hi Experts,

I used ALV component ,in my Webdynpro ABAP application as a used component. Now my object is working fine with ALV, when ever i click sort option in any one of the column and uses ALV button ,now it throwing dump. the samething happen when i use filters. filter option is working ,after filter if i use the header button throwing dump like..

  • Error in INPUT_FIELD "/BIC/VAL23" of view "ZXXXXXXX.V_MAIN_FORM": Context binding of property VALUE cannot be resolved: The lead selection has not been set for context node V_MAIN_FORM.1.VALNODE

Please suggest me!!!

Regards,

KiranReddy

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

i got exactily the same dump but your coding

  1. CALL METHOD lv_value->if_salv_wd_std_functions~set_sort_complex_allowed 
  2.    EXPORTING 
  3.      value  = ABAP_TRUE. 

wont help either.

ist there a solution?

Former Member
0 Kudos

For the Sort-Dump i got finlay a solution.

The Reason for the sort-dump is, because when you Sort your ALV-Table the lead selection get lost.

and if you implement, for example an imput fead with a binding of your alv table-field you get a dump.

but i got a solution for this.

1. Go in you view or component controller (where you implementet you alv table binding)

in the proportys area and be shoure to embed the interfacecontroller of your alv table.

2. create a method (i called it ALV_AFTER_FUNCTION) with the Event ON_STD_FUNCTION_AFTE

From the Interfacecontroller.

3. put in this Coding

DATA  l_context_node TYPE REF TO if_wd_context_node.
   l_context_node = wd_context->get_child_node( name = wd_this->wdctx_zberufuverf ).
   l_context_node->set_lead_selection_index( index = 1 ).


zberufuverf is my context node


no wenn you so sort you table the method above starts and set the lead selection ...:D

Former Member
0 Kudos

Hi ,

I assigned cardinality 0...N, and lead selection as  Yes...But no use....tried with diffrent cardinality combinations...but it can't work...

Please suggest me onthis.....very urgent.

Regards,

Kiranreddy

former_member230486
Contributor
0 Kudos

Hi Kiran,

You have to use the below code in the WDDOINIT method,

CALL METHOD lv_value->if_salv_wd_std_functions~set_sort_complex_allowed

   EXPORTING

     value  = ABAP_TRUE.

After executing the application you will get the filter and settings options in ALV toolbar.

Click on settings->Go to Sort tab->Select your column name which you want to sort->Click on Add->Apply->Ok.

Former Member
0 Kudos

Hi V A,

Thanks for your reply.

Actually i am getting the sort and filter options and those working fine.But my issue is once if you apply sort and filter option for columns,this also works fine,later if you selects one of the row from alv table and click the details button,it will opens in the other view perfetcly ,here if you do any events like enter or radio butto check....throws the dump.

If you do not apply any sort on ALV table and did same like select row and click details,it goes another view and perform any events ...working fine.....

Regards,

Kiran