Skip to Content
0
Former Member
Jun 25, 2009 at 07:22 AM

Problem in DropDownBykey UI element

31 Views

Hi,

i am using DropDownByKey UI element. I am using the following code for displaying tha data in DropDown.

LOOP AT i_org_type  INTO w_org_type.

    value1-key   = sy-tabix.
    value1-value = w_org_type-org_type.
    APPEND value1 TO set.
     ENDLOOP.

value1 is of type wdy_key_value,

set is of type wdy_key_value_table.

This is running fine if sy-tabix is less then 10. But for sy-tabix >= 10, then APPEND statement is giving run time error.

Error analysis is as follow:

The following error text was processed in the system S92 : Error when inserting or changing in a sorted table 
The error occurred on the application server pep74_S92_00 and in the work process 3 . 
The termination type was: RABAX_STATE 
The ABAP call stack was: 
Method: WDDOINIT of program /1BCWDY/E8YS2GY3H6R11XV29QIQ==CP
Method: IF_WDR_VIEW_DELEGATE~WD_DO_INIT of program /1BCWDY/E8YS2GY3H6R11XV29QIQ==CP
Method: DO_INIT of program CL_WDR_DELEGATING_VIEW========CP
Method: INIT_CONTROLLER of program CL_WDR_CONTROLLER=============CP
Method: INIT_CONTROLLER of program CL_WDR_VIEW===================CP
Method: INIT of program CL_WDR_CONTROLLER=============CP
Method: GET_VIEW of program CL_WDR_VIEW_MANAGER===========CP
Method: BIND_ROOT of program CL_WDR_VIEW_MANAGER===========CP
Method: INIT of program CL_WDR_VIEW_MANAGER===========CP
Method: INIT_CONTROLLER of program CL_WDR_INTERFACE_VIEW=========CP

Please suggest.

Regards,

Amit