Skip to Content
avatar image
Former Member

Table filter problem

Hi expert ,

I have the problem on filter , which means

while there is no entry on the table , if click enter the filter action it shows runtim errors like that

Note

The following error text was processed in the system RD1 : Value 1 is not a valid index; context node: COMPONENTCONTROLLER.1.BBU_ITEMS

The error occurred on the application server BLR-RDEV-RD1_RD1_00 and in the work process 0 .

The termination type was: RABAX_STATE

The ABAP call stack was:

Method: IF_WD_CONTEXT_NODE~GET_ATTRIBUTE_PROPS_FOR_NODE of program CL_WDR_CONTEXT_NODE_VAL=======CP

Method: IF_WD_CONTEXT_NODE~GET_ATTRIBUTE_PROPS_FOR_NODE of program CL_WDR_CONTEXT_NODE_MAP=======CP

Method: GET_NODE_STATE of program CL_WDR_TABLE_METHOD_HNDL======CP

Method: IF_WD_TABLE_METHOD_HNDL~APPLY_FILTER of program CL_WDR_TABLE_METHOD_HNDL======CP

Method: ONACTIONBBU_FILTER of program /1BCWDY/EAIL5PBJSQ5EPLFELLCZ==CP

Method: IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/EAIL5PBJSQ5EPLFELLCZ==CP

Method: INVOKE_EVENTHANDLER of program CL_WDR_DELEGATING_VIEW========CP

Method: IF_WDR_ACTION~FIRE of program CL_WDR_ACTION=================CP

Method: DO_HANDLE_ACTION_EVENT of program CL_WDR_WINDOW_PHASE_MODEL=====CP

Method: PROCESS_REQUEST of program CL_WDR_WINDOW_PHASE_MODEL=====CP

What should i do avoiding this one can anyone let me know about this problem ?

Thanks in advance

Sankar.M

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jul 04, 2009 at 06:34 PM

    Hi Sankar,

    Do you mean to say like you get a dump when you enter some value in the filter field & press on enter while there is no data in the table?

    If yes then give it a try in this manner. I haven't tried it out myself but its just a guess. You would have created an event handler for the FILTER event of your table. Say suppose your action handler method is ONACTIONON_FILTER then within this method you would be saying something like:

    METHOD onactionon_filter .
    " TABLE_CONTROL is TYPE REF TO IF_WD_TABLE_METHOD_HNDL
    " Within WDDOMODIFYVIEW I obtain & save the reference of my table into TABLE_CONTROL
      wd_this->table_control->apply_filter( ).
    ENDMETHOD.

    So instead of directly calling the apply_filter method first try to obtain the data being displayed in the table by using get_static_attributes_table method. Then check if the table is initial & call the apply_filter method only if the table is having some data.

    Regards,

    Uday

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi uday ,

      Thanks for your reply i already tried this one as you given ,

      is there any other way to apply the filter without checking whether there is a data or not from the table ?

      Thanks & Regards

      Sankar.M